AVPlayer.SetVisible
-------------------

Hides or shows the player view.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [AVPlayer](component_AVPlayer.md) | [10.2](newinversion102.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

MBS( "AVPlayer.SetVisible"; AVPlayer; Visible ) 

**MBS**( **"AVPlayer.SetVisible";** /\* Hides or shows the player view. \*/  
**$AVPlayer**; /\* The reference number of the player.e.g. $Player \*/   
**$Visible**) /\* The new visible state.  
Pass 0 to hide or 1 to show.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| AVPlayer | The reference number of the player. | $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 view.  
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

Show the control:

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

- [AVPlayer.GetVisible](AVPlayerGetVisible.md)
- [AVPlayer.SetVolume](AVPlayerSetVolume.md)

### Example Databases

- [Mac and iOS/AVPlayer](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/AVPlayer.shtml#8ScriptAnchor_)

### Blog Entries

- [News about the MBS FileMaker Plugin 10.2](https://www.mbsplugins.de/archive/2020-05-19/News_about_the_MBS_FileMaker_P/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 12nd March 2020 , last changed 12nd March 2020

  
[AVPlayer.SetTime](AVPlayerSetTime.md) - [AVPlayer.SetVolume](AVPlayerSetVolume.md)

[HTML Version](AVPlayerSetVisible.shtml)