ZegoLiveRoom
Public Member Functions | List of all members
ZEGO::LIVEROOM::ILivePublisherCallback Class Referenceabstract

#include <LiveRoomCallback-Publisher.h>

Public Member Functions

virtual void OnPublishStateUpdate (int stateCode, const char *pszStreamID, const ZegoPublishingStreamInfo &oStreamInfo)=0
 
virtual void OnJoinLiveRequest (int seq, const char *pszFromUserId, const char *pszFromUserName, const char *pszRoomID)
 
virtual void OnInviteJoinLiveResponse (int result, const char *pszFromUserId, const char *pszFromUserName, int seq)
 
virtual void OnEndJoinLive (int result, int seq, const char *pszRoomID)
 
virtual void OnPublishQulityUpdate (const char *pszStreamID, int quality, double videoFPS, double videoKBS)
 
virtual void OnPublishQualityUpdate (const char *pszStreamID, ZegoPublishQuality publishQuality)
 
virtual void OnCaptureVideoSizeChanged (int nWidth, int nHeight)
 
virtual void OnCaptureVideoSizeChanged (AV::PublishChannelIndex index, int nWidth, int nHegith)
 
virtual void OnPreviewSnapshot (void *pImage)
 
virtual void OnPreviewSnapshot (AV::PublishChannelIndex index, void *pImage)
 
virtual void OnRelayCDNStateUpdate (const char *streamID, AV::ZegoStreamRelayCDNInfo *statesInfo, unsigned int statesInfoCount)
 
virtual void OnUpdatePublishTargetState (int errorCode, const char *streamID, int seq)
 
virtual void OnCaptureVideoFirstFrame ()
 
virtual void OnCaptureVideoFirstFrame (AV::PublishChannelIndex idx)
 
virtual void OnPreviewVideoFirstFrame (AV::PublishChannelIndex idx)
 
virtual void OnSendLocalAudioFirstFrame (AV::PublishChannelIndex idx)
 
virtual void OnSendLocalVideoFirstFrame (AV::PublishChannelIndex idx)
 
virtual void OnCaptureAudioFirstFrame ()
 
virtual void OnVideoEncoderError (AV::ZegoVideoCodecAvc codecID, int errorCode, AV::PublishChannelIndex index)
 
virtual void OnLocalCameraStatusUpdate (AV::PublishChannelIndex index, int nStatus, int nReason)
 
virtual ~ILivePublisherCallback ()
 

Constructor & Destructor Documentation

◆ ~ILivePublisherCallback()

virtual ZEGO::LIVEROOM::ILivePublisherCallback::~ILivePublisherCallback ( )
inlinevirtual

Member Function Documentation

◆ OnCaptureAudioFirstFrame()

virtual void ZEGO::LIVEROOM::ILivePublisherCallback::OnCaptureAudioFirstFrame ( )
inlinevirtual

采集音频的首帧通知

◆ OnCaptureVideoFirstFrame() [1/2]

virtual void ZEGO::LIVEROOM::ILivePublisherCallback::OnCaptureVideoFirstFrame ( )
inlinevirtual

采集视频的首帧通知

◆ OnCaptureVideoFirstFrame() [2/2]

virtual void ZEGO::LIVEROOM::ILivePublisherCallback::OnCaptureVideoFirstFrame ( AV::PublishChannelIndex  idx)
inlinevirtual

◆ OnCaptureVideoSizeChanged() [1/2]

virtual void ZEGO::LIVEROOM::ILivePublisherCallback::OnCaptureVideoSizeChanged ( AV::PublishChannelIndex  index,
int  nWidth,
int  nHegith 
)
inlinevirtual

◆ OnCaptureVideoSizeChanged() [2/2]

virtual void ZEGO::LIVEROOM::ILivePublisherCallback::OnCaptureVideoSizeChanged ( int  nWidth,
int  nHeight 
)
inlinevirtual

采集视频的宽度和高度变化通知

Parameters
nWidth视频宽度
nHeight视频高度
Attention
发布直播成功后,当视频尺寸变化时,发布者会收到此通知

◆ OnEndJoinLive()

virtual void ZEGO::LIVEROOM::ILivePublisherCallback::OnEndJoinLive ( int  result,
int  seq,
const char *  pszRoomID 
)
inlinevirtual

结束连麦结果

Parameters
result结果
seq请求 seq
pszRoomID房间 ID

◆ OnInviteJoinLiveResponse()

virtual void ZEGO::LIVEROOM::ILivePublisherCallback::OnInviteJoinLiveResponse ( int  result,
const char *  pszFromUserId,
const char *  pszFromUserName,
int  seq 
)
inlinevirtual

收到邀请连麦响应结果

Parameters
result结果
pszFromUserId来源用户 Id
pszFromUserName来源用户名
seq请求 seq

◆ OnJoinLiveRequest()

virtual void ZEGO::LIVEROOM::ILivePublisherCallback::OnJoinLiveRequest ( int  seq,
const char *  pszFromUserId,
const char *  pszFromUserName,
const char *  pszRoomID 
)
inlinevirtual

收到连麦请求

Parameters
seq请求 seq
pszFromUserId来源用户 Id
pszFromUserName来源用户名
pszRoomID房间 ID

◆ OnLocalCameraStatusUpdate()

virtual void ZEGO::LIVEROOM::ILivePublisherCallback::OnLocalCameraStatusUpdate ( AV::PublishChannelIndex  index,
int  nStatus,
int  nReason 
)
inlinevirtual

本地摄像头状态通知

Parameters
nChannel推流通道id
nStatus状态
nReason原因

◆ OnPreviewSnapshot() [1/2]

virtual void ZEGO::LIVEROOM::ILivePublisherCallback::OnPreviewSnapshot ( AV::PublishChannelIndex  index,
void *  pImage 
)
inlinevirtual

◆ OnPreviewSnapshot() [2/2]

virtual void ZEGO::LIVEROOM::ILivePublisherCallback::OnPreviewSnapshot ( void *  pImage)
inlinevirtual

预览截图

Parameters
pImage截图结果

◆ OnPreviewVideoFirstFrame()

virtual void ZEGO::LIVEROOM::ILivePublisherCallback::OnPreviewVideoFirstFrame ( AV::PublishChannelIndex  idx)
inlinevirtual

预览视频的首帧通知

◆ OnPublishQualityUpdate()

virtual void ZEGO::LIVEROOM::ILivePublisherCallback::OnPublishQualityUpdate ( const char *  pszStreamID,
ZegoPublishQuality  publishQuality 
)
inlinevirtual

推流质量更新

Parameters
pszStreamID流 ID
publishQualityZegoPublishQuality 对象,内含各项推流质量数据

◆ OnPublishQulityUpdate()

virtual void ZEGO::LIVEROOM::ILivePublisherCallback::OnPublishQulityUpdate ( const char *  pszStreamID,
int  quality,
double  videoFPS,
double  videoKBS 
)
inlinevirtual

推流质量更新

Parameters
pszStreamID流 ID
quality发布质量,0~3 分别对应优、良、中、差
videoFPS帧率
videoKBS码率

◆ OnPublishStateUpdate()

virtual void ZEGO::LIVEROOM::ILivePublisherCallback::OnPublishStateUpdate ( int  stateCode,
const char *  pszStreamID,
const ZegoPublishingStreamInfo oStreamInfo 
)
pure virtual

推流状态更新

Parameters
stateCode状态码
pszStreamID流 ID
oStreamInfo推流信息

◆ OnRelayCDNStateUpdate()

virtual void ZEGO::LIVEROOM::ILivePublisherCallback::OnRelayCDNStateUpdate ( const char *  streamID,
AV::ZegoStreamRelayCDNInfo statesInfo,
unsigned int  statesInfoCount 
)
inlinevirtual

转推CDN状态通知

Parameters
streamID流ID
statesInfo转推CDN状态信息列表
statesInfoCount状态信息列表个数

◆ OnSendLocalAudioFirstFrame()

virtual void ZEGO::LIVEROOM::ILivePublisherCallback::OnSendLocalAudioFirstFrame ( AV::PublishChannelIndex  idx)
inlinevirtual

推流音频的首帧通知

◆ OnSendLocalVideoFirstFrame()

virtual void ZEGO::LIVEROOM::ILivePublisherCallback::OnSendLocalVideoFirstFrame ( AV::PublishChannelIndex  idx)
inlinevirtual

推流视频的首帧通知

◆ OnUpdatePublishTargetState()

virtual void ZEGO::LIVEROOM::ILivePublisherCallback::OnUpdatePublishTargetState ( int  errorCode,
const char *  streamID,
int  seq 
)
inlinevirtual

添加/删除转推地址状态回调

Parameters
pszStreamID流 ID
strTarget转推地址(支持rtmp/avertp)
errorCode错误码

◆ OnVideoEncoderError()

virtual void ZEGO::LIVEROOM::ILivePublisherCallback::OnVideoEncoderError ( AV::ZegoVideoCodecAvc  codecID,
int  errorCode,
AV::PublishChannelIndex  index 
)
inlinevirtual

视频编码器错误通知

Parameters
codecID编码器
errorCode错误码, 详见 zego-api-defines.h 中的 ZegoCodecError 定义
index推流通道

The documentation for this class was generated from the following file: