ZegoMediaPlayerEventHandler

Declared in ZegoExpressEventHandler.h

Includes

Public Func Lists

Public Func Docs

mediaPlayer:stateUpdate:errorCode:

- (void)mediaPlayer:(ZegoMediaPlayer *) mediaPlayer stateUpdate:(ZegoMediaPlayerState) state errorCode:(int) errorCode;

播放器播放状态回调

Parameters
mediaPlayer 回调的播放器实例
state 播放器状态
errorCode 错误码,详情请参考常用错误码文档 []

mediaPlayer:networkEvent:

- (void)mediaPlayer:(ZegoMediaPlayer *) mediaPlayer networkEvent:(ZegoMediaPlayerNetworkEvent) networkEvent;

播放器网络状态事件回调

Parameters
mediaPlayer 回调的播放器实例
networkEvent 网络状态事件

mediaPlayer:playingProgress:

- (void)mediaPlayer:(ZegoMediaPlayer *) mediaPlayer playingProgress:(unsigned long long) millisecond;

播放器播放进度回调

Parameters
mediaPlayer 回调的播放器实例
millisecond 进度,单位为毫秒