Share via


Windows Media Player 11 SDK IWMPServices::GetStreamTime 

Windows Media Player SDK banner art

Previous Next

IWMPServices::GetStreamTime

The IWMPServices::GetStreamTime method retrieves a structure indicating the current stream time.

Syntax

  

Parameters

prt

[in]  Pointer to a REFERENCE_TIME structure.

Return Values

The method returns an HRESULT.

Remarks

The current stream time is determined by Windows Media Player. This means that the value returned by this method do not necessarily represent the elapsed time relative to the beginning of the file. For instance, if the user moves the trackbar in the Player to seek the media to a new position, the value returned by this method returns the time elapsed since the media began playing from the new position. Changes in playback rate will also affect the value returned by this method.

The values provided in the rtTimestamp member of IMediaObject::ProcessInput and the rtTimestamp member of the DMO_OUTPUT_DATA_BUFFER structure supplied by IMediaObject::ProcessOutput contain values that indicate when the data provided in the buffer will be rendered relative to the current stream time. Therefore, these values also do not necessarily represent the elapsed time relative to the beginning of the file or the presentation time specified in the file.

Requirements

Version: Windows Media Player 9 Series or later.

Header: Include wmprealestate.h.

Library: Use wmp.dll.

See Also

Previous Next