Reference > Script triggers reference > OnFileAVPlayerChange
 
OnFileAVPlayerChange
Performs a script if the media is playing from a field or URL, and the state of the player changes. The following events can activate this script trigger:
a user pauses, plays, or stops the media by using the playback controls or gestures
a video stops playing at the end of the video
the media stops playing because the AVPlayer Set Playback State script step was set to Stopped
a video stops playing because the AVPlayer Play script step starts playing a different video
To set a script trigger when the media is playing in a container layout object, see OnObjectAVPlayerChange.
When the script runs
After the event has been processed.
Modes in which the trigger can be used
Browse and Find modes.
Result
None.
Compatibility 
 
Where the script trigger is activated 
Supported 
FileMaker Pro 
No 
FileMaker Server 
No 
FileMaker Go 
Yes 
Custom Web Publishing 
No 
FileMaker WebDirect 
No 
Runtime solution 
No 
Originated in 
FileMaker Pro 14.0
Related topics 
Setting up script triggers
Setting script triggers for layouts
Setting script triggers for objects