RtcEngineEventHandler class

主回调事件。

RtcEngineEventHandler 接口类用于 SDK 向 App 发送回调事件通知, App 通过继承该接口类的方法获取 SDK 的事件通知。 接口类的所有方法都有缺省(空)实现, App 可以根据需要只继承关心的事件。在回调方法中,App 不应该做耗时或者调用可能会引起阻塞的 API(如 SendMessage),否则可能影响 SDK 的运行。

Constructors

RtcEngineEventHandler({WarningCallback warning, ErrorCallback error, ApiCallCallback apiCallExecuted, UidWithElapsedAndChannelCallback joinChannelSuccess, RtcStatsCallback rejoinChannelSuccess, RtcStatsCallback leaveChannel, UserAccountCallback localUserRegistered, UserInfoCallback userInfoUpdated, ClientRoleCallback clientRoleChanged, UidWithElapsedCallback userJoined, UserOfflineCallback userOffline, ConnectionStateCallback connectionStateChanged, NetworkTypeCallback networkTypeChanged, EmptyCallback connectionLost, TokenCallback tokenPrivilegeWillExpire, EmptyCallback requestToken, AudioVolumeCallback audioVolumeIndication, UidCallback activeSpeaker, ElapsedCallback firstLocalAudioFrame, VideoFrameCallback firstLocalVideoFrame, UidWithMutedCallback userMuteVideo, VideoSizeCallback videoSizeChanged, RemoteVideoStateCallback remoteVideoStateChanged, LocalVideoStateCallback localVideoStateChanged, RemoteAudioStateCallback remoteAudioStateChanged, LocalAudioStateCallback localAudioStateChanged, FallbackCallback localPublishFallbackToAudioOnly, FallbackWithUidCallback remoteSubscribeFallbackToAudioOnly, AudioRouteCallback audioRouteChanged, RectCallback cameraFocusAreaChanged, RectCallback cameraExposureAreaChanged, FacePositionCallback facePositionChanged, RtcStatsCallback rtcStats, NetworkQualityCallback lastmileQuality, NetworkQualityWithUidCallback networkQuality, LastmileProbeCallback lastmileProbeResult, LocalVideoStatsCallback localVideoStats, LocalAudioStatsCallback localAudioStats, RemoteVideoStatsCallback remoteVideoStats, RemoteAudioStatsCallback remoteAudioStats, EmptyCallback audioMixingFinished, AudioMixingStateCallback audioMixingStateChanged, SoundIdCallback audioEffectFinished, RtmpStreamingStateCallback rtmpStreamingStateChanged, EmptyCallback transcodingUpdated, StreamInjectedStatusCallback streamInjectedStatus, StreamMessageCallback streamMessage, StreamMessageErrorCallback streamMessageError, EmptyCallback mediaEngineLoadSuccess, EmptyCallback mediaEngineStartCallSuccess, MediaRelayStateCallback channelMediaRelayStateChanged, MediaRelayEventCallback channelMediaRelayEvent, VideoFrameWithUidCallback firstRemoteVideoFrame, UidWithElapsedCallback firstRemoteAudioFrame, UidWithElapsedCallback firstRemoteAudioDecoded, UidWithMutedCallback userMuteAudio, UrlWithErrorCallback streamPublished, UrlCallback streamUnpublished, TransportStatsCallback remoteAudioTransportStats, TransportStatsCallback remoteVideoTransportStats, UidWithEnabledCallback userEnableVideo, UidWithEnabledCallback userEnableLocalVideo, VideoFrameWithUidCallback firstRemoteVideoDecoded, EnabledCallback microphoneEnabled, EmptyCallback connectionInterrupted, EmptyCallback connectionBanned, AudioQualityCallback audioQuality, EmptyCallback cameraReady, EmptyCallback videoStopped, MetadataCallback metadataReceived, ElapsedCallback firstLocalAudioFramePublished, ElapsedCallback firstLocalVideoFramePublished, StreamPublishStateCallback audioPublishStateChanged, StreamPublishStateCallback videoPublishStateChanged, StreamSubscribeStateCallback audioSubscribeStateChanged, StreamSubscribeStateCallback videoSubscribeStateChanged, RtmpStreamingEventCallback rtmpStreamingEvent})
Constructs a RtcEngineEventHandler

Properties

activeSpeaker ↔ UidCallback
监测到活跃用户回调。 [...]
read / write
apiCallExecuted ↔ ApiCallCallback
API 方法已执行回调。 [...]
read / write
audioEffectFinished ↔ SoundIdCallback
本地音效文件播放已结束回调。 [...]
read / write
audioMixingFinished ↔ EmptyCallback
本地音乐文件播放已结束回调。 [...]
read / write
audioMixingStateChanged ↔ AudioMixingStateCallback
本地用户的音乐文件播放状态改变。 调用 RtcEngine.startAudioMixing 播放混音音乐文件后,当音乐文件的播放状态发生改变时,会触发该回调。 [...]
read / write
audioPublishStateChanged ↔ StreamPublishStateCallback
音频发布状态改变回调。 [...]
read / write
audioQuality ↔ AudioQualityCallback
远端音频质量回调。 [...]
read / write
audioRouteChanged ↔ AudioRouteCallback
语音路由已变更回调。 [...]
read / write
audioSubscribeStateChanged ↔ StreamSubscribeStateCallback
音频订阅状态发生改变回调。 [...]
read / write
audioVolumeIndication ↔ AudioVolumeCallback
提示频道内谁正在说话、说话者音量及本地用户是否在说话的回调。 [...]
read / write
cameraExposureAreaChanged ↔ RectCallback
摄像头曝光区域已改变回调。 [...]
read / write
cameraFocusAreaChanged ↔ RectCallback
摄像头对焦区域已改变回调。 [...]
read / write
cameraReady ↔ EmptyCallback
摄像头就绪回调。 [...]
read / write
channelMediaRelayEvent ↔ MediaRelayEventCallback
跨频道媒体流转发事件回调。 [...]
read / write
channelMediaRelayStateChanged ↔ MediaRelayStateCallback
跨频道媒体流转发状态发生改变回调。 [...]
read / write
clientRoleChanged ↔ ClientRoleCallback
直播场景下用户角色已切换回调。如从观众切换为主播,反之亦然。 [...]
read / write
connectionBanned ↔ EmptyCallback
网络连接已被服务器禁止回调。 [...]
read / write
connectionInterrupted ↔ EmptyCallback
网络连接中断回调。 [...]
read / write
connectionLost ↔ EmptyCallback
网络连接中断,且 SDK 无法在 10 秒内连接服务器回调。 [...]
read / write
connectionStateChanged ↔ ConnectionStateCallback
网络连接状态已改变回调。 [...]
read / write
error ↔ ErrorCallback
发生错误回调。 [...]
read / write
facePositionChanged ↔ FacePositionCallback
报告本地人脸检测结果。 [...]
read / write
firstLocalAudioFrame ↔ ElapsedCallback
已发送本地音频首帧回调。 [...]
read / write
firstLocalAudioFramePublished ↔ ElapsedCallback
已发布本地音频首帧回调。 [...]
read / write
firstLocalVideoFrame ↔ VideoFrameCallback
已显示本地视频首帧回调。 [...]
read / write
firstLocalVideoFramePublished ↔ ElapsedCallback
已发布本地视频首帧回调。 [...]
read / write
firstRemoteAudioDecoded ↔ UidWithElapsedCallback
已解码远端音频首帧回调。 [...]
read / write
firstRemoteAudioFrame ↔ UidWithElapsedCallback
已接收远端音频首帧回调。 [...]
read / write
firstRemoteVideoDecoded ↔ VideoFrameWithUidCallback
已完成远端视频首帧解码回调。 [...]
read / write
firstRemoteVideoFrame ↔ VideoFrameWithUidCallback
已显示远端视频首帧回调。 [...]
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
joinChannelSuccess ↔ UidWithElapsedAndChannelCallback
加入频道回调。 [...]
read / write
lastmileProbeResult ↔ LastmileProbeCallback
通话前网络上下行 Last mile 质量探测报告回调。 [...]
read / write
lastmileQuality ↔ NetworkQualityCallback
通话前网络上下行 last mile 质量报告回调。 [...]
read / write
leaveChannel ↔ RtcStatsCallback
离开频道回调。 [...]
read / write
localAudioStateChanged ↔ LocalAudioStateCallback
本地音频状态发生改变回调。 [...]
read / write
localAudioStats ↔ LocalAudioStatsCallback
通话中本地音频流的统计信息回调。 [...]
read / write
localPublishFallbackToAudioOnly ↔ FallbackCallback
本地发布流已回退为音频流回调。 [...]
read / write
localUserRegistered ↔ UserAccountCallback
本地用户成功注册 User Account 回调。 [...]
read / write
localVideoStateChanged ↔ LocalVideoStateCallback
本地视频状态发生改变回调。 [...]
read / write
localVideoStats ↔ LocalVideoStatsCallback
通话中本地视频流的统计信息回调。 [...]
read / write
mediaEngineLoadSuccess ↔ EmptyCallback
媒体引擎成功加载的回调。
read / write
mediaEngineStartCallSuccess ↔ EmptyCallback
媒体引擎成功启动的回调。
read / write
metadataReceived ↔ MetadataCallback
接收端已接收 Metadata。 [...]
read / write
microphoneEnabled ↔ EnabledCallback
麦克风状态已改变回调。 [...]
read / write
networkQuality ↔ NetworkQualityWithUidCallback
通话中每个用户的网络上下行 last mile 质量报告回调。 [...]
read / write
networkTypeChanged ↔ NetworkTypeCallback
本地网络类型发生改变回调。 [...]
read / write
rejoinChannelSuccess ↔ RtcStatsCallback
重新加入频道回调。 [...]
read / write
remoteAudioStateChanged ↔ RemoteAudioStateCallback
远端音频状态发生改变回调。 [...]
read / write
remoteAudioStats ↔ RemoteAudioStatsCallback
通话中远端音频流的统计信息回调。 [...]
read / write
remoteAudioTransportStats ↔ TransportStatsCallback
通话中远端音频流传输的统计信息回调。 [...]
read / write
remoteSubscribeFallbackToAudioOnly ↔ FallbackWithUidCallback
远端订阅流已回退为音频流回调或因网络质量改善,恢复为音视频流。 [...]
read / write
remoteVideoStateChanged ↔ RemoteVideoStateCallback
远端用户视频状态发生已变化回调。 [...]
read / write
remoteVideoStats ↔ RemoteVideoStatsCallback
通话中远端视频流的统计信息回调。 [...]
read / write
remoteVideoTransportStats ↔ TransportStatsCallback
通话中远端视频流传输的统计信息回调。 [...]
read / write
requestToken ↔ EmptyCallback
Token 过期回调。 [...]
read / write
rtcStats ↔ RtcStatsCallback
当前通话统计回调。 该回调在通话中每两秒触发一次。 [...]
read / write
rtmpStreamingEvent ↔ RtmpStreamingEventCallback
RTMP 推流事件回调。 [...]
read / write
rtmpStreamingStateChanged ↔ RtmpStreamingStateCallback
RTMP 推流状态发生改变回调。该回调返回本地用户调用 RtcEngine.addPublishStreamUrlRtcEngine.removePublishStreamUrl 方法的结果。 [...]
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
streamInjectedStatus ↔ StreamInjectedStatusCallback
输入在线媒体流状态回调。该回调表明向直播输入的外部视频流的状态。 [...]
read / write
streamMessage ↔ StreamMessageCallback
接收到对方数据流消息的回调。 [...]
read / write
streamMessageError ↔ StreamMessageErrorCallback
接收对方数据流消息发生错误的回调。 [...]
read / write
streamPublished ↔ UrlWithErrorCallback
开启旁路推流的结果回调。 [...]
read / write
streamUnpublished ↔ UrlCallback
停止旁路推流的结果回调。 [...]
read / write
tokenPrivilegeWillExpire ↔ TokenCallback
Token 服务即将过期回调。 [...]
read / write
transcodingUpdated ↔ EmptyCallback
旁路推流设置被更新回调。 [...]
read / write
userEnableLocalVideo ↔ UidWithEnabledCallback
远端用户开/关本地视频采集回调。 [...]
read / write
userEnableVideo ↔ UidWithEnabledCallback
其他用户开/关视频模块回调。 [...]
read / write
userInfoUpdated ↔ UserInfoCallback
远端用户信息已更新回调。 [...]
read / write
userJoined ↔ UidWithElapsedCallback
远端用户(通信场景)/主播(直播场景)加入当前频道回调。 [...]
read / write
userMuteAudio ↔ UidWithMutedCallback
远端用户停止/恢复发送音频流回调。 [...]
read / write
userMuteVideo ↔ UidWithMutedCallback
远端用户停止/恢复发送视频流回调。 [...]
read / write
userOffline ↔ UserOfflineCallback
远端用户(通信场景)/主播(直播场景)离开当前频道回调。 [...]
read / write
videoPublishStateChanged ↔ StreamPublishStateCallback
视频发布状态改变回调。 [...]
read / write
videoSizeChanged ↔ VideoSizeCallback
本地或远端视频大小或旋转信息发生改变回调。 [...]
read / write
videoStopped ↔ EmptyCallback
视频功能停止回调。 [...]
read / write
videoSubscribeStateChanged ↔ StreamSubscribeStateCallback
视频订阅状态发生改变回调。 [...]
read / write
warning ↔ WarningCallback
发生警告回调。 [...]
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
process(String methodName, List data) → void
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited