AVPlayer.FindPlayers
--------------------

Finds all players in current window.

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

MBS( "AVPlayer.FindPlayers" ) ### Parameters

none

### Result

Returns list of identifiers or error.

### Description

Finds all players in current window.  
Looks for interactive containers using AVPlayer for playback and returns new identifiers for them.  
We added this function to query time of a playing interactive container on iOS.  
Seems to work on Mac for FileMaker 16, too.  
Looks on the current window with focus.  
  
If you just moved to the record, please use a short script pause to have FileMaker actually load the video.  
### Examples

Query time of container playing container on iOS:

 # find players   
Set Variable \[$list ; MBS ( "AVPlayer.FindPlayers" ) \]  
\# pick first one   
Set Variable \[$player ; GetValue($list ; 1) \]  
\# query time   
Set Variable \[$time ; MBS ( "[AVPlayer.GetTime](AVPlayerGetTime.md)"; AVPlayer ) \]  
### See also

- [AVPlayer.GetTime](AVPlayerGetTime.md)

### Release notes

- **Version 7.3**
    - Added [AVPlayer.FindPlayers](http://www.mbsplugins.eu/AVPlayerFindPlayers.shtml) function to access playing interactive containers on iOS.

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

### Blog Entries

- [MBS FileMaker Plugin, version 7.3pr1](https://www.mbsplugins.de/archive/2017-06-05/MBS_FileMaker_Plugin_version_7/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)

This function is free to use.

Created 30th May 2017 , last changed 19th March 2021

  
[AVPlayer.CloseView](AVPlayerCloseView.md) - [AVPlayer.GetAsset](AVPlayerGetAsset.md)

[HTML Version](AVPlayerFindPlayers.shtml)