Online Documentation - Statistics - FAQ - Plugin Parts (All, Dependencies) - Class hierarchy
New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1
The list of the topics, classes, interfaces, controls, modules, global methods by category, global methods by name, screenshots, licenses and examples.
Platforms to show: All Mac Windows Linux Cross-Platform
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The multiple-item case supports advanced behaviors.
AVPlayer works equally well with local and remote media files, providing you with appropriate information about readiness to play or about the need to await additional data before continuing.
You can display the visual content of items played by an instance of AVPlayer in a CoreAnimation layer of class AVPlayerLayer; to synchronize real-time playback with other CoreAnimation layers, you can use AVSynchronizedLayer. You cannot use an instance of AVVideoCompositionCoreAnimationTool with an AVPlayer object; for offline rendering you should instead use AVAssetExportSession.
You can observe the status of a player using key-value observing. So that you can add and remove observers safely, AVPlayer serializes notifications of changes that occur dynamically during playback on a dispatch queue. By default, this queue is the main queue . To ensure safe access to a player's nonatomic properties while dynamic changes in playback state may be reported, you must serialize access with the receiver's notification queue. In the common case, such serialization is naturally achieved by invoking AVPlayer's various methods on the main thread or queue.
Constant | Value | Description |
---|---|---|
AVPlayerActionAtItemEndAdvance | 0 |
Indicates that the player should advance to the next item, if there is one. |
AVPlayerActionAtItemEndNone | 2 |
Indicates that the player should do nothing. |
AVPlayerActionAtItemEndPause | 1 |
Indicates that the player should pause playing. |
Constant | Value | Description |
---|---|---|
AVPlayerStatusFailed | 2 |
Indicates that the player can no longer play AVPlayerItem instances because of an error. The error is described by the value of the player's error property. |
AVPlayerStatusReadyToPlay | 1 |
Indicates that the player is ready to play AVPlayerItem instances. |
AVPlayerStatusUnknown | 0 |
Indicates that the status of the player is not yet known because it has not tried to load new media resources for playback. |
The items on this page are in the following plugins: MBS AVFoundation Plugin.
AVPlayerLooperMBS - AVPlayerMediaSelectionCriteriaMBS