Package com.zego.zegoliveroom.callback
Interface IZegoLivePublisherCallback2
-
public interface IZegoLivePublisherCallback2主播端回调。Copyright © 2017 Zego. All rights reserved.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonCaptureVideoFirstFrame(int channelIndex)采集视频的首帧通知voidonCaptureVideoSizeChangedTo(int channelIndex, int width, int height)采集视频的宽度和高度变化通知.voidonPreviewVideoFirstFrame(int channelIndex)预览视频的首帧通知voidonSendLocalAudioFirstFrame(int channelIndex)推流音频首帧通知voidonSendLocalVideoFirstFrame(int channelIndex)推流视频首帧通知voidonVideoEncoderChanged(int fromCodecID, int toCodecID, int channelIndex)视频编码器变更通知voidonVideoEncoderError(int codecID, int errorCode, int channelIndex)视频编码器错误voidonVideoObjectSegmentationStateChanged(int state, int channelIndex, int errorCode)视频主体分割状态变化通知
-
-
-
Method Detail
-
onCaptureVideoSizeChangedTo
void onCaptureVideoSizeChangedTo(int channelIndex, int width, int height)采集视频的宽度和高度变化通知.- Parameters:
channelIndex- 推流通道index, 参考ZegoConstants.PublishChannelIndexwidth- 视频宽度height- 视频高度
-
onCaptureVideoFirstFrame
void onCaptureVideoFirstFrame(int channelIndex)
采集视频的首帧通知- Parameters:
channelIndex- 推流通道index, 参考ZegoConstants.PublishChannelIndex
-
onPreviewVideoFirstFrame
void onPreviewVideoFirstFrame(int channelIndex)
预览视频的首帧通知- Parameters:
channelIndex- 推流通道index, 参考ZegoConstants.PublishChannelIndex
-
onSendLocalAudioFirstFrame
void onSendLocalAudioFirstFrame(int channelIndex)
推流音频首帧通知- Parameters:
channelIndex- 推流通道index, 参考ZegoConstants.PublishChannelIndex
-
onSendLocalVideoFirstFrame
void onSendLocalVideoFirstFrame(int channelIndex)
推流视频首帧通知- Parameters:
channelIndex- 推流通道index, 参考ZegoConstants.PublishChannelIndex
-
onVideoEncoderError
void onVideoEncoderError(int codecID, int errorCode, int channelIndex)视频编码器错误- Parameters:
codecID- 编解码器, 详见ZegoConstants.ZegoVideoCodecAvcerrorCode- 错误码, 详见ZegoConstants.ZegoCodecErrorchannelIndex- 推流通道 index, 详见ZegoConstants.PublishChannelIndex
-
onVideoEncoderChanged
void onVideoEncoderChanged(int fromCodecID, int toCodecID, int channelIndex)视频编码器变更通知当通过
ZegoLiveRoom.enableH265EncodeFallback(boolean)开启 H.265 自动降级,且设置了 H.265 编码进行推流时,如果本机无法满足 H.265 编码要求,SDK 内部会自动降级为指定编码(H.264),此时会回调本通知。- Parameters:
fromCodecID- 变更前编码器 ID, 详见ZegoConstants.ZegoVideoCodecAvctoCodecID- 变更后编码器 ID, 详见ZegoConstants.ZegoVideoCodecAvcchannelIndex- 推流通道 index, 详见ZegoConstants.PublishChannelIndex
-
onVideoObjectSegmentationStateChanged
void onVideoObjectSegmentationStateChanged(int state, int channelIndex, int errorCode)视频主体分割状态变化通知当通过
com.zego.zegoliveroom.ZegoLiveRoom#enableVideoObjectSegmentation(boolean)开启 H.265 自动降级,且设置了 H.265 编码进行推流时,如果本机无法满足 H.265 编码要求,SDK 内部会自动降级为指定编码(H.264),此时会回调本通知。- Parameters:
state- 主体分割状态, 详见ZegoConstants.ZegoObjectSegmentationStatechannelIndex- 推流通道 index, 详见ZegoConstants.PublishChannelIndexerrorCode- 错误码
-
-