Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

WMFP.SetRate

Sets the current playback rate.

Component Version macOS Windows Linux Server iOS SDK
WMFP 10.0 ❌ No ✅ Yes ❌ No ✅ Yes, on Windows ❌ No
MBS( "WMFP.SetRate"; Player; Value )   More

Parameters

Parameter Description Example
Player The reference number for the Windows Media Foundation Player object. $$Player
Value The new rate. 1.0

Result

Returns OK or error.

Description

Sets the current playback rate.
The playback rate is expressed as a ratio of the current rate to the normal rate. For example, 1.0 indicates normal playback, 0.5 indicates half speed, and 2.0 indicates twice speed. Positive values indicate forward playback, and negative values indicate reverse playback.

Examples

Set to double speed:

Set Variable [$r; Value: MBS( "WMFP.SetRate"; $$Player; 2 ) ]

See also

Blog Entries

This function checks for a license.

Created 25th December 2019, last changed 26th December 2019


WMFP.SetPosition - WMFP.SetTag