Script Steps Reference

Table Of Contents
Miscellaneous script steps
F
ILEMAKER PRO SCRIPT STEPS REFERENCE 261
Compatibility
Originated in
FileMaker Pro 14.0
Description
Use this script to play media files from container fields, layout objects, or URLs in FileMaker Go. The
media can be an audio, a video, or an image file.
If the foreground window contains a media file that is playing when the window moves to the back,
the media file continues to play.
Example 1
Plays a media file in full screen and hides playback controls after the OnRecordLoad script trigger is
activated:
AVPlayer Play [Field:Library::Video; Presentation: Full Screen Only; Hide
Controls: Yes]
Example 2
Resumes playing a media file from the position at which it was last stopped.
Set Field [Library::Last Stopped Position; GetAVPlayerAttribute
("position")]
AVPlayer Play [Field:Library::Video; Position: "Library::Last Stopped
Position"]
Example 3
Plays the media file in full screen for iPhone, and embedded for iPad.
If [Get(Device) = 3 //iPad]
AVPlayer Play [Object: "Container"; Presentation: Start Embedded]
Else If [Get(Device) = 4 //iPhone]
AVPlayer Play [Object: "Container"; Presentation: Start Full Screen]
End If
Where the script step runs Supported
FileMaker Pro No
FileMaker Server No
FileMaker Go Yes
Custom Web Publishing No
FileMaker WebDirect No
Runtime solution No