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