AliyunPlayer v6.19.0
Aliyun Player API Reference Manual for iOS Platforms
Loading...
Searching...
No Matches
<AliPlayerPictureInPictureDelegate> Protocol Reference

#include "AliPlayerPictureInPictureDelegate.h"

Inheritance diagram for <AliPlayerPictureInPictureDelegate>:

Instance Methods

(void) - pictureInPictureController:didTransitionToRenderSize:
 画中画窗口尺寸变化
 
(void) - pictureInPictureController:failedToStartPictureInPictureWithError:
 画中画打开失败
 
(void) - pictureInPictureController:restoreUserInterfaceForPictureInPictureStopWithCompletionHandler:
 在画中画停止前告诉代理恢复用户接口
 
(void) - pictureInPictureController:setPlaying:
 点击画中画暂停按钮
 
(void) - pictureInPictureController:skipByInterval:completionHandler:
 点击快进或快退按钮
 
(void) - pictureInPictureControllerDidStartPictureInPicture:
 画中画已经启动
 
(void) - pictureInPictureControllerDidStopPictureInPicture:
 画中画已经停止
 
(void) - pictureInPictureControllerIsPictureInPictureEnable:isEnable:
 画中画是否启动
 
(BOOL) - pictureInPictureControllerIsPlaybackPaused:
 将暂停/播放状态反映到UI上
 
(CMTimeRange) - pictureInPictureControllerTimeRangeForPlayback:layerTime:
 通知画中画控制起当前可播放的时间范围
 
(void) - pictureInPictureControllerWillStartPictureInPicture:
 画中画将要启动
 
(void) - pictureInPictureControllerWillStopPictureInPicture:
 画中画准备停止
 

Method Documentation

◆ pictureInPictureController:didTransitionToRenderSize:

- (void) pictureInPictureController: (nonnull AVPictureInPictureController *) pictureInPictureController
didTransitionToRenderSize: (CMVideoDimensions) newRenderSize 
optionalrequired

画中画窗口尺寸变化

Parameters
pictureInPictureController画中画控制器
newRenderSize新的窗口尺寸

◆ pictureInPictureController:failedToStartPictureInPictureWithError:

- (void) pictureInPictureController: (AVPictureInPictureController *_Nullable) pictureInPictureController
failedToStartPictureInPictureWithError: (NSError *_Nullable) error 
optionalrequired

画中画打开失败

Parameters
pictureInPictureController画中画控制器

◆ pictureInPictureController:restoreUserInterfaceForPictureInPictureStopWithCompletionHandler:

- (void) pictureInPictureController: (AVPictureInPictureController *_Nullable) pictureInPictureController
restoreUserInterfaceForPictureInPictureStopWithCompletionHandler: (void(^)(BOOL restored)) completionHandler 
optionalrequired

在画中画停止前告诉代理恢复用户接口

Parameters
pictureInPictureController画中画控制器
completionHandler调用并传值YES以允许系统结束恢复播放器用户接口

◆ pictureInPictureController:setPlaying:

- (void) pictureInPictureController: (nonnull AVPictureInPictureController *) pictureInPictureController
setPlaying: (BOOL) playing 
optionalrequired

点击画中画暂停按钮

Parameters
pictureInPictureController画中画控制器
playing是否正在播放

◆ pictureInPictureController:skipByInterval:completionHandler:

- (void) pictureInPictureController: (nonnull AVPictureInPictureController *) pictureInPictureController
skipByInterval: (CMTime) skipInterval
completionHandler: (nonnull void(^)(void)) completionHandler 
optionalrequired

点击快进或快退按钮

Parameters
pictureInPictureController画中画控制器
skipInterval快进快退的事件间隔
completionHandler一定要调用的闭包,表示跳转操作完成

◆ pictureInPictureControllerDidStartPictureInPicture:

- (void) pictureInPictureControllerDidStartPictureInPicture: (AVPictureInPictureController *_Nullable) pictureInPictureController
optionalrequired

画中画已经启动

Parameters
pictureInPictureController画中画控制器

◆ pictureInPictureControllerDidStopPictureInPicture:

- (void) pictureInPictureControllerDidStopPictureInPicture: (AVPictureInPictureController *_Nullable) pictureInPictureController
optionalrequired

画中画已经停止

Parameters
pictureInPictureController画中画控制器

◆ pictureInPictureControllerIsPictureInPictureEnable:isEnable:

- (void) pictureInPictureControllerIsPictureInPictureEnable: (nullable AVPictureInPictureController *) pictureInPictureController
isEnable: (BOOL) isEnable 
optionalrequired

画中画是否启动

Parameters
pictureInPictureController画中画控制器
isEnable画中画是否启动

◆ pictureInPictureControllerIsPlaybackPaused:

- (BOOL) pictureInPictureControllerIsPlaybackPaused: (nonnull AVPictureInPictureController *) pictureInPictureController
optionalrequired

将暂停/播放状态反映到UI上

Parameters
pictureInPictureController画中画控制器
Returns
暂停/播放

◆ pictureInPictureControllerTimeRangeForPlayback:layerTime:

- (CMTimeRange) pictureInPictureControllerTimeRangeForPlayback: (nonnull AVPictureInPictureController *) pictureInPictureController
layerTime: (CMTime) layerTime 
optionalrequired

通知画中画控制起当前可播放的时间范围

Parameters
pictureInPictureController画中画控制器
Returns
当前可播放的时间范围

◆ pictureInPictureControllerWillStartPictureInPicture:

- (void) pictureInPictureControllerWillStartPictureInPicture: (AVPictureInPictureController *_Nullable) pictureInPictureController
optional

画中画将要启动

Parameters
pictureInPictureController画中画控制器

◆ pictureInPictureControllerWillStopPictureInPicture:

- (void) pictureInPictureControllerWillStopPictureInPicture: (AVPictureInPictureController *_Nullable) pictureInPictureController
optionalrequired

画中画准备停止

Parameters
pictureInPictureController画中画控制器

The documentation for this protocol was generated from the following file: