| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
AVPlayer.GetTime
Queries current time in seconds.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| AVPlayer | 7.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
MBS( "AVPlayer.GetTime"; AVPlayer ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| AVPlayer | The reference number of the player. | $Player |
Result
Returns value or error.
Description
Queries current time in seconds.Examples
Query time of container playing container on iOS:
# find players
Set Variable [$list; MBS( "AVPlayer.FindPlayers" ) ]
# pick first one
Set Variable [$player; GetValue($list; 1) ]
# query time
Set Variable [$time; MBS( "AVPlayer.GetTime"; AVPlayer ) ]
Set Variable [$list; MBS( "AVPlayer.FindPlayers" ) ]
# pick first one
Set Variable [$player; GetValue($list; 1) ]
# query time
Set Variable [$time; MBS( "AVPlayer.GetTime"; AVPlayer ) ]
See also
- AVPlayer.FindPlayers
- AVPlayer.GetAsset
- AVPlayer.GetMuted
- AVPlayer.GetRate
- AVPlayer.GetTag
- AVPlayer.GetVolume
- AVPlayer.SetRate
- AVPlayer.SetTag
- AVPlayer.SetTime
Example Databases
This function checks for a license.
Created 3th February 2017, last changed 30th May 2017