Script Steps Reference
Table Of Contents
- Contents
- Script steps reference (alphabetical list)
- About script steps
- Control script steps
- Navigation script steps
- Editing script steps
- Fields script steps
- Set Field
- Set Field By Name
- Set Next Serial Value
- Insert Text
- Insert Calculated Result
- Insert From Device
- Insert From Index
- Insert From Last Visited
- Insert From URL
- Insert Current Date
- Insert Current Time
- Insert Current User Name
- Insert Picture
- Insert Audio/Video
- Insert PDF
- Insert File
- Replace Field Contents
- Relookup Field Contents
- Export Field Contents
- Records script steps
- New Record/Request
- Duplicate Record/Request
- Delete Record/Request
- Delete Portal Row
- Delete All Records
- Open Record/Request
- Revert Record/Request
- Commit Records/Requests
- Copy Record/Request
- Copy All Records/Requests
- Import Records
- Export Records
- Save Records As Excel
- Save Records As PDF
- Save Records As Snapshot Link
- Found Sets script steps
- Windows script steps
- Files script steps
- Accounts script steps
- Spelling script steps
- Open Menu Item script steps
- Miscellaneous script steps
- Get Directory
- Show Custom Dialog
- Allow Formatting Bar
- Refresh Object
- Beep
- Speak (OS X)
- Dial Phone
- Install Plug-In File
- Install Menu Set
- Set Web Viewer
- Open URL
- Send Mail
- AVPlayer Play
- AVPlayer Set Playback State
- AVPlayer Set Options
- Refresh Portal
- Send DDE Execute (Windows)
- Perform AppleScript (OS X)
- Execute SQL
- Send Event
- Comment
- Flush Cache to Disk
- Exit Application
- Enable Touch Keyboard
- Glossary
Miscellaneous script steps
F
ILEMAKER SCRIPT STEPS REFERENCE 261
• 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 the first 100 seconds of the media.
The default value for this option is 0, which allows the media to play to the end.
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 scheduled script No
FileMaker Go Yes
Custom Web Publishing No
FileMaker WebDirect No
Runtime solution No