WMFP.SetRate
------------

Sets the current playback rate.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [WMFP](component_WMFP.md) | [10.0](newinversion100.md) | ❌ No | ✅ Yes | ❌ No | ✅ Yes, on Windows | ❌ No |

MBS( "WMFP.SetRate"; Player; Value ) 

**MBS**( **"WMFP.SetRate";** /\* Sets the current playback rate. \*/  
**$Player**; /\* The reference number for the Windows Media Foundation Player object.e.g. $$Player \*/   
**$Value**) /\* The new rate.e.g. 1.0 \*/ 

### 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

- [WMFP.GetMute](WMFPGetMute.md)
- [WMFP.GetRate](WMFPGetRate.md)
- [WMFP.GetState](WMFPGetState.md)
- [WMFP.SetFrame](WMFPSetFrame.md)
- [WMFP.SetMute](WMFPSetMute.md)
- [WMFP.SetTag](WMFPSetTag.md)

### Blog Entries

- [Windows Media Foundation Player for FileMaker](https://www.mbsplugins.de/archive/2019-12-26/Windows_Media_Foundation_Playe/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

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

  
[WMFP.SetPosition](WMFPSetPosition.md) - [WMFP.SetTag](WMFPSetTag.md)

[HTML Version](WMFPSetRate.shtml)