Platforms to show: All Mac Windows Linux Cross-Platform

Back to AVPlayerLayerMBS class.

AVPlayerLayerMBS.Constructor(player as AVPlayerMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a player layer to display the visual output of a specified player.

player: The player for which the player layer displays visual output.

AVPlayerLayerMBS.isReadyForDisplay as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Indicates whether the first video frame has been made ready for display for the current item of the associated player. (read-only)

Use this property as an indicator of when best to show or animate-in a player layer into view. An player layer may be displayed, or made visible, while this property is false, however the layer will not have any user-visible content until the value becomes true.

This property remains false for a player's currentItem whose asset contains no enabled video tracks.

AVPlayerLayerMBS.player as AVPlayerMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The player for which the player layer displays visual output.

(Read and Write computed property)

AVPlayerLayerMBS.videoGravity as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Specifies how the video is displayed within a player layer's bounds.

Options are AVLayerVideoGravityResizeAspect, AVLayerVideoGravityResizeAspectFill, and AVLayerVideoGravityResize.
This property is animatable.
(Read and Write computed property)

AVPlayerLayerMBS.videoRect as CGRectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 14.0 ✅ Yes ❌ No ❌ No ✅ Yes All
The current size and position of the video image as displayed within the receiver's bounds. (read-only)

Available in OS X v10.9 and later.

The items on this page are in the following plugins: MBS AVFoundation Plugin.


The biggest plugin in space...