Gets the current position of the video stream.
Namespace: Un4seen.Bass.AddOn.DShow
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.13.3
Syntax
[DllImportAttribute("xVideo", EntryPoint = "xVideo_ChannelGetPosition")] public static double BASS_DSHOW_ChannelGetPosition( int handle, BASSDSHOWMode mode )
Parameters
- handle
- Type: SystemInt32
The video channel handle (as returned by BASS_DSHOW_StreamCreateFile(String, Int32, IntPtr, BASSFlag)). - mode
- Type: Un4seen.Bass.AddOn.DShowBASSDSHOWMode
How to get the position. One of the following (see BASSDSHOWMode):BASS_DSHOW_POS_SEC The position is in seconds. BASS_DSHOW_POS_MILISEC The position is in milliseconds. BASS_DSHOW_POS_FRAME The position is in video frames. BASS_DSHOW_POS_REFTIME The position is in reference time (1 unit = 100 nanoseconds).
Return Value
Type: DoubleIf successful, the current position of the video stream in units according to the BASSDSHOWMode used, else 0 is returned. Use BASS_DSHOW_ErrorGetCode to get the error code.
See Also