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 void
onCaptureVideoFirstFrame(int channelIndex)
采集视频的首帧通知void
onCaptureVideoSizeChangedTo(int channelIndex, int width, int height)
采集视频的宽度和高度变化通知.void
onPreviewVideoFirstFrame(int channelIndex)
预览视频的首帧通知void
onSendLocalAudioFirstFrame(int channelIndex)
推流音频首帧通知void
onSendLocalVideoFirstFrame(int channelIndex)
推流视频首帧通知void
onVideoEncoderChanged(int fromCodecID, int toCodecID, int channelIndex)
视频编码器变更通知void
onVideoEncoderError(int codecID, int errorCode, int channelIndex)
视频编码器错误void
onVideoObjectSegmentationStateChanged(int state, int channelIndex, int errorCode)
视频主体分割状态变化通知
-
-
-
Method Detail
-
onCaptureVideoSizeChangedTo
void onCaptureVideoSizeChangedTo(int channelIndex, int width, int height)
采集视频的宽度和高度变化通知.- Parameters:
channelIndex
- 推流通道index, 参考ZegoConstants.PublishChannelIndex
width
- 视频宽度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.ZegoVideoCodecAvc
errorCode
- 错误码, 详见ZegoConstants.ZegoCodecError
channelIndex
- 推流通道 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.ZegoVideoCodecAvc
toCodecID
- 变更后编码器 ID, 详见ZegoConstants.ZegoVideoCodecAvc
channelIndex
- 推流通道 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.ZegoObjectSegmentationState
channelIndex
- 推流通道 index, 详见ZegoConstants.PublishChannelIndex
errorCode
- 错误码
-
-