AVPictureInPictureController(IVSPlayer)
@interface AVPictureInPictureController (IVSPlayer)
Extends AVPictureInPictureController
with IVSPlayerLayer
support.
-
Create an instance of
AVPictureInPictureController
with anIVSPlayerLayer
instance.Declaration
Objective-C
- (nullable instancetype)initWithIVSPlayerLayer: (nonnull IVSPlayerLayer *)playerLayer;
Swift
convenience init?(ivsPlayerLayer playerLayer: IVSPlayerLayer)
Parameters
playerLayer
The
IVSPlayerLayer
instance used for playback. -
The
IVSPlayerLayer
instance associated with this Picture in Picture controller; nil otherwise.Declaration
Objective-C
@property (nonatomic, readonly, nullable) IVSPlayerLayer *ivsPlayerLayer;
Swift
var ivsPlayerLayer: IVSPlayerLayer? { get }