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:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
AVPlayer.OpenContainer
Opens the audio file from a container.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| AVPlayer | 7.1 | Yes | No | No | No | Yes |
Parameters
| Parameter | Description | Example |
|---|---|---|
| Container | The container with the audio file. | MyTable::MovieContainer |
Result
Returns player reference number or error.
Description
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.
Examples
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
- AVAsset.OpenContainer
- AVPlayer.GetDuration
- AVPlayer.GetRate
- AVPlayer.GetVolume
- AVPlayer.OpenFile
- AVPlayer.OpenURL
- AVPlayer.Release
- IsError
Example Databases
Blog Entries
Release notes
- Version 8.2
- Fixed AVPlayer.OpenContainer to work better with various file types including mp3.
Created 3th February 2017, last changed 3th February 2017
AVPlayer.GetWindowRef - AVPlayer.OpenFile
Feedback: Report problem or ask question.
Links
MBS FileMaker Plugins