RtcChannelEventHandler class
Constructors
- RtcChannelEventHandler({WarningCallback warning, ErrorCallback error, UidWithElapsedCallback joinChannelSuccess, UidWithElapsedCallback rejoinChannelSuccess, RtcStatsCallback leaveChannel, ClientRoleCallback clientRoleChanged, UidWithElapsedCallback userJoined, UserOfflineCallback userOffline, ConnectionStateCallback connectionStateChanged, EmptyCallback connectionLost, TokenCallback tokenPrivilegeWillExpire, EmptyCallback requestToken, UidCallback activeSpeaker, VideoSizeCallback videoSizeChanged, RemoteVideoStateCallback remoteVideoStateChanged, RemoteAudioStateCallback remoteAudioStateChanged, FallbackCallback localPublishFallbackToAudioOnly, FallbackWithUidCallback remoteSubscribeFallbackToAudioOnly, RtcStatsCallback rtcStats, NetworkQualityWithUidCallback networkQuality, RemoteVideoStatsCallback remoteVideoStats, RemoteAudioStatsCallback remoteAudioStats, RtmpStreamingStateCallback rtmpStreamingStateChanged, EmptyCallback transcodingUpdated, StreamInjectedStatusCallback streamInjectedStatus, StreamMessageCallback streamMessage, StreamMessageErrorCallback streamMessageError, MediaRelayStateCallback channelMediaRelayStateChanged, MediaRelayEventCallback channelMediaRelayEvent, MetadataCallback metadataReceived, StreamPublishStateCallback audioPublishStateChanged, StreamPublishStateCallback videoPublishStateChanged, StreamSubscribeStateCallback audioSubscribeStateChanged, StreamSubscribeStateCallback videoSubscribeStateChanged, RtmpStreamingEventCallback rtmpStreamingEvent})
- Constructs a RtcChannelEventHandler
Properties
- activeSpeaker ↔ UidCallback
-
监测到活跃用户回调。 [...]
read / write
- audioPublishStateChanged ↔ StreamPublishStateCallback
-
音频发布状态改变回调。 [...]
read / write
- audioSubscribeStateChanged ↔ StreamSubscribeStateCallback
-
音频订阅状态发生改变回调。 [...]
read / write
- channelMediaRelayEvent ↔ MediaRelayEventCallback
-
跨频道媒体流转发事件回调。该回调报告跨频道媒体流转发过程中发生的事件。 [...]
read / write
- channelMediaRelayStateChanged ↔ MediaRelayStateCallback
-
跨频道媒体流转发状态发生改变回调。 [...]
read / write
- clientRoleChanged ↔ ClientRoleCallback
-
直播场景下用户角色已切换回调。如从观众切换为主播,反之亦然。 [...]
read / write
- connectionLost ↔ EmptyCallback
-
网络连接中断,且 SDK 无法在 10 秒内连接服务器回调。 [...]
read / write
- connectionStateChanged ↔ ConnectionStateCallback
-
网络连接状态已改变回调。 [...]
read / write
- error ↔ ErrorCallback
-
报告 RtcChannel 对象发生的错误码。 [...]
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- joinChannelSuccess ↔ UidWithElapsedCallback
-
加入频道回调。 [...]
read / write
- leaveChannel ↔ RtcStatsCallback
-
离开频道回调。 [...]
read / write
- localPublishFallbackToAudioOnly ↔ FallbackCallback
-
本地发布流已回退为音频流回调。 [...]
read / write
- metadataReceived ↔ MetadataCallback
-
接收端已接收 Metadata。 [...]
read / write
- networkQuality ↔ NetworkQualityWithUidCallback
-
通话中每个用户的网络上下行 last mile 质量报告回调。 [...]
read / write
- rejoinChannelSuccess ↔ UidWithElapsedCallback
-
重新加入频道回调。 [...]
read / write
- remoteAudioStateChanged ↔ RemoteAudioStateCallback
-
远端音频状态发生改变回调。 [...]
read / write
- remoteAudioStats ↔ RemoteAudioStatsCallback
-
通话中远端音频流的统计信息回调。 [...]
read / write
- remoteSubscribeFallbackToAudioOnly ↔ FallbackWithUidCallback
-
远端订阅流已回退为音频流回调或因网络质量改善,恢复为音视频流。 [...]
read / write
- remoteVideoStateChanged ↔ RemoteVideoStateCallback
-
远端用户视频状态发生已变化回调。 [...]
read / write
- remoteVideoStats ↔ RemoteVideoStatsCallback
-
通话中远端视频流的统计信息回调。 [...]
read / write
- requestToken ↔ EmptyCallback
-
Token 过期回调。 [...]
read / write
- rtcStats ↔ RtcStatsCallback
-
当前通话统计回调。
该回调在通话中每两秒触发一次。 [...]
read / write
- rtmpStreamingEvent ↔ RtmpStreamingEventCallback
-
RTMP 推流事件回调。 [...]
read / write
- rtmpStreamingStateChanged ↔ RtmpStreamingStateCallback
-
RTMP 推流状态发生改变回调。该回调返回本地用户调用 RtcChannel.addPublishStreamUrl
或 RtcChannel.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
- tokenPrivilegeWillExpire ↔ TokenCallback
-
Token 服务即将过期回调。 [...]
read / write
- transcodingUpdated ↔ EmptyCallback
-
旁路推流设置被更新回调。 [...]
read / write
- userJoined ↔ UidWithElapsedCallback
-
远端用户(通信场景)/主播(直播场景)加入当前频道回调。 [...]
read / write
- userOffline ↔ UserOfflineCallback
-
远端用户(通信场景)/主播(直播场景)离开当前频道回调。 [...]
read / write
- videoPublishStateChanged ↔ StreamPublishStateCallback
-
视频发布状态发生改变回调。 [...]
read / write
- videoSizeChanged ↔ VideoSizeCallback
-
本地或远端视频大小或旋转信息发生改变回调。 [...]
read / write
- videoSubscribeStateChanged ↔ StreamSubscribeStateCallback
-
视频订阅状态发生改变回调。 [...]
read / write
- warning ↔ WarningCallback
-
报告 RtcChannel 对象发生的警告码。 [...]
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