IMVSCMediaSeeking2

The IMVSCMediaSeeking2 Interface from the MontiVision Smart Control extends the IMVSCMediaSeeking interface. The interface 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. TheMV SeekingSlider Control uses this interface. 

The IMVSCMediaSeeking2 uses floating point (DOUBLE) parameter instead of 64 bit integers (LONGLONG) for the position and duration methods. Use this methods in Visual Basic applications. All times are in seconds.

GetCurrentPosition2 Returns the current position within the media stream.
GetDuration2 Get the duration from the current media stream.
SetAbsolutePosition2 Set the absolut position within the media stream.
SetRelativePosition2 Set the relative position within the media stream.

Header file: IMVSCMediaSeeking2.h
Interface definition language file: IMVSCMediaSeeking2.idl
Typelib: MVSCMediaSeeking2
Interface ID: IID_IMVSCMediaSeeking2


Method IMVSCMediaSeeking2::GetCurrentPosition2

Declaration: Function GetCurrentPosition2 As Double

Returns the current position within the media stream.

Prototype:

HRESULT GetCurrentPosition2(DOUBLE* value);


Method IMVSCMediaSeeking2::GetDuration2

Declaration: Function GetDuration2 As Double

Get the duration from the current media stream.

Prototype:

HRESULT GetDuration2(DOUBLE* value);


Method IMVSCMediaSeeking2::SetAbsolutePosition2

Declaration: Sub SetAbsolutePosition2(Position As Double)

Set the absolut position within the media stream.

Parameter:

Position New absolute position.
Prototype:

HRESULT SetAbsolutePosition2(DOUBLE Position);


Method IMVSCMediaSeeking2::SetRelativePosition2

Declaration: Sub SetRelativePosition2(Position As Double)

Set the relative position within the media stream.

Parameter:

Position New relative position.
Prototype:

HRESULT SetRelativePosition2(DOUBLE Position);