#include <zego-api-media-publisher.h>
◆ OnFileClose()
virtual void ZEGO::MEDIAPUBLISHER::PublisherEventCallback::OnFileClose |
( |
const char * |
path, |
|
|
int |
code, |
|
|
AV::PublishChannelIndex |
channelIdx |
|
) |
| |
|
pure virtual |
当处理完某个文件或者出错时回调
- Parameters
-
path | 当前关闭的文件路径 |
code | 关闭文件的原因 |
channelIdx | 推流通道,与 StartPublishing2 中的通道号对应 |
◆ OnFileDataBegin()
virtual void ZEGO::MEDIAPUBLISHER::PublisherEventCallback::OnFileDataBegin |
( |
const char * |
path, |
|
|
AV::PublishChannelIndex |
channelIdx |
|
) |
| |
|
pure virtual |
每个文件开始出帧时回调
- Parameters
-
path | 当前开始推流的文件 |
channelIdx | 推流通道,与 StartPublishing2 中的通道号对应 |
◆ OnFileDataEnd()
virtual void ZEGO::MEDIAPUBLISHER::PublisherEventCallback::OnFileDataEnd |
( |
const char * |
path, |
|
|
AV::PublishChannelIndex |
channelIdx |
|
) |
| |
|
pure virtual |
每个文件推流结束时回调
- Parameters
-
path | 当前已推流结束的文件路径 |
channelIdx | 推流通道,与 StartPublishing2 中的通道号对应 |
◆ OnFileOpen()
virtual void ZEGO::MEDIAPUBLISHER::PublisherEventCallback::OnFileOpen |
( |
const char * |
path, |
|
|
AV::PublishChannelIndex |
channelIdx |
|
) |
| |
|
pure virtual |
当开始处理某个文件时回调
- Parameters
-
path | 当前打开的文件路径 |
channelIdx | 推流通道,与 StartPublishing2 中的通道号对应 |
◆ OnStart()
当 Start 成功后回调
- Parameters
-
channelIdx | 推流通道,与 StartPublishing2 中的通道号对应 |
◆ OnStop()
当 Stop 成功后回调
- Parameters
-
channelIdx | 推流通道,与 StartPublishing2 中的通道号对应 |
The documentation for this class was generated from the following file: