AVPlayer Set Playback State
 
Purpose 
Pauses, resumes, or stops playing a media file that is playing or is paused.
See also 
Format 
AVPlayer Set Playback State [Paused/Playing/Stopped]
Options 
 •
Paused pauses playing the media file.
 •
Playing resumes playing a media file that has been paused.
 •
Stopped stops playing the media file. After a player is set to stop, it cannot be set to play with this script step.
Compatibility 
 
Where the script step runs 
Supported 
FileMaker Pro 
No 
FileMaker Server scheduled script 
No 
FileMaker Go 
Yes 
Custom Web Publishing 
No 
FileMaker WebDirect 
No 
Runtime solution 
No 
Originated in 
FileMaker Pro 14.0
Description 
Use this script step to pause, resume, or stop playing a media file that is playing or is paused.
Example 1 
Resumes playing a media file that has been paused.
AVPlayer Set Playback State [Playing]
Example 2 
Stops a media file if it is playing.
If [GetAVPlayerAttribute("playbackState") = 1
AVPlayer Set Playback State [Stopped]
End If
Related topics 
Script steps reference (alphabetical list)
Script steps reference (category list)
AVPlayer Play script step
AVPlayer Set Options script step
GetAVPlayerAttribute function