IMVSCMediaSeeking
The IMVSCMediaSeeking Interface from the MontiVision Smart Control provides methods to control media file play back. It allows to move into the media file and to change the play back rate. It is based on the IMediaSeeking Interface from DirectShow. The MV SeekingSlider Control uses this interface. All times are in 100 nanoseconds units.
Use the IMVSCMediaSeeking2 interface methods in Visual Basic application because Visual Basic doesn't support LONGLONG parameter in COM interface methods.
Methods:
| GetCurrentPosition | Returns the current position within the media stream. |
| GetDuration | Get the duration from the current media stream. |
| PlaybackRate | Video playback rate. |
| SeekingAvailable | Is media seeking available. |
| SetAbsolutePosition | Set the absolute position within the media stream. |
| SetRelativePosition | Set the relative position within the media stream. |
| TimeFormat | Current media time format. |
Typelib: MV SmartControl
Method IMVSCMediaSeeking::GetCurrentPosition
Declaration: Function GetCurrentPosition As LONGLONGReturns the current position within the media stream.
Prototype:HRESULT GetCurrentPosition(LONGLONG* value);
Method IMVSCMediaSeeking::GetDuration
Declaration: Function GetDuration As LONGLONGGet the duration from the current media stream.
Prototype:HRESULT GetDuration(LONGLONG* value);
Property IMVSCMediaSeeking::PlaybackRate
Declaration: Property Get/Put PlaybackRate As DoubleVideo playback rate.
Prototype:HRESULT put_PlaybackRate(DOUBLE);
HRESULT get_PlaybackRate(DOUBLE*);
Property IMVSCMediaSeeking::SeekingAvailable
Declaration: Property Get SeekingAvailable As BooleanIs media seeking available.
Prototype:HRESULT put_SeekingAvailable(BOOL);
HRESULT get_SeekingAvailable(BOOL*);
Method IMVSCMediaSeeking::SetAbsolutePosition
Declaration: Sub SetAbsolutePosition(Position As LONGLONG )Set the absolute position within the media stream.
Parameter:
Prototype:
Position New absolute position. HRESULT SetAbsolutePosition(LONGLONG Position);
Method IMVSCMediaSeeking::SetRelativePosition
Declaration: Sub SetRelativePosition(Position As LONGLONG )Set the relative position within the media stream.
Parameter:
Prototype:
Position New relative position. HRESULT SetRelativePosition(LONGLONG Position);
Property IMVSCMediaSeeking::TimeFormat
Declaration: Property Get/Put TimeFormat As LongCurrent media time format.
Prototype:
Time Format Value Description MVSC_TIMEFORMAT_TIME 1 Values in 100 ns units or seconds. MVSC_TIMEFORMAT_FRAME 2 Values in video frames units. HRESULT put_TimeFormat(LONG);
HRESULT get_TimeFormat(LONG*);