AVPlayer.ReleaseAll
-------------------

Releases all movies in memory.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [AVPlayer](component_AVPlayer.md) | [7.1](newinversion71.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "AVPlayer.ReleaseAll" ) ### Parameters

none

### Result

Returns OK or error.

### Description

Releases all movies in memory.  
Be aware that on a server this may free objects, which are used by other scripts running in parallel!  
### Examples

Cleanup:

 Set Variable \[ $r ; Value: MBS ( "AVPlayer.ReleaseAll" ) \]  
### See also

- [AVAsset.ReleaseAll](AVAssetReleaseAll.md)
- [AVPlayer.Release](AVPlayerRelease.md)

### Example Databases

- [iOS/Examples/Movie Container iOS and Mac](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/iOS/Examples/Movie%20Container%20iOS%20and%20Mac.shtml#3ScriptAnchor_)

This function is free to use.

Created 3th February 2017 , last changed 27th August 2023

  
[AVPlayer.Release](AVPlayerRelease.md) - [AVPlayer.SetAutoResizingMask](AVPlayerSetAutoResizingMask.md)

[HTML Version](AVPlayerReleaseAll.shtml)