Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   Crossplatform   Server (Not)   Client   Components   Old   Guides
New in version: 5.0   5.1   5.2   5.3   5.4   6.0   6.1   6.2   6.3   6.4   6.5   7.0   7.1    Statistic  

AVPlayer.Release

Releases the audio player.

Component: AVPlayer
Version: 7.1
Mac OS X: Yes
Windows: No
Server: No
FileMaker Cloud: No

MBS( "AVPlayer.Release"; AVPlayer )

Parameters

Parameter Description Example value
AVPlayer The reference number of the player. $Player

Result

Returns OK or error.

Description

Releases the audio player.
If you forget to release a player, the audio object stays in memory and if memory is low, FileMaker will crash.
To avoid this the plugin will only open up to 50 files simultaneously.

Examples

Release player:

#Close last movie if it was open.
If [Length($$Player)>0]
    Set Variable [$r; Value:MBS("AVPlayer.Release"; $$Player)]
    Set Variable [$$Player; Value:""]
End If

See also


AVPlayer.Play   -   AVPlayer.ReleaseAll

Feedback: Report problem or ask question.




Links
MBS REAL studio tutorial videos - Nachhilfe in Andernach