Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2    Statistic  


Opens the audio file from a container.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
AVPlayer 7.1 Yes No No No Yes
MBS( "AVPlayer.OpenContainer"; Container )   More


Parameter Description Example value
Container The container with the audio file. MyTable::MovieContainer


Returns player reference number or error.


Opens the audio file from a container.
Returns the movie reference which must be released with AVPlayer.Release function.
See also AVPlayer.OpenFile or AVPlayer.OpenURL.

Works with normal container, compressed container and referenced container file.


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]

See also

Example Databases

Blog Entries

Created 3th February 2017, last changed 3th February 2017

AVPlayer.GetVolume   -   AVPlayer.OpenFile

Feedback: Report problem or ask question.

MBS Xojo Plugins