im.zego.zegoexpress.callback.IZegoMediaPlayerEventHandler

Declared in callback/IZegoMediaPlayerEventHandler.java

Public Func Lists

Public Func Docs

onMediaPlayerStateUpdate

public void onMediaPlayerStateUpdate (ZegoMediaPlayer mediaPlayer, ZegoMediaPlayerState state, int errorCode)

播放器播放状态回调

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

onMediaPlayerNetworkEvent

public void onMediaPlayerNetworkEvent (ZegoMediaPlayer mediaPlayer, ZegoMediaPlayerNetworkEvent networkEvent)

播放器网络状态事件回调

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

onMediaPlayerPlayingProgress

public void onMediaPlayerPlayingProgress (ZegoMediaPlayer mediaPlayer, long millisecond)

播放器播放进度回调

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