IVSPlayerView
Objective-C
@interface IVSPlayerView : UIView
Swift
class IVSPlayerView : UIView
A view whose backing layer is an instance of IVSPlayerLayer
.
-
This view’s backing layer, guaranteed to be an instance of
IVSPlayerLayer
.Declaration
Objective-C
@property (nonatomic, readonly) IVSPlayerLayer *_Nonnull playerLayer;
Swift
var playerLayer: IVSPlayerLayer { get }
-
Convenience accessor for the
player
property onplayerLayer
.This property is key-value observable.
-
Convenience accessor for the
videoGravity
property onplayerLayer
.This property is key-value observable.
Declaration
Objective-C
@property (nonatomic, copy) AVLayerVideoGravity _Nonnull videoGravity;
Swift
var videoGravity: AVLayerVideoGravity { get set }
-
Convenience accessor for the
videoRect
property onplayerLayer
.This property is key-value observable.
Declaration
Objective-C
@property (nonatomic, readonly) CGRect videoRect;
Swift
var videoRect: CGRect { get }