AVPlayer.SetTime
----------------

Sets the current time.

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

MBS( "AVPlayer.SetTime"; AVPlayer; Time ) 

**MBS**( **"AVPlayer.SetTime";** /\* Sets the current time. \*/  
**$AVPlayer**; /\* The reference number of the player.e.g. $Player \*/   
**$Time**) /\* The new playback time in seconds.e.g. 10.0 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| AVPlayer | The reference number of the player. | $Player |
| Time | The new playback time in seconds. | 10.0 |

### Result

Returns OK or error.

### Description

Sets the current time.  
### Examples

Jump to 10 seconds:

 Set Variable \[ $r ; MBS ( "AVPlayer.SetTime"; $AVPlayer ; 10 ) \]  
### See also

- [AVPlayer.GetRate](AVPlayerGetRate.md)
- [AVPlayer.GetTag](AVPlayerGetTag.md)
- [AVPlayer.GetTime](AVPlayerGetTime.md)
- [AVPlayer.SetMuted](AVPlayerSetMuted.md)
- [AVPlayer.SetRate](AVPlayerSetRate.md)
- [AVPlayer.SetTag](AVPlayerSetTag.md)
- [AVPlayer.SetVolume](AVPlayerSetVolume.md)

### Release notes

- **Version 10.3**
    - Fixed [AVPlayer.SetTime](https://www.mbsplugins.eu/AVPlayerSetTime.shtml) function to pass correct time.

### Blog Entries

- [MBS FileMaker Plugin, version 10.3pr6](https://www.mbsplugins.de/archive/2020-06-25/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 3th February 2017 , last changed 6th June 2020

  
[AVPlayer.SetTag](AVPlayerSetTag.md) - [AVPlayer.SetVisible](AVPlayerSetVisible.md)

[HTML Version](AVPlayerSetTime.shtml)