Example #1
0
		public void Rewind()
		{
			Dispose();
			aviManager = new AviFile(filepath);
			video = aviManager.GetVideoStream();
			audio = aviManager.GetAudioStream();
		}
Example #2
0
		public VideoStream GetVideoStream()
		{
			IntPtr aviStream;
			uint result = AviInterop.AVIFileGetStream(aviFile, out aviStream, AviInterop.StreamtypeVideo,
				0);
			if (result > 0)
				throw new Exception("Exception in AVIFileGetStream: " + AviErrors.GetError(result));

			var stream = new VideoStream(aviFile, aviStream);
			streams.Add(stream);
			return stream;
		}