AnimatGuiCtrls.Video.AviManager.GetVideoStream C# (CSharp) Method

GetVideoStream() public method

Get the first video stream - usually there is only one video stream
public GetVideoStream ( ) : VideoStream
return VideoStream
        public VideoStream GetVideoStream()
        {
            IntPtr aviStream;

            int result = Avi.AVIFileGetStream(
                aviFile,
                out aviStream,
                Avi.streamtypeVIDEO, 0);

            if(result != 0){
                throw new Exception("Exception in AVIFileGetStream: "+result.ToString());
            }

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