mirror of
https://github.com/SoPat712/YTLitePlus.git
synced 2025-10-30 12:33:57 -04:00
24 lines
1.2 KiB
Objective-C
24 lines
1.2 KiB
Objective-C
#import <AVKit/AVKit.h>
|
|
#import "MLAVPIPPlayerLayerView.h"
|
|
#import "MLHAMSBDLSampleBufferRenderingView.h"
|
|
|
|
@interface MLPIPController : NSObject <AVPictureInPictureControllerDelegate, AVPictureInPictureSampleBufferPlaybackDelegate>
|
|
@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 |