#include <zego-api-mediaplayer-defines.h>
|
virtual void | OnPlayStart (ZegoMediaPlayerIndex index)=0 |
|
virtual void | OnPlayError (const int errCode, ZegoMediaPlayerIndex index)=0 |
|
virtual void | OnVideoBegin (ZegoMediaPlayerIndex index) |
|
virtual void | OnAudioBegin (ZegoMediaPlayerIndex index) |
|
virtual void | OnPlayEnd (ZegoMediaPlayerIndex index)=0 |
|
virtual void | OnSeekComplete (const int state, const long duration, ZegoMediaPlayerIndex index) |
|
virtual void | OnPlayPause (ZegoMediaPlayerIndex index) |
|
virtual void | OnPlayResume (ZegoMediaPlayerIndex index) |
|
virtual void | OnPlayStop (ZegoMediaPlayerIndex index) |
|
virtual void | OnBufferBegin (ZegoMediaPlayerIndex index) |
|
virtual void | OnBufferEnd (ZegoMediaPlayerIndex index) |
|
virtual void | OnSnapshot (void *image, ZegoMediaPlayerIndex index) |
|
virtual void | OnLoadComplete (ZegoMediaPlayerIndex index) |
|
virtual void | OnProcessInterval (long timestamp, ZegoMediaPlayerIndex index) |
|
virtual void | OnRenderingProcessInterval (long timestamp, ZegoMediaPlayerIndex index) |
|
virtual void | OnReadEOF (ZegoMediaPlayerIndex index) |
|
virtual void | OnMediaPlayerVideoSizeChanged (int width, int height, ZegoMediaPlayerIndex index) |
|
virtual void | OnLocalCache (int error, const char *resource, const char *cached_file, ZegoMediaPlayerIndex index) |
|
◆ OnAudioBegin()
virtual void ZEGO::MEDIAPLAYER::IZegoMediaPlayerEventWithIndexCallback::OnAudioBegin |
( |
ZegoMediaPlayerIndex |
index | ) |
|
|
inlinevirtual |
◆ OnBufferBegin()
virtual void ZEGO::MEDIAPLAYER::IZegoMediaPlayerEventWithIndexCallback::OnBufferBegin |
( |
ZegoMediaPlayerIndex |
index | ) |
|
|
inlinevirtual |
◆ OnBufferEnd()
virtual void ZEGO::MEDIAPLAYER::IZegoMediaPlayerEventWithIndexCallback::OnBufferEnd |
( |
ZegoMediaPlayerIndex |
index | ) |
|
|
inlinevirtual |
◆ OnLoadComplete()
virtual void ZEGO::MEDIAPLAYER::IZegoMediaPlayerEventWithIndexCallback::OnLoadComplete |
( |
ZegoMediaPlayerIndex |
index | ) |
|
|
inlinevirtual |
◆ OnLocalCache()
virtual void ZEGO::MEDIAPLAYER::IZegoMediaPlayerEventWithIndexCallback::OnLocalCache |
( |
int |
error, |
|
|
const char * |
resource, |
|
|
const char * |
cached_file, |
|
|
ZegoMediaPlayerIndex |
index |
|
) |
| |
|
inlinevirtual |
本地缓存的回调
- Parameters
-
error | 错误码 |
resource | 播放资源 |
cached_file | 缓存文件 |
index | 播放器序号 |
◆ OnMediaPlayerVideoSizeChanged()
virtual void ZEGO::MEDIAPLAYER::IZegoMediaPlayerEventWithIndexCallback::OnMediaPlayerVideoSizeChanged |
( |
int |
width, |
|
|
int |
height, |
|
|
ZegoMediaPlayerIndex |
index |
|
) |
| |
|
inlinevirtual |
播放视频分辨率变化的回调
- Parameters
-
width | 宽 |
height | 高 |
index | 播放器序号 |
◆ OnPlayEnd()
virtual void ZEGO::MEDIAPLAYER::IZegoMediaPlayerEventWithIndexCallback::OnPlayEnd |
( |
ZegoMediaPlayerIndex |
index | ) |
|
|
pure virtual |
◆ OnPlayError()
virtual void ZEGO::MEDIAPLAYER::IZegoMediaPlayerEventWithIndexCallback::OnPlayError |
( |
const int |
errCode, |
|
|
ZegoMediaPlayerIndex |
index |
|
) |
| |
|
pure virtual |
播放出错
- Parameters
-
errCode | 错误码, 详见 ZegoMediaPlayerError |
◆ OnPlayPause()
virtual void ZEGO::MEDIAPLAYER::IZegoMediaPlayerEventWithIndexCallback::OnPlayPause |
( |
ZegoMediaPlayerIndex |
index | ) |
|
|
inlinevirtual |
◆ OnPlayResume()
virtual void ZEGO::MEDIAPLAYER::IZegoMediaPlayerEventWithIndexCallback::OnPlayResume |
( |
ZegoMediaPlayerIndex |
index | ) |
|
|
inlinevirtual |
◆ OnPlayStart()
virtual void ZEGO::MEDIAPLAYER::IZegoMediaPlayerEventWithIndexCallback::OnPlayStart |
( |
ZegoMediaPlayerIndex |
index | ) |
|
|
pure virtual |
◆ OnPlayStop()
virtual void ZEGO::MEDIAPLAYER::IZegoMediaPlayerEventWithIndexCallback::OnPlayStop |
( |
ZegoMediaPlayerIndex |
index | ) |
|
|
inlinevirtual |
◆ OnProcessInterval()
virtual void ZEGO::MEDIAPLAYER::IZegoMediaPlayerEventWithIndexCallback::OnProcessInterval |
( |
long |
timestamp, |
|
|
ZegoMediaPlayerIndex |
index |
|
) |
| |
|
inlinevirtual |
播放进度回调,需要SetProcessInterval设置interval大于0,才会抛出
- Parameters
-
timestamp | 当前播放进度,单位毫秒 |
index | 播放器序号 |
◆ OnReadEOF()
virtual void ZEGO::MEDIAPLAYER::IZegoMediaPlayerEventWithIndexCallback::OnReadEOF |
( |
ZegoMediaPlayerIndex |
index | ) |
|
|
inlinevirtual |
◆ OnRenderingProcessInterval()
virtual void ZEGO::MEDIAPLAYER::IZegoMediaPlayerEventWithIndexCallback::OnRenderingProcessInterval |
( |
long |
timestamp, |
|
|
ZegoMediaPlayerIndex |
index |
|
) |
| |
|
inlinevirtual |
播放渲染进度回调,需要SetProcessInterval设置interval大于0,才会抛出
- Parameters
-
timestamp | 当前播放渲染进度,单位毫秒 |
index | 播放器序号 |
◆ OnSeekComplete()
virtual void ZEGO::MEDIAPLAYER::IZegoMediaPlayerEventWithIndexCallback::OnSeekComplete |
( |
const int |
state, |
|
|
const long |
duration, |
|
|
ZegoMediaPlayerIndex |
index |
|
) |
| |
|
inlinevirtual |
快进到指定时刻
- Parameters
-
state | >=0 成功,其它表示失败 |
duration | 实际快进的进度,单位毫秒 |
◆ OnSnapshot()
virtual void ZEGO::MEDIAPLAYER::IZegoMediaPlayerEventWithIndexCallback::OnSnapshot |
( |
void * |
image, |
|
|
ZegoMediaPlayerIndex |
index |
|
) |
| |
|
inlinevirtual |
◆ OnVideoBegin()
virtual void ZEGO::MEDIAPLAYER::IZegoMediaPlayerEventWithIndexCallback::OnVideoBegin |
( |
ZegoMediaPlayerIndex |
index | ) |
|
|
inlinevirtual |
The documentation for this class was generated from the following file: