|
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:
Typelib: MV SmartControl
Method
IMVSCMediaSeeking::GetCurrentPosition
Declaration:
Function GetCurrentPosition As LONGLONG
Returns the current position within the
media stream.
Prototype:
HRESULT GetCurrentPosition(LONGLONG*
value);
Method
IMVSCMediaSeeking::GetDuration
Declaration:
Function GetDuration As LONGLONG
Get the duration from the current media
stream.
Prototype:
HRESULT GetDuration(LONGLONG*
value);
Property
IMVSCMediaSeeking::PlaybackRate
Declaration:
Property Get/Put PlaybackRate As Double
Video playback rate.
Prototype:
HRESULT put_PlaybackRate(DOUBLE);
HRESULT get_PlaybackRate(DOUBLE*);
Property
IMVSCMediaSeeking::SeekingAvailable
Declaration:
Property Get SeekingAvailable As Boolean
Is 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:
|
|
Position |
New absolute position. |
Prototype:
HRESULT SetAbsolutePosition(LONGLONG
Position);
Method
IMVSCMediaSeeking::SetRelativePosition
Declaration: Sub
SetRelativePosition(Position As LONGLONG )
Set the relative position within the media
stream.
Parameter:
|
|
Position |
New relative position. |
Prototype:
HRESULT SetRelativePosition(LONGLONG
Position);
Property
IMVSCMediaSeeking::TimeFormat
Declaration:
Property Get/Put TimeFormat As Long
Current media time format.
| Time Format
|
Value
|
Description
|
| MVSC_TIMEFORMAT_TIME |
1 |
Values in 100 ns units or seconds. |
| MVSC_TIMEFORMAT_FRAME |
2 |
Values in video frames units. |
Prototype:
HRESULT put_TimeFormat(LONG);
HRESULT get_TimeFormat(LONG*);
|