WMFP.SetVisible
---------------

Hides or shows the player.

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

MBS( "WMFP.SetVisible"; Player; Visible ) 

**MBS**( **"WMFP.SetVisible";** /\* Hides or shows the player. \*/  
**$Player**; /\* The reference number for the Windows Media Foundation Player object.e.g. $$Player \*/   
**$Visible**) /\* The new visible state.  
Pass 0 to hide or 1 to show.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Player | The reference number for the Windows Media Foundation Player object. | $$Player |
| Visible | The new visible state.   Pass 0 to hide or 1 to show. | 1 |

### Result

Returns OK or error.

### Description

Hides or shows the player.  
By default we create it visible, but you can hide it if it's on a register and the user clicked to other tab.  
### Examples

Hide player, e.g. when switching layouts or registers:

 Set Variable \[ $r ; Value: MBS ("WMFP.SetVisible"; $$player ; 0) \]  
Show player:

 Set Variable \[ $r ; Value: MBS ("WMFP.SetVisible"; $$player ; 1) \]  
### See also

- [WMFP.GetVisible](WMFPGetVisible.md)

### Example Databases

- [Win Only/Windows Player](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Win%20Only/Windows%20Player.shtml#9ScriptAnchor_)

### 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 25th December 2019

  
[WMFP.SetTag](WMFPSetTag.md) - [WMFP.SetVolume](WMFPSetVolume.md)

[HTML Version](WMFPSetVisible.shtml)