#include "AliPlayerPictureInPictureDelegate.h"
◆ 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: