Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
Sets the rate of playback relative to normal speed.
HRESULT put_Rate( double dRate );
Parameters
Return Values
Returns E_INVALIDARG if dRateis zero. Otherwise, returns the HRESULTvalue returned from calling IMediaPosition::put_Rateon the connected pin.
Remarks
This property allows an application to speed up or slow down playback relative to the normal default playback speed. A rate of 1.0 indicates normal playback speed. Specifying 2.0 causes playback at twice the normal rate: a video created for 10 frames per second (fps) will be played back at 20 fps, if resources permit. Audio streams played back at above-normal speed increase the pitch rather than drop frames.
Negative rates indicate reverse play. Not all media will support reverse play.