Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
AVPlayer.SetProgressEvaluate
Sets the expression to evaluate on progress.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| AVPlayer | 7.4 | Yes | No | No | No | Yes |
Parameters
| Parameter | Description | Example |
|---|---|---|
| AVPlayer | The reference number of the player. | $Player |
| Expression | The expression to evaluate. Can be in local language of FileMaker Pro or english. For Server must always be in english. |
Result
Returns OK or error.
Description
Sets the expression to evaluate on progress.Evaluated once as second to update progress in GUI.
In the expression the text $$ID$$ will be replaced when evaluated with the curl reference, so you can pass it to other functions if needed. $$Time$$ is replaced with current time in milliseconds.
Examples
Play and define progress expression:
Set Variable [ $r ; Value: MBS("AVPlayer.SetProgressEvaluate"; $$Player; "MBS(\"FM.ExecuteFileSQL\"; \"AVPlayer.fmp12\"; \"UPDATE \\\"AVPlayer\\\" SET \\\"Position\\\"=?\"; 9; 13; $$Time$$ / 1000)") ]
Set Variable [ $r ; Value: MBS("AVPlayer.SetProgressInterval"; $$Player; 1) ]
Set Variable [ $r ; Value: MBS("AVPlayer.Play"; $$Player) ]
See also
- AVPlayer.GetProgressEvaluate
- AVPlayer.Play
- AVPlayer.SetFinishedEvaluate
- AVPlayer.SetProgressInterval
- FM.ExecuteFileSQL
Blog Entries
Release notes
- Version 7.4
- Added AVPlayer.GetProgressEvaluate, AVPlayer.GetProgressInterval, AVPlayer.SetProgressEvaluate and AVPlayer.SetProgressInterval to track progress when playing audio.
Created 7th September 2017, last changed 4th April 2018
AVPlayer.SetMuted - AVPlayer.SetProgressInterval
Feedback: Report problem or ask question.
Links
MBS FileMaker Plugins