Controls.fastReverse method
[The feature associated with this page, Windows Media Player SDK, is a legacy feature. It has been superseded by MediaPlayer. MediaPlayer has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer instead of Windows Media Player SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]
The fastReverse method starts fast scanning of the media item in the reverse direction.
Syntax
Controls.fastReverse()
Parameters
This method has no parameters.
Return value
This method does not return a value.
Remarks
The fastReverse method scans the clip in reverse at five times the normal speed, displaying only the key frames if it is a video file. Invoking fastReverse changes the Settings.rate property to 5.0. If rate is subsequently changed, or if play or stop is called, Windows Media Player will cease fast reverse.
If the item is part of a playlist, fastReverse stops at the beginning of the current track. For instance, if track 3 is in fastReverse, when the beginning of track 3 is reached, Windows Media Player will not go to track 2. The play count is not incremented when calling fastReverse.
If you call fastForward while fastReverse is in effect, fastReverse will be stopped and fastForward will begin.
This method does not work for live broadcasts and certain media types. To determine whether you can use fast reverse in a clip, call isAvailable("FastReverse").
Examples
The following example creates an HTML BUTTON element that uses fastReverse to start fast-reverse play of the media item. The Player object was created with ID = "Player".
<INPUT TYPE = "BUTTON" ID = "REW" NAME = "REW" VALUE = "<<"
/* Run JScript when the BUTTON is clicked.
Check first to make sure fast-reverse mode is available
for this particular media item */
onClick = "if (Player.controls.isAvailable('FastReverse'))
Player.controls.fastReverse();
">
Requirements
Requirement | Value |
---|---|
Version |
Windows Media Player version 7.0 or later. |
DLL |
|