Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Opens the audio file from a container.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
AVPlayer | 7.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
Parameter | Description | Example |
---|---|---|
Container | The container with the audio file. | MyTable::MovieContainer |
Returns player reference number or error.
Open from container:
Set Variable [$player; Value:MBS("AVPlayer.OpenContainer"; AVPlayer::Container)]
If [MBS("IsError")]
Show Custom Dialog ["Error loading audio file."; $player]
Exit Script []
End If
Set Field [AVPlayer::Duration; MBS("AVPlayer.GetDuration"; $player)]
Set Field [AVPlayer::Rate; MBS("AVPlayer.GetRate"; $$Player)]
Set Field [AVPlayer::Volume; MBS("AVPlayer.GetVolume"; $$Player)]
Set Variable [$$player; Value:$player]
This function checks for a license.
Created 3th February 2017, last changed 18th June 2022