IMFMediaSession::Start method (mfidl.h)
Starts the Media Session.
HRESULT Start( const GUID *pguidTimeFormat, const PROPVARIANT *pvarStartPosition );
Pointer to a GUID that specifies the time format for the pvarStartPosition parameter. This parameter can be NULL. The value NULL is equivalent to passing in GUID_NULL.
The following time format GUIDs are defined:
Presentation time. The pvarStartPosition parameter must have one of the following PROPVARIANT types.
Segment offset. This time format is supported by the Sequencer Source. The starting time is an offset within a segment.
Call the MFCreateSequencerSegmentOffset function to create the PROPVARIANT value for the pvarStartPosition parameter.
Note Requires Windows 7 or later.
If a media source supports this time format, the IMFMediaSource::GetCharacteristics method returns one or both of the following flags:
Pointer to a PROPVARIANT that specifies the starting position for playback. The meaning and data type of this parameter are indicated by the pguidTimeFormat parameter.
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
||The method succeeded.|
||The operation cannot be performed in the Media Session's current state.|
||The Media Session has been shut down.|
When this method is called, the Media Session starts the presentation clock and begins to process media samples.
This method is asynchronous. When the method completes, the Media Session sends an MESessionStarted event.
|Minimum supported client||Windows Vista [desktop apps only]|
|Minimum supported server||Windows Server 2008 [desktop apps only]|