#import #import "MLAVPIPPlayerLayerView.h" #import "MLHAMSBDLSampleBufferRenderingView.h" @interface MLPIPController : NSObject @property (nonatomic, strong, readwrite) MLAVPIPPlayerLayerView *AVPlayerView; @property (nonatomic, strong, readwrite) MLHAMSBDLSampleBufferRenderingView *HAMPlayerView; - (instancetype)initWithPlaceholderPlayerItem:(AVPlayerItem *)playerItem; // Deprecated - (instancetype)initWithPlaceholderPlayerItemResourcePath:(NSString *)placeholderPath; // Deprecated - (AVPictureInPictureControllerContentSource *)newContentSource API_AVAILABLE(ios(15.0)); - (BOOL)isPictureInPictureSupported; - (BOOL)isPictureInPictureActive; // Deprecated - (BOOL)pictureInPictureActive; - (BOOL)contentSourceNeedsRefresh; - (CGSize)renderSizeForView:(UIView *)view; - (BOOL)startPictureInPicture; // Deprecated - (void)stopPictureInPicture; // Deprecated - (void)addPIPControllerObserver:(id)observer; - (void)activatePiPController; - (void)deactivatePiPController; - (void)pictureInPictureControllerStartPlayback; - (void)pictureInPictureControllerStopPlayback; - (void)pause; @end