Reference > Script steps reference > Miscellaneous script steps > AVPlayer Set Playback State
 

AVPlayer Set Playback State

Pauses, resumes, or stops playing a media file that is playing or is paused.

See also 

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 Advanced 

No 

FileMaker Go 

Yes 

FileMaker WebDirect 

No 

FileMaker Server 

No 

FileMaker Cloud 

No 

FileMaker Data API 

No 

Custom Web Publishing 

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