Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

AVPlayerLayerMBS class

Super class: CALayerMBS

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class AVFoundation MBS AVFoundation Plugin 13.2 Yes No No Yes, macOS only No
Function: AVPlayerLayer is a subclass of CALayer to which an AVPlayer object can direct its visual output.
Notes:
The videoGravity property defines how the video content is displayed within the player layer's bounds rect.

The value for the contents key of a player layer is opaque and effectively read-only.

During playback, AVPlayer may compensate for temporal drift between its visual output and its audible output to one or more independently-clocked audio output devices by adjusting the timing of its associated player layers. The effects of these adjustments are usually very small; however, clients that wish to remain entirely unaffected by such adjustments may wish to place other layers for which timing is important into independently timed subtrees of their layer trees.

You can create arbitrary numbers of player layers with the same AVPlayer object. Only the most-recently-created player layer will actually display the video content on-screen.
Subclass of the CALayerMBS class.

Feedback, Comments & Corrections

Super class CALayerMBS

Edge constants

Constant Value Description
kCALayerBottomEdge 4 Specifies that the bottom edge of the receiver's content should be antialiased.
kCALayerLeftEdge 1 Specifies that the left edge of the receiver's content should be antialiased.
kCALayerRightEdge 2 Specifies that the right edge of the receiver's content should be antialiased.
kCALayerTopEdge 8 Specifies that the top edge of the receiver's content should be antialiased.

Autoresize Mask Constants

Constant Value Description
kCALayerHeightSizable 16 The receiver's height is flexible.
kCALayerMaxXMargin 4 The left margin between the receiver and its superview is flexible.
kCALayerMaxYMargin 32 The top margin between the receiver and its superview is flexible.
kCALayerMinXMargin 1 The left margin between the receiver and its superview is flexible.
kCALayerMinYMargin 8 The top margin between the receiver and its superview is flexible.
kCALayerNotSizable 0 The receiver cannot be resized.
kCALayerWidthSizable 2 The receiver's width is flexible.

This class has no sub classes.

Some methods using this class:

Some examples which use this class:


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


AVPlayerItemVideoOutputMBS   -   AVPlayerMBS




Links
MBS Xojo tutorial videos