LiteAVSDK
腾讯云音视频 SDK ,服务于数万家企业客户的高可用组件,致力于最大限度地节省您的研发成本。
TXVodPlayListener

详细描述

VOD 相关回调


结构体说明

◆ TXVodPlayListener-p

protocol TXVodPlayListener-p

构造函数

(void) - onPlayEvent:event:withParam:
 
(void) - onNetStatus:withParam:
 
(void) - onPlayer:pictureInPictureStateDidChange:withParam:
 
(void) - onPlayer:pictureInPictureErrorDidOccur:withParam:
 

函数文档

◆ onNetStatus:withParam:()

- (void) onNetStatus: (TXVodPlayer *)  player
withParam: (NSDictionary *)  param 

网络状态通知

参数
player点播对象
param通知的内容(key,value)格式,参见TXLiveSDKTypeDef.h

◆ onPlayer:pictureInPictureErrorDidOccur:withParam:()

- (void) onPlayer: (TXVodPlayer *)  player
pictureInPictureErrorDidOccur: (TX_VOD_PLAYER_PIP_ERROR_TYPE errorType
withParam: (NSDictionary *)  param 

画中画错误状态回调

自从
10.4 版本开始支持
参数
player播放器对象
errorType播放器画中画错误状态码,详细见TXVodSDKEventDef.h
param回调信息内容详情

◆ onPlayer:pictureInPictureStateDidChange:withParam:()

- (void) onPlayer: (TXVodPlayer *)  player
pictureInPictureStateDidChange: (TX_VOD_PLAYER_PIP_STATE pipState
withParam: (NSDictionary *)  param 

画中画状态回调

自从
10.4 版本开始支持
参数
player播放器对象
pipState播放器画中画功能的状态,详细见TXVodSDKEventDef.h
param回调信息内容详情

◆ onPlayEvent:event:withParam:()

- (void) onPlayEvent: (TXVodPlayer *)  player
event: (int)  EvtID
withParam: (NSDictionary *)  param 

点播事件通知

参数
player点播对象
event事件id,参见TXLiveSDKTypeDef.h
param事件相关的参数(key,value)格式,参见TXLiveSDKTypeDef.h