android_IRTCRoomEventHandler class
Properties
-
$instance
↔ dynamic
-
getter/setter pairinherited
-
$resource
→ NativeResource
-
no setterinherited
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
ready
→ Future<void>
-
Whether the instance is initialized
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
destroy()
→ void
-
inherited
-
emit(String name, List args)
→ dynamic
-
inherited
-
nativeCall<T>(String method, [List? args, NativeMethodMeta? meta])
→ Future<T>
-
Call instance method
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
onAudioPublishStateChanged(dynamic streamId, dynamic streamInfo, dynamic state, dynamic reason)
→ FutureOr<void>
-
@detail callback
@valid since 3.60. Since version 3.60, this callback replaces
onStreamStateChanged for reporting audio publishing state changes. If you have upgraded to SDK version 3.60 or later and are still using this method, please migrate to this callback.
@author xuyiling.x10
@brief Callback on audio publishing state change.
@param streamId The ID of the stream, used to identify a specific audio stream.
@param streamInfo The stream information structure, containing detailed information such as room ID and user ID. See StreamInfo{@link #StreamInfo}.
@param state Publish state code. See PublishState{@link #PublishState}.
@param reason The reason for the change of the publishing state of the local audio stream. See PublishStateChangeReason{@link #PublishStateChangeReason}.
@order 0
override
-
onAudioStreamBanned(dynamic uid, dynamic banned)
→ FutureOr<void>
-
@detail callback
@author qipengxiang
@brief All the users in the room will get informed via this callback when a user is banned or the ban of the user has been lifted by calling BanUserStream/UnbanUserStream on the server side.
@param uid Disabled/unbanned audio stream user ID
@param banned Audio stream sending status
- true: Audio stream sending is disabled
- false: Audio stream sending is unbanned
@note
- When the specified user in the room is disabled/unbanned audio stream sending, all users in the room will receive the callback.
- If the banned user leaves or disconnects and then rejoins the room, the user is still banned from publishing audio stream, and all users in the room will be informed via the callback.
- After the specified user is banned, other users in the room will check out and enter the room again, and will receive the callback again.
- After the same room is disbanded and created again, the status in the room is cleared.
- If the Audio selection is enabled in the console, only the user whose stream is banned will receive this callback.
override
-
onAudioSubscribeStateChanged(dynamic streamId, dynamic streamInfo, dynamic state, dynamic reason)
→ FutureOr<void>
-
@detail callback
@valid since 3.60. Since version 3.60, this callback replaces
onStreamStateChanged and onStreamSubscribed for reporting the state changes of the subscription to audio streams. If you have upgraded to SDK version 3.60 or later and are still using this two methods, please migrate to this callback.
@author shenpengliang
@brief Callback on state changes of the subscription to microphone-audio streams.
@param streamId The ID of the stream, used to identify a specific audio stream.
@param streamInfo The stream information structure, containing detailed information such as room ID and user ID. See StreamInfo{@link #StreamInfo}.
@param state Room state code. See SubscribeState{@link #SubscribeState} for more.
@param reason The reason why room state changes. See SubscribeStateChangeReason{@link #SubscribeStateChangeReason} for more.
@note You will receive this callback after calling subscribeStreamAudio{@link #RTCRoom#subscribeStreamAudio}.
override
-
onAVSyncEvent(dynamic roomId, dynamic uid, dynamic eventCode)
→ FutureOr<void>
-
@detail callback
@valid since 3.60.
@brief Stream publisher will receive this callback when the A/V synchronization error occurs after setMultiDeviceAVSync{@link #RTCRoom#setMultiDeviceAVSync} is called.
@param roomId Room ID.
@param uid User ID.
@param eventCode A/V synchronization error, see AVSyncEvent{@link #AVSyncEvent}.
override
-
onAVSyncStateChange(dynamic state)
→ FutureOr<void>
-
@detail callback
@author wangzhanqiang
@brief Stream publisher will receive this callback when the A/V synchronization state changes after setMultiDeviceAVSync{@link #RTCRoom#setMultiDeviceAVSync} is called.
@param state A/V synchronization state, see AVSyncState{@link #AVSyncState}.
override
-
onForwardStreamEvent(List eventInfos)
→ FutureOr<void>
-
@detail callback
@author shenpengliang
@brief Callback returning the events during relaying the media stream to each room
@param eventInfos Array of the event of each designated room. Refer to ForwardStreamEventInfo{@link #ForwardStreamEventInfo} for more information.
override
-
onForwardStreamStateChanged(List stateInfos)
→ FutureOr<void>
-
@detail callback
@author shenpengliang
@brief Callback returning the state and errors during relaying the media stream to each of the rooms
@param stateInfos Array of the state and errors of each designated room. Refer to ForwardStreamStateInfo{@link #ForwardStreamStateInfo} for more information.
override
-
onLeaveRoom(dynamic stats)
→ FutureOr<void>
-
@detail callback
@region Multiple rooms
@author shenpengliang
@brief Leave the room successfully callback.
After the user calls the leaveRoom{@link #RTSRoom#leaveRoom} method, the SDK will stop all publishing subscription streams, and after releasing all call-related audio & video resources, this callback will notify the user to leave the room successfully.
@param stats Reserved parameter.
@note
- After the user calls the leaveRoom{@link #RTSRoom#leaveRoom} method to leave the room, if destroy{@link #RTCRoom#destroy} is called to destroy the room instance or destroyRTCEngine{@link #RTCEngine#destroyRTCEngine} method is called to destroy the RTC engine immediately, this callback event will not be received.
- If the app needs to use the system audio & video device after leaving the room, it is recommended to initialize the audio & video device after receiving this callback, otherwise the initialization may fail due to the SDK occupying the audio & video device.
override
-
onLocalStreamStats(dynamic streamId, dynamic streamInfo, dynamic stats)
→ FutureOr<void>
-
@detail callback
@author yejing
@brief Local stream data statistics and network quality callback.
After the local user publishes the flow successfully, the SDK will periodically (2s) notify the user through this callback event of the quality statistics of the published flow during this reference period.
Statistics are passed to the user through the callback parameters of the LocalStreamStats{@link #LocalStreamStats} type, including the sent audio & video bit rate, sent frame rate, encoded frame rate, network quality, etc.
@param streamId The ID of the stream, used to identify a specific local stream.
@param streamInfo The stream information structure, containing detailed information such as room ID and user ID. See StreamInfo{@link #StreamInfo}.
@param stats Audio & video stream and network status statistics. See LocalStreamStats{@link #LocalStreamStats}.
override
-
onNetworkQuality(dynamic localQuality, List remoteQualities)
→ FutureOr<void>
-
@detail callback
@author chengchao.cc951119
@brief Report the network quality of the users every 2s after the local user joins the room and starts publishing or subscribing to a stream.
@param localQuality Local network quality. Refer to NetworkQualityStats{@link #NetworkQualityStats} for details.
@param remoteQualities Network quality of the subscribed users. Refer to NetworkQualityStats{@link #NetworkQualityStats} for details.
@note See In-call Stats for more information.
override
-
onPublishPrivilegeTokenWillExpire()
→ FutureOr<void>
-
@detail callback
@author qipengxiang
@brief Callback triggered 30s before the publishing privilege of the Token expires.
After receiving this callback, you must call updateToken{@link #RTSRoom#updateToken} to update the publishing privilege Token.
@note Once a user's publishing privilege expires:
- Either during stream publishing or when attempting to publish a stream, the user will get the notification of kPublishStateChangeReasonNoPublishPermission via onVideoPublishStateChanged{@link #IRTCRoomEventHandler#onVideoPublishStateChanged}, onAudioPublishStateChanged{@link #IRTCRoomEventHandler#onAudioPublishStateChanged}.
- The publishing streams of the user will be removed, and remote users in the room will get informed via onUserPublishStreamVideo{@link #IRTCRoomEventHandler#onUserPublishStreamVideo}, onUserPublishStreamAudio{@link #IRTCRoomEventHandler#onUserPublishStreamAudio}.
override
-
onRemoteStreamStats(dynamic streamId, dynamic streamInfo, dynamic stats)
→ FutureOr<void>
-
@detail callback
@author yejing
@brief Remote audio/video stream statistics and network quality callbacks for local subscriptions.
After the local user subscribes to the stream successfully, the SDK will periodically (2s) notify the user through this callback event of the quality statistics of the subscribed stream during this reference period, including: sending audio & video bit rate, sending frame rate, encoded frame rate, network quality, etc.
@param streamId The ID of the stream, used to identify a specific remote stream.
@param streamInfo The stream information structure, containing detailed information such as room ID and user ID. See StreamInfo{@link #StreamInfo}.
@param stats Audio & video stream and network status statistics. See RemoteStreamStats{@link #RemoteStreamStats}.
override
-
onRoomBinaryMessageReceived(dynamic msgid, dynamic uid, dynamic message)
→ FutureOr<void>
-
@detail callback
@author hanchenchen.c
@brief > This callback will be deprecated since version 3.64. Use onRoomBinaryMessageReceived{@link #IRTCRoomEventHandler#onRoomBinaryMessageReceived-2} instead.
@brief Receives a callback for broadcast binary messages in the room.
This callback is received when other users in the room call sendRoomBinaryMessage{@link #RTSRoom#sendRoomBinaryMessage} to send a broadcast binary message.
@param uid User ID of the message sender.
@param message The content of the received binary message.
override
-
onRoomEvent(dynamic roomId, dynamic uid, dynamic state, dynamic info)
→ FutureOr<void>
-
@hidden
@detail callback
@valid since 3.60.
@region Multi-room
@author shenpengliang
@brief Callback on room event.
@param roomId Room ID.
@param uid User ID.
@param state Room event code. See RoomEvent{@link #RoomEvent}.
@param info When room is forbidden, it contains forbidden time. See RoomEventInfo{@link #RoomEventInfo}.
override
-
@valid since 3.52
@detail callback
@author lichangfeng.rtc
@brief Callback used to receive the extra information set by the other users in the same room with setRoomExtraInfo{@link #RTCRoom#setRoomExtraInfo}.
@param key Key of the extra information.
@param value Content of the extra information.
@param lastUpdateUserId The ID of the last user who updated this information.
@param lastUpdateTimeMs The Unix time in ms when this information was last updated.
override
-
onRoomMessageReceived(dynamic msgid, dynamic uid, dynamic message)
→ FutureOr<void>
-
@detail callback
@author hanchenchen.c
@brief > This callback will be deprecated since version 3.64. Use onRoomMessageReceived{@link #IRTCRoomEventHandler#onRoomMessageReceived-2} instead.
@brief Receive a callback for broadcast messages in the room.
This callback is received when other users in the room call sendRoomMessage{@link #RTSRoom#sendRoomMessage} to send a broadcast message.
@param uid User ID of the message sender.
@param message The content of the received message.
override
-
onRoomMessageSendResult(dynamic msgid, dynamic error)
→ FutureOr<void>
-
@detail callback
@author hanchenchen.c
@brief Receives this callback after sending a text message or a binary message to a room with sendRoomMessage{@link #RTSRoom#sendRoomMessage} or sendRoomBinaryMessage{@link #RTSRoom#sendRoomBinaryMessage}.
@param msgid The ID of this message.
@param error Message sending result. See RoomMessageSendResult{@link #RoomMessageSendResult}
override
-
onRoomStateChanged(dynamic roomId, dynamic uid, dynamic state, )
→ FutureOr<void>
-
@detail callback
@region Multi-room
@author shenpengliang
@brief Callback on room state changes. Via this callback you get notified of room relating warnings, errors and events. For example, the user joins the room, the user is removed from the room, and so on.
@param roomId Room ID.
@param uid User ID.
@param state Room state code.
- 0: Join room success.
- !0: Failed to join a room, abnormal exit, room-related warnings or errors. See ErrorCode{@link #ErrorCode} and WarningCode{@link #WarningCode} for specific indications.
@param extraInfo Extra information.
join_type indicates the type of room the user joins. 0 means the user joins the room for the first time, and 1 means the user rejoins the room.
elapsed indicates the time interval from calling joinRoom{@link #RTCRoom#joinRoom} to successfully joining room, in ms.
override
-
onRoomStateChangedWithReason(dynamic roomId, dynamic uid, dynamic state, dynamic reason)
→ FutureOr<void>
-
@hidden
@detail callback
@author shenpengliang
@brief Callback on room state changes. Via this callback you get notified of room relating warnings, errors and events. For example, the user joins the room, the user is removed from the room, and so on.
@param roomId Room ID.
@param uid User ID.
@param state Room state code. See RoomState{@link #RoomState}.
- 0: Join room success.
- 1: Failed to join a room, abnormal exit, room-related warnings or errors.
- 2: Leave room.
@param reason The reason why room state changes. See RoomStateChangeReason{@link #RoomStateChangeReason}.
override
-
onRoomStats(dynamic stats)
→ FutureOr<void>
-
@detail callback
@author yejing
@brief Room call statistics callback.
After the user enters the room and starts the call, he receives this callback every 2s.
@param stats Summary statistics in the room. See RTCRoomStats{@link #RTCRoomStats}.
override
-
@valid since 3.54
@detail callback
@brief Callback used to receive the extra information set by the other users in the same room with setStreamExtraInfo{@link #RTCRoom#setStreamExtraInfo}.
@param streamId Stream ID of the extra information.
@param streamInfo Stream information of the extra information.
@param extraInfo Extra information.
@note The new user who enters the room will receive the notification of all the extra information in the room.
override
-
onRoomWarning(dynamic warn)
→ FutureOr<void>
-
@hidden
@deprecated since 3.45 and will be deleted in 3.51, user onRoomStateChanged{@link #IRTCRoomEventHandler#onRoomStateChanged} and onStreamStateChanged instead.
@detail callback
@author shenpengliang
@brief Warning callback occurred.
@param warn Warning code. See WarningCode{@link #WarningCode}
@note SDK A (network or media-related) warning occurred at the runtime. The SDK usually recovers automatically and warnings can be ignored.
override
-
@valid since 3.52
@detail callback
@author lichangfeng.rtc
@brief Callback on the result of calling setRoomExtraInfo{@link #RTCRoom#setRoomExtraInfo} to set extra information about the room.
@param taskId The task ID of the API call.
@param result See SetRoomExtraInfoResult{@link #SetRoomExtraInfoResult} for the setting results and reasons.
override
-
onStreamPublishSuccess(dynamic uid, dynamic isScreen)
→ FutureOr<void>
-
@hidden for internal use only
@detail callback
@author shenpengliang
@brief Callback when publishing stream is successful
@param uid Stream publishing user's user ID
@param isScreen Stream identity
override
-
onStreamStateChanged(dynamic roomId, dynamic uid, dynamic state, )
→ FutureOr<void>
-
@detail callback
@author shenpengliang
@brief Callback on stream state changes. You will receive this callback when you receive stream relating warnings and errors.
@param roomId Room ID.
@param uid User ID.
@param state Room state code. See ErrorCode{@link #ErrorCode} and WarningCode{@link #WarningCode} for specific indications.
@param extraInfo Extra information. Currently unavailable.
override
-
onStreamSubscribed(dynamic stateCode, dynamic userId, dynamic info)
→ FutureOr<void>
-
@detail callback
@author shenpengliang
@brief Callback on subscription status of media streams
@param stateCode Subscription status of media streams, see SubscribeState{@link #SubscribeState}.
@param userId The ID of the user who published the stream.
@param info Configurations of stream subscription, see SubscribeConfig{@link #SubscribeConfig}.
@note Local users will receive this callback: After calling subscribeStreamVideo{@link #RTCRoom#subscribeStreamVideo} to change the subscription status of remote media streams captured by camera/microphone.
override
-
onSubscribePrivilegeTokenWillExpire()
→ FutureOr<void>
-
@detail callback
@author qipengxiang
@brief Callback triggered 30s before the subscribing privilege of the Token expires.
After receiving this callback, you must call updateToken{@link #RTSRoom#updateToken} to update the subscribing privilege Token.
@note After a user's subscribing privilege expires, the user will fail to subscribe to new streams, or the subscribed streams will be removed, and he/she will receive onVideoSubscribeStateChanged{@link #IRTCRoomEventHandler#onVideoSubscribeStateChanged}, onAudioSubscribeStateChanged{@link #IRTCRoomEventHandler#onAudioSubscribeStateChanged} with error code "-1003" indicating no permission to subscribe to streams.
override
-
onSubtitleMessageReceived(List subtitles)
→ FutureOr<void>
-
@hidden currently not available
@detail callback
@author qiaoxingwang
@brief Callback on subtitle messages.
After calling startSubtitle{@link #RTCRoom#startSubtitle} successfully, you will receive this callback which informs you of the related information on subtitles.
@param subtitles Subtitle messages. Refer to SubtitleMessage{@link #SubtitleMessage} for details.
override
-
onSubtitleStateChanged(dynamic state, dynamic errorCode, dynamic errorMessage)
→ FutureOr<void>
-
@hidden currently not available
@detail callback
@author qiaoxingwang
@brief Callback on subtitle states.
After you call startSubtitle{@link #RTCRoom#startSubtitle} and stopSubtitle{@link #RTCRoom#stopSubtitle}, you will receive this callback which informs you of the states and error codes of the subtitling task, as well as detailed information on the third party services' errors.
@param state The states of subtitles. Refer to SubtitleState{@link #SubtitleState} for details.
@param errorCode Error codes of the subtitling task. Refer to SubtitleErrorCode{@link #SubtitleErrorCode}.
@param errorMessage Detailed information on the third party services' errors.
override
-
onTokenWillExpire()
→ FutureOr<void>
-
@detail callback
@author shenpengliang
@brief The callback is triggered when the SDK detects the joining room privilege from the Token will expires within 30s.
After receiving this callback, you must call updateToken{@link #RTSRoom#updateToken} to update the joining room privilege Token.
@note After a user's joining room privilege expires:
- When attempting to join a room, the user will receive onRoomStateChanged{@link #IRTCRoomEventHandler#onRoomStateChanged} with the error code "-1000" indicating that the Token is invalid.
- If the user is already in the room, he/she will be removed from the room and receive onRoomStateChanged{@link #IRTCRoomEventHandler#onRoomStateChanged} with the error code "-1009" indicating that the Token is expired. Remote users in the room will receive onUserLeave{@link #IRTCRoomEventHandler#onUserLeave} with the reason 1 indicating that the Token is invalid.
@order 10
override
-
onUserBinaryMessageReceived(dynamic msgid, dynamic uid, dynamic message)
→ FutureOr<void>
-
@detail callback
@author hanchenchen.c
@brief > This callback will be deprecated since version 3.64. Use onUserBinaryMessageReceived{@link #IRTCRoomEventHandler#onUserBinaryMessageReceived-2} instead.
@brief Receive this callback when you receive a peer-to-peer binary message from another user in the room via sendUserBinaryMessage{@link #RTSRoom#sendUserBinaryMessage}.
@param uid The user ID of the sender of the message.
@param message The binary message content received.
override
-
onUserJoined(dynamic userInfo)
→ FutureOr<void>
-
@detail callback
@author shenpengliang
@brief You will receive this callback in following cases:
- The remote user calls setUserVisibility{@link #RTCRoom#setUserVisibility} turns visible and joins your room.
- The remote visible user is disconnected and then reconnected to your room.
- The invisible remote user in your room calls setUserVisibility{@link #RTCRoom#setUserVisibility} and turns visible.
- You join the room when there are visible users in the room.
@param userInfo User information. See UserInfo{@link #UserInfo}.
override
-
onUserLeave(dynamic uid, dynamic reason)
→ FutureOr<void>
-
@detail callback
@author shenpengliang
@brief This callback is triggered when a remote user is disconnected or turns invisible.
@param uid ID of the user who leaves the room, or switches to invisible.
@param reason Reason to leave the room:
- 0: The remote client calls leaveRoom{@link #RTSRoom#leaveRoom} to leave the room.
- 1: The remote client is disconnected because of poor network connection or expired Token.
- 2: The remote client calls setUserVisibility{@link #RTCRoom#setUserVisibility} to turn invisible.
- 3: The remote user has been removed from the room by the administrator via a OpenAPI call.
override
-
onUserMessageReceived(dynamic msgid, dynamic uid, dynamic message)
→ FutureOr<void>
-
@detail callback
@author hanchenchen.c
@brief > This callback will be deprecated since version 3.64. Use onUserMessageReceived{@link #IRTCRoomEventHandler#onUserMessageReceived-2} instead.
@brief Receive this callback when you receive a peer-to-peer text message from another user in the room via sendUserMessage{@link #RTSRoom#sendUserMessage}.
@param uid The user ID of the sender of the message.
@param message The content of the received text message.
override
-
onUserMessageSendResult(dynamic msgid, dynamic error)
→ FutureOr<void>
-
@detail callback
@author hanchenchen.c
@brief After sending a point-to-point text or point-to-point binary message to a single user in the room, the message sender will receive a callback with the result of the message.
@param msgid The ID of this message.
@param error Text or binary message sending results. See UserMessageSendResult{@link #UserMessageSendResult}
@note Call sendUserMessage{@link #RTSRoom#sendUserMessage} or sendUserBinaryMessage{@link #RTSRoom#sendUserBinaryMessage} interface to receive this callback.
override
-
onUserPublishStreamAudio(dynamic streamId, dynamic streamInfo, dynamic isPublish)
→ FutureOr<void>
-
@detail callback
@valid since 3.60. Since version 3.60, this callback replaces the
onUserPublishStream and onUserUnpublishStream methods for the functions described below. If you have upgraded to SDK version 3.60 or later and are still using these methods, please migrate to this callback.
@brief Callback on a remote user publishing or stopping publishing remote microphone-audio streams in the room.
@param streamId The ID of the stream, used to identify a specific microphone - captured audio stream.
@param streamInfo The stream information structure, containing detailed information such as room ID and user ID. See StreamInfo{@link #StreamInfo}.
@param isPublish Whether the remote user has published the microphone-audio stream.
+ true: Published.
+ false: Stopped publishing/Unpublished.
@note You will receive this callback after a remote user publishes or stops publishing media streams captured by microphone in the room with publishStreamAudio{@link #RTCRoom#publishStreamAudio}. Then you can choose whether to call subscribeStreamAudio{@link #RTCRoom#subscribeStreamAudio} to subscribe to or unsubscribe from the streams.
override
-
onUserPublishStreamVideo(dynamic streamId, dynamic streamInfo, dynamic isPublish)
→ FutureOr<void>
-
@detail callback
@valid since 3.60. Since version 3.60, this callback replaces the
onUserPublishStream, onUserUnpublishStream, onUserPublishScreen, and onUserUnpublishScreen methods for the functions described below. If you have upgraded to SDK version 3.60 or later and are still using these methods, please migrate to this callback.
@brief Callback on a remote user publishing or stopping publishing video streams in the room.
@param streamId The ID of the stream, used to identify a specific video stream.
@param streamInfo The stream information structure, containing detailed information such as room ID and user ID. See StreamInfo{@link #StreamInfo}.
@param isPublish Whether the remote user has published the video stream.
+ true: Published.
+ false: Unpblished.
@note You will receive this callback after a remote user publishes or stops publishing video streams in the room with publishStreamVideo{@link #RTCRoom#publishStreamVideo}. Then you can choose whether to call subscribeStreamVideo{@link #RTCRoom#subscribeStreamVideo} to subscribe to or unsubscribe from the streams.
override
-
onUserVisibilityChanged(dynamic currentUserVisibility, dynamic errorCode)
→ FutureOr<void>
-
@valid since 3.54
@detail callback
@author caocun
@brief Callback for user to set user visibility by calling setUserVisibility{@link #RTCRoom#setUserVisibility}.
@param currentUserVisibility Visibility of the current user.
- true: Visible. The user can publish media streams. The other users in the room get informed of the behaviors of the user, such as joining room, starting video capture, and leaving room.
- false: Invisible. The user cannot publish media streams. The other users in the room do not get informed of the behaviors of the user, such as joining room, starting video capture, or leaving room.
@param errorCode Error code for setting user visibility. See UserVisibilityChangeError{@link #UserVisibilityChangeError}.
override
-
onVideoPublishStateChanged(dynamic streamId, dynamic streamInfo, dynamic state, dynamic reason)
→ FutureOr<void>
-
@detail callback
@valid since 3.60. Since version 3.60, this callback replaces
onStreamStateChanged for reporting video publishing state changes. If you have upgraded to SDK version 3.60 or later and are still using this method, please migrate to this callback.
@author xuyiling.x10
@brief Callback on video publishing state change.
@param streamId The ID of the stream, used to identify a specific video stream.
@param streamInfo The stream information structure, containing detailed information such as room ID and user ID. See StreamInfo{@link #StreamInfo}.
@param state Publish state code. See PublishState{@link #PublishState}.
@param reason The reason for the change of the publishing state of the local video stream. See PublishStateChangeReason{@link #PublishStateChangeReason}.
@order 0
override
-
onVideoStreamBanned(dynamic uid, dynamic banned)
→ FutureOr<void>
-
@detail callback
@author qipengxiang
@brief All the users in the room will get informed via this callback when a user is banned or the ban of the user has been lifted by calling BanUserStream/UnbanUserStream on the server side.
@param uid Disabled/unbanned video stream user ID
@param banned Video stream sending status
- true: Video stream sending is disabled
- false: Video stream sending is unbanned
@note
- When the specified user in the room is banned/unbanned video stream sending, all users in the room will receive the callback.
- If the banned user leaves or disconnects and then rejoins the room, the user is still banned from publishing audio stream, and all users in the room will be informed via the callback.
- After the specified user is banned, other users in the room will check out and enter the room again, and will receive the callback again.
- After the same room is disbanded and created again, the status in the room is cleared.
override
-
onVideoSubscribeStateChanged(dynamic streamId, dynamic streamInfo, dynamic state, dynamic reason)
→ FutureOr<void>
-
@detail callback
@valid since 3.60. Since version 3.60, this callback replaces
onStreamStateChanged and onStreamSubscribed for reporting the state changes of the subscription to camera-video streams. If you have upgraded to SDK version 3.60 or later and are still using this two methods, please migrate to this callback.
@brief Callback on state changes of the subscription to camera-video streams.
@param streamId The ID of the stream, used to identify a specific video stream.
@param streamInfo The stream information structure, containing detailed information such as room ID and user ID. See StreamInfo{@link #StreamInfo}.
@param state Room state code. See SubscribeState{@link #SubscribeState} for more.
@param reason See SubscribeStateChangeReason{@link #SubscribeStateChangeReason} for more.
@note You will receive this callback after calling subscribeStreamVideo{@link #RTCRoom#subscribeStreamVideo}.
override
-
registerEvent(String name, dynamic method)
→ void
-
inherited
-
sendInstanceGet<T>(String property)
→ Future<T>
-
Get instance property
inherited
-
sendInstancePropertiesGet(dynamic nativeClass)
→ Future<Map<String, dynamic>>
-
Get instance properties
inherited
-
sendInstanceSet(String property, dynamic value)
→ Future<void>
-
Set instance property
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
-
updateInstance(dynamic instance)
→ void
-
inherited
-
updateResource(NativeResource resource)
→ void
-
inherited