PLVLivePlayerPictureInPictureDelegate
Objective-C
@protocol PLVLivePlayerPictureInPictureDelegate <NSObject>
Swift
protocol PLVLivePlayerPictureInPictureDelegate : NSObjectProtocol
画中画代理
-
画中画即将开始
Declaration
Objective-C
- (void)plvLivePlayerPictureInPictureWillStart: (nonnull PLVPlayer<PLVLivePlayerPictureInPictureProtocol> *)livePlayer;
Swift
optional func plvLivePlayerPicture(inPictureWillStart livePlayer: PLVPlayer & PLVLivePlayerPictureInPictureProtocol)
Parameters
livePlayer
播放器
-
画中画已经开始
Declaration
Objective-C
- (void)plvLivePlayerPictureInPictureDidStart: (nonnull PLVPlayer<PLVLivePlayerPictureInPictureProtocol> *)livePlayer;
Swift
optional func plvLivePlayerPicture(inPictureDidStart livePlayer: PLVPlayer & PLVLivePlayerPictureInPictureProtocol)
Parameters
livePlayer
播放器
-
画中画开启失败
Declaration
Objective-C
- (void)plvLivePlayer: (nonnull PLVPlayer<PLVLivePlayerPictureInPictureProtocol> *) livePlayer pictureInPictureFailedToStartWithError:(nonnull NSError *)error;
Swift
optional func plvLive(_ livePlayer: PLVPlayer & PLVLivePlayerPictureInPictureProtocol, pictureInPictureFailedToStartWithError error: Error)
Parameters
livePlayer
播放器
error
失败错误原因
-
画中画即将停止
Declaration
Objective-C
- (void)plvLivePlayerPictureInPictureWillStop: (nonnull PLVPlayer<PLVLivePlayerPictureInPictureProtocol> *)livePlayer;
Swift
optional func plvLivePlayerPicture(inPictureWillStop livePlayer: PLVPlayer & PLVLivePlayerPictureInPictureProtocol)
Parameters
livePlayer
播放器
-
画中画已经停止
Declaration
Objective-C
- (void)plvLivePlayerPictureInPictureDidStop: (nonnull PLVPlayer<PLVLivePlayerPictureInPictureProtocol> *)livePlayer;
Swift
optional func plvLivePlayerPicture(inPictureDidStop livePlayer: PLVPlayer & PLVLivePlayerPictureInPictureProtocol)
Parameters
livePlayer
播放器
-
画中画播放器播放状态改变
Declaration
Objective-C
- (void)plvLivePlayer: (nonnull PLVPlayer<PLVLivePlayerPictureInPictureProtocol> *) livePlayer pictureInPicturePlayerPlayingStateDidChange:(BOOL)playing;
Swift
optional func plvLive(_ livePlayer: PLVPlayer & PLVLivePlayerPictureInPictureProtocol, pictureInPicturePlayerPlayingStateDidChange playing: Bool)
Parameters
livePlayer
播放器
playing
是否正在播放
-
画中画播放器播放状态改变
Note
iOS15系统上生效
Declaration
Objective-C
- (void)plvLivePlayer: (nonnull PLVPlayer<PLVLivePlayerPictureInPictureProtocol> *) livePlayer pictureInPicturePlayerPlayingStateDidChange:(BOOL)playing systemInterrupts:(BOOL)systemInterrupts;
Swift
optional func plvLive(_ livePlayer: PLVPlayer & PLVLivePlayerPictureInPictureProtocol, pictureInPicturePlayerPlayingStateDidChange playing: Bool, systemInterrupts: Bool)
Parameters
livePlayer
播放器
playing
是否正在播放
systemInterrupts
是否系统中断