Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
11.3
11.4
Statistic
FMM
Blog
Opens an audio file.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
AVPlayer | 7.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
Parameter | Description | Example |
---|---|---|
Path | The native file path to the movie file. | "/Test.mov" |
Returns player reference number or error.
Open file:
Set Variable [$player; Value:MBS("AVPlayer.OpenFile"; AVPlayer::FilePath)]
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]
Created 3th February 2017, last changed 3th February 2017
AVPlayer.OpenContainer - AVPlayer.OpenURL
Feedback: Report problem or ask question.