AVPlayer Set Playback State
Pauses, resumes, or stops playing a media file that is playing or is paused.
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
Product | Supported |
FileMaker Pro | No |
FileMaker Go | Yes |
FileMaker WebDirect | No |
FileMaker Server | No |
FileMaker Cloud | No |
FileMaker Data API | No |
Custom Web Publishing | No |
Originated in version
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.
Copy
AVPlayer Set Playback State [Playing]
Example 2
Stops a media file if it is playing.
Copy
If [GetAVPlayerAttribute("playbackState") = 1
AVPlayer Set Playback State [Stopped]
End If