AVPlayer.SetProgressEvaluate
----------------------------

Sets the expression to evaluate on progress.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [AVPlayer](component_AVPlayer.md) | [7.4](newinversion74.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "AVPlayer.SetProgressEvaluate"; AVPlayer; Expression ) 

**MBS**( **"AVPlayer.SetProgressEvaluate";** /\* Sets the expression to evaluate on progress. \*/  
**$AVPlayer**; /\* The reference number of the player.e.g. $Player \*/   
**$Expression**) /\* The expression to evaluate.  
Can be in local language of FileMaker Pro or english.   
For Server must always be in english. \*/ 

### 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](FMExecuteFileSQL.md)\\"; \\"AVPlayer.fmp12\\"; \\"UPDATE \\\\\\"AVPlayer\\\\\\" SET \\\\\\"Position\\\\\\"=?\\"; 9; 13; $$Time $$ / 1000)") \]   
Set Variable \[ $r ; Value: MBS ("[AVPlayer.SetProgressInterval](AVPlayerSetProgressInterval.md)"; $$Player ; 1) \]   
Set Variable \[ $r ; Value: MBS ("[AVPlayer.Play](AVPlayerPlay.md)"; $$Player ) \]  
### See also

- [AVPlayer.GetProgressEvaluate](AVPlayerGetProgressEvaluate.md)
- [AVPlayer.Play](AVPlayerPlay.md)
- [AVPlayer.SetFinishedEvaluate](AVPlayerSetFinishedEvaluate.md)
- [AVPlayer.SetProgressInterval](AVPlayerSetProgressInterval.md)
- [FM.ExecuteFileSQL](FMExecuteFileSQL.md)

### Release notes

- **Version 7.4**
    - Added [AVPlayer.GetProgressEvaluate](http://www.mbsplugins.eu/AVPlayerGetProgressEvaluate.shtml), [AVPlayer.GetProgressInterval](http://www.mbsplugins.eu/AVPlayerGetProgressInterval.shtml), [AVPlayer.SetProgressEvaluate](http://www.mbsplugins.eu/AVPlayerSetProgressEvaluate.shtml) and [AVPlayer.SetProgressInterval](http://www.mbsplugins.eu/AVPlayerSetProgressInterval.shtml) to track progress when playing audio.

### Blog Entries

- [MBS FileMaker Plugin, version 7.4pr5](https://www.mbsplugins.de/archive/2017-09-11/MBS_FileMaker_Plugin_version_7/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin Schulung auf Deutsch bei der FMK 2017](https://www.mbsplugins.de/archive/2017-09-11/MBS_FileMaker_Plugin_Schulung_/monkeybreadsoftware_blog_filemaker)

This function is free to use.

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

  
[AVPlayer.SetMuted](AVPlayerSetMuted.md) - [AVPlayer.SetProgressInterval](AVPlayerSetProgressInterval.md)

[HTML Version](AVPlayerSetProgressEvaluate.shtml)