Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2   9.3    Statistic  


Sets the expression to evaluate on progress.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
AVPlayer 7.4 Yes No No No Yes
MBS( "AVPlayer.SetProgressEvaluate"; AVPlayer; Expression )   More


Parameter Description Example value
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.


Returns OK or error.


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.


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

Blog Entries

Created 7th September 2017, last changed 4th April 2018

AVPlayer.SetMuted   -   AVPlayer.SetProgressInterval

Feedback: Report problem or ask question.

MBS Xojo Plugins