WMFP.SetLoop
------------

Sets whether to loop.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [WMFP](component_WMFP.md) | [10.1](newinversion101.md) | ❌ No | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "WMFP.SetLoop"; Player { ; Loop } ) 

**MBS**( **"WMFP.SetLoop";** /\* Sets whether to loop. \*/  
**$Player**; /\* The reference number for the Windows Media Foundation Player object.e.g. $$Player \*/   
**$Loop**) /\* Optional; The new setting.  
Pass 1 to enable looping or 0 to disable.  
Default is 0.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| Player | The reference number for the Windows Media Foundation Player object. | $$Player |  |
| Loop | The new setting.   Pass 1 to enable looping or 0 to disable.   Default is 0. | 1 | Optional |

### Result

Returns OK or error.

### Description

Sets whether to loop.  
You can enable looping to automatically restart playback when file reached the end.  
### See also

- [WMFP.GetLoop](WMFPGetLoop.md)

### Release notes

- **Version 10.1**
    - Added [WMFP.GetLoop](https://www.mbsplugins.eu/WMFPGetLoop.shtml) and [WMFP.SetLoop](https://www.mbsplugins.eu/WMFPSetLoop.shtml) functions.

### Blog Entries

- [New in the MBS FileMaker Plugin 10.1](https://www.mbsplugins.de/archive/2020-03-17/New_in_the_MBS_FileMaker_Plugi/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 10.1pr5](https://www.mbsplugins.de/archive/2020-02-24/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 23th February 2020 , last changed 27th January 2021

  
[WMFP.SetFrame](WMFPSetFrame.md) - [WMFP.SetMute](WMFPSetMute.md)

[HTML Version](WMFPSetLoop.shtml)