AVPlayer Set Options
 
Purpose 
Changes the settings for a media file that is playing or is paused.
See also 
Format 
AVPlayer Set Options [Presentation: Start Full Screen/Full Screen Only/Start Embedded/Audio Only;
Disable Interaction: Yes/No; Hide Controls: Yes/No; Disable External Controls: Yes/No;
Pause in Background: Yes/No; Position: <
value or formula>;
Start Offset: <value or formula>; End Offset: <value or formula>; Sequence: None/Next/Previous]
Options 
 •
Presentation changes the setting for displaying the media.
 •
Start Full Screen starts playing the media in full screen but allows changing the presentation to embedded.
 •
Full Screen Only plays the media in full screen.
 •
Start Embedded starts playing the media as embedded but allows changing the presentation to full screen.
 •
Audio Only plays only the audio.
 •
Disable Interaction changes the setting for enabling or disabling user interaction with the playback. If this option is set to Yes, you cannot use the playback controls or gestures to interact with the media.
 •
Yes disables user interaction with the playback.
 •
No enables user interaction with the playback.
 •
Hide Controls changes the setting for showing or hiding the playback controls while the media plays. If you hide the playback controls but enable interaction, you can use gestures instead of playback controls.
 •
Yes hides the playback controls.
 •
No shows the playback controls.
 •
Disable External Controls enables or disables the iOS playback controls on the lock screen or control panel when the media is playing or is paused.
 •
Yes disables the iOS playback controls.
 •
No enables the iOS playback controls.
 •
Pause in Background changes the setting for playing the audio when FileMaker Go is moved to the background. The video always pauses when FileMaker Go is moved to the background.
 •
Yes pauses the audio when FileMaker Go is moved to the background.
 •
No continues playing the audio when FileMaker Go is moved to the background.
 •
Position specifies how many seconds from the beginning of the media to move the current playback.
 •
Start Offset specifies the beginning of the playback range in seconds from the beginning of the media. The media can be played only within the playback range. For example, if you set this option to 30, the user cannot rewind into or play the first 30 seconds of the media. The default value for this option is 0, which allows the media to start from the beginning.
 •
End Offset specifies the end of the playback range in seconds from the beginning of the media. The media can be played only within the playback range. For example, if you set this option to 100, the user cannot fast forward or play past 100 seconds of the media. The default value for this option is 0, which allows the media to play to the end.
 •
Sequence specifies which media file should play next.
 •
None plays no additional media.
 •
Next plays the next media.
 •
Previous plays the previous media.
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 change the settings for audio, video, or image files when the file is playing or is paused.
Example 1 
Changes the setting of a media file that is currently playing to start the playback 50 seconds from the beginning of the file.
AVPlayer Set Options [Position: 50]
Example 2 
Enables user interaction with the playback after the video has played for 30 seconds.
AVPlayer Play [Object: "Container"; Disable Interaction: Yes]
Pause/Resume Script [Duration (seconds): 30]
AVPlayer Set Options [Disable Interaction: No]
Example 3 
Pauses the audio file that is playing if FileMaker Go moves to the background.
AVPlayer Set Options [Pause in Background: Yes]
Related topics 
Script steps reference (alphabetical list)
Script steps reference (category list)
AVPlayer Play script step
AVPlayer Set Playback State script step
GetAVPlayerAttribute function