Component: AVPlayer 
--------------------

Play audio on Mac and iOS.

Play audio in background while doing work in FileMaker.  
  
See also [WMFP](component_WMFP.md) functions for Windows.

| Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|
| [7.1](newinversion71.md "First functions introduced with version 7.1.") / [13.0](newinversion130.md "Newest functions in version 13.0.") | ✅ Yes | ❌ No | ❌ No | 🔶 2%, on macOS | 🔶 64% |

  
| Item | Details |
|:--|:--|
| [AVPlayer.AddView](AVPlayerAddView.md)   Creates a player view. | Mac only   10.2 |
| [AVPlayer.CloseView](AVPlayerCloseView.md)   Closes the video view. | Mac only   10.2 |
| [AVPlayer.FindPlayers](AVPlayerFindPlayers.md)   Finds all players in current window. | Mac/iOS   7.3 |
| [AVPlayer.GetAsset](AVPlayerGetAsset.md)   Queries the current asset. | Mac/iOS   7.3 |
| [AVPlayer.GetAutoResizingMask](AVPlayerGetAutoResizingMask.md)   Queries auto resizing mask. | Mac only   10.2 |
| [AVPlayer.GetControlsStyle](AVPlayerGetControlsStyle.md)   Queries the controls style. | Mac only   10.2 |
| [AVPlayer.GetDuration](AVPlayerGetDuration.md)   Queries the length of the video in seconds. | Mac/iOS   7.1 |
| [AVPlayer.GetFinishedEvaluate](AVPlayerGetFinishedEvaluate.md)   Queries expression to be run when transfer is finished. | Mac/iOS   7.4 |
| [AVPlayer.GetFinishedFileName](AVPlayerGetFinishedFileName.md)   Queries the file name for the finished script to call. | Mac/iOS   7.4 |
| [AVPlayer.GetFinishedScriptName](AVPlayerGetFinishedScriptName.md)   Queries the script name to call when transfer finished. | Mac/iOS   7.4 |
| [AVPlayer.GetMuted](AVPlayerGetMuted.md)   Queries mute state. | Mac/iOS   7.1 |
| [AVPlayer.GetProgressEvaluate](AVPlayerGetProgressEvaluate.md)   Queries expression to run on playback. | Mac/iOS   7.4 |
| [AVPlayer.GetProgressInterval](AVPlayerGetProgressInterval.md)   Queries progress interval. | Mac/iOS   7.4 |
| [AVPlayer.GetRate](AVPlayerGetRate.md)   Queries playback rate. | Mac/iOS   7.1 |
| [AVPlayer.GetShowsFrameSteppingButtons](AVPlayerGetShowsFrameSteppingButtons.md)   Queries whether to show frame stepping buttons. | Mac only   10.2 |
| [AVPlayer.GetShowsFullScreenToggleButton](AVPlayerGetShowsFullScreenToggleButton.md)   Whether or not the controls pane will show a full screen toggle button. | Mac only   10.2 |
| [AVPlayer.GetShowsSubtitles](AVPlayerGetShowsSubtitles.md)   Queries whether subtitles should be shown. | Mac only   10.5 |
| [AVPlayer.GetTag](AVPlayerGetTag.md)   Queries the tag value. | Mac/iOS   10.2 |
| [AVPlayer.GetTime](AVPlayerGetTime.md)   Queries current time in seconds. | Mac/iOS   7.1 |
| [AVPlayer.GetVisible](AVPlayerGetVisible.md)   Queries current visibility state. | Mac only   10.2 |
| [AVPlayer.GetVolume](AVPlayerGetVolume.md)   Queries current volume. | Mac/iOS   7.1 |
| [AVPlayer.GetWindowRef](AVPlayerGetWindowRef.md)   Queries the window where this text view is located. | Mac only   10.2 |
| [AVPlayer.List](AVPlayerList.md)   Lists all IDs of player objects. | Mac/iOS   13.0 |
| [AVPlayer.OpenContainer](AVPlayerOpenContainer.md)   Opens the audio file from a container. | Mac/iOS   7.1 |
| [AVPlayer.OpenFile](AVPlayerOpenFile.md)   Opens an audio file. | Mac/iOS   7.1 |
| [AVPlayer.OpenURL](AVPlayerOpenURL.md)   Opens the movie with the given URL. | Mac/iOS   7.1 |
| [AVPlayer.Pause](AVPlayerPause.md)   Pauses playback. | Mac/iOS   7.1 |
| [AVPlayer.Play](AVPlayerPlay.md)   Plays sound. | Mac/iOS   7.1 |
| [AVPlayer.Release](AVPlayerRelease.md)   Releases the audio player. | Mac/iOS   7.1 |
| [AVPlayer.ReleaseAll](AVPlayerReleaseAll.md)   Releases all movies in memory. | Mac/iOS   7.1 |
| [AVPlayer.SetAutoResizingMask](AVPlayerSetAutoResizingMask.md)   Sets the auto resizing mask. | Mac only   10.2 |
| [AVPlayer.SetControlsStyle](AVPlayerSetControlsStyle.md)   Sets the controls style. | Mac only   10.2 |
| [AVPlayer.SetFinishedEvaluate](AVPlayerSetFinishedEvaluate.md)   Sets expression to be run when playback is finished. | Mac/iOS   7.4 |
| [AVPlayer.SetFinishedScript](AVPlayerSetFinishedScript.md)   Sets which script to call when a transfer finished. | Mac/iOS   7.4 |
| [AVPlayer.SetFocus](AVPlayerSetFocus.md)   Sets focus to the player view. | Mac only   10.2 |
| [AVPlayer.SetFrameWithControl](AVPlayerSetFrameWithControl.md)   Repositions text view to given control. | Mac only   10.2 |
| [AVPlayer.SetMuted](AVPlayerSetMuted.md)   Sets mute status. | Mac/iOS   7.1 |
| [AVPlayer.SetProgressEvaluate](AVPlayerSetProgressEvaluate.md)   Sets the expression to evaluate on progress. | Mac/iOS   7.4 |
| [AVPlayer.SetProgressInterval](AVPlayerSetProgressInterval.md)   Sets the progress interval. | Mac/iOS   7.4 |
| [AVPlayer.SetRate](AVPlayerSetRate.md)   Sets the playback rate. | Mac/iOS   7.1 |
| [AVPlayer.SetShowsFrameSteppingButtons](AVPlayerSetShowsFrameSteppingButtons.md)   Whether to show frame stepping buttons. | Mac only   10.2 |
| [AVPlayer.SetShowsFullScreenToggleButton](AVPlayerSetShowsFullScreenToggleButton.md)   Whether or not the controls pane will show a full screen toggle button. | Mac only   10.2 |
| [AVPlayer.SetShowsSubtitles](AVPlayerSetShowsSubtitles.md)   Seats whether subtitles should be shown. | Mac only   10.5 |
| [AVPlayer.SetTag](AVPlayerSetTag.md)   Sets the tag value. | Mac/iOS   10.2 |
| [AVPlayer.SetTime](AVPlayerSetTime.md)   Sets the current time. | Mac/iOS   7.1 |
| [AVPlayer.SetVisible](AVPlayerSetVisible.md)   Hides or shows the player view. | Mac only   10.2 |
| [AVPlayer.SetVolume](AVPlayerSetVolume.md)   Sets the volume. | Mac/iOS   7.1 |

47 functions shown.

These functions require a license (72%).

### Release notes

- **Version 13.0**
    - Added [AVPlayer.List](https://www.mbsplugins.eu/AVPlayerList.shtml) function.
- **Version 10.5**
    - Added [AVPlayer.GetShowsSubtitles](https://www.mbsplugins.eu/AVPlayerGetShowsSubtitles.shtml) and [AVPlayer.SetShowsSubtitles](https://www.mbsplugins.eu/AVPlayerSetShowsSubtitles.shtml) function.
- **Version 10.3**
    - Fixed [AVPlayer.SetTime](https://www.mbsplugins.eu/AVPlayerSetTime.shtml) function to pass correct time.
    - Rewrote control placement for MacOS and iOS controls for [AVPlayer.AddView](https://www.mbsplugins.eu/AVPlayerAddView.shtml), [DragDrop.CreateWithControl](https://www.mbsplugins.eu/DragDropCreateWithControl.shtml), [ImageView.CreateWithControl](https://www.mbsplugins.eu/ImageViewCreateWithControl.shtml), [MapView.CreateWithControl](https://www.mbsplugins.eu/MapViewCreateWithControl.shtml), [TextView.CreateWithControl](https://www.mbsplugins.eu/TextViewCreateWithControl.shtml), [WebView.CreateWithControl](https://www.mbsplugins.eu/WebViewCreateWithControl.shtml).
    - Rewrote control placement for MacOS and iOS controls for [AVPlayer.SetFrameWithControl](https://www.mbsplugins.eu/AVPlayerSetFrameWithControl.shtml), [DragDrop.SetFrameWithControl](https://www.mbsplugins.eu/DragDropSetFrameWithControl.shtml), [ImageView.SetFrameWithControl](https://www.mbsplugins.eu/ImageViewSetFrameWithControl.shtml), [MapView.SetFrameWithControl](https://www.mbsplugins.eu/MapViewSetFrameWithControl.shtml) [TextView.SetFrameWithControl](https://www.mbsplugins.eu/TextViewSetFrameWithControl.shtml), [WebView.SetFrameWithControl](https://www.mbsplugins.eu/WebViewSetFrameWithControl.shtml).
- **Version 10.2**
    - Added [AVPlayer.SetTag](https://www.mbsplugins.eu/AVPlayerSetTag.shtml) and [AVPlayer.GetTag](https://www.mbsplugins.eu/AVPlayerGetTag.shtml) functions.
    - Added view option for AVPlayer with [AVPlayer.AddView](https://www.mbsplugins.eu/AVPlayerAddView.shtml) function and related.
- **Version 8.2**
    - Fixed [AVPlayer.OpenContainer](http://www.mbsplugins.eu/AVPlayerOpenContainer.shtml) to work better with various file types including mp3.
- **Version 7.4**
    - Added [AVPlayer.GetFinishedEvaluate](http://www.mbsplugins.eu/AVPlayerGetFinishedEvaluate.shtml), [AVPlayer.GetFinishedFileName](http://www.mbsplugins.eu/AVPlayerGetFinishedFileName.shtml), [AVPlayer.GetFinishedScriptName](http://www.mbsplugins.eu/AVPlayerGetFinishedScriptName.shtml), [AVPlayer.SetFinishedEvaluate](http://www.mbsplugins.eu/AVPlayerSetFinishedEvaluate.shtml) and [AVPlayer.SetFinishedScript](http://www.mbsplugins.eu/AVPlayerSetFinishedScript.shtml).
    - Added [AVPlayer.GetProgressEvaluate](http://www.mbsplugins.eu/AVPlayerGetProgressEvaluate.shtml), [AVPlayer.GetProgressInterval](http://www.mbsplugins.eu/AVPlayerGetProgressInterval.shtml), [AVPlayer.SetProgressEvaluate](http://www.mbsplugins.eu/AVPlayerSetProgressEvaluate.shtml) and [AVPlayer.SetProgressInterval](http://www.mbsplugins.eu/AVPlayerSetProgressInterval.shtml) to track progress when playing audio.
- **Version 7.3**
    - Added [AVPlayer.FindPlayers](http://www.mbsplugins.eu/AVPlayerFindPlayers.shtml) function to access playing interactive containers on iOS.
    - Added [AVPlayer.GetAsset](http://www.mbsplugins.eu/AVPlayerGetAsset.shtml) function.
- **Version 7.1**
    - Added [AVPlayer](http://www.mbsplugins.eu/component_AVPlayer.shtml) functions.

### Blog Entries

- [MBS @ FMTraining.TV - What’s New in the FileMaker MonkeyBread Plug-in - 13.2 Release](https://www.mbsplugins.de/archive/2023-05-21/MBS_@_FMTrainingTV_-_What’s_/monkeybreadsoftware_blog_filemaker)
- [Combined Components with MBS FileMaker Plugin](https://www.mbsplugins.de/archive/2021-03-29/Combined_Components_with_MBS_F/monkeybreadsoftware_blog_filemaker)
- [5000 Functions in MBS Plugin](https://www.mbsplugins.de/archive/2017-11-11/5000_Functions_in_MBS_Plugin/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 7.4 - More than 4900 Functions In One Plugin](https://www.mbsplugins.de/archive/2017-09-26/MBS_FileMaker_Plugin_74_-_More/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 7.3 - Über 4800 Funktionen in einem Plugin](https://www.mbsplugins.de/archive/2017-07-18/MBS_FileMaker_Plugin_73_-_Übe/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 7.3 - More than 4800 Functions In One Plugin](https://www.mbsplugins.de/archive/2017-07-18/MBS_FileMaker_Plugin_73_-_More/monkeybreadsoftware_blog_filemaker)
- [Control AVPlayer on Mac and iOS](https://www.mbsplugins.de/archive/2017-05-30/Control_AVPlayer_on_Mac_and_iO/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 7.1 - Über 4400 Funktionen in einem Plugin](https://www.mbsplugins.de/archive/2017-03-14/MBS_FileMaker_Plugin_71_-_Übe/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 7.1 - More than 4400 Functions In One Plugin](https://www.mbsplugins.de/archive/2017-03-14/MBS_FileMaker_Plugin_71_-_More/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 6/2020, Seite 27](https://filemaker-magazin.de/neuigkeit/4118-Appetithappen-FMM_202006)

### Example Databases

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

[HTML Version](component_AVPlayer.shtml)