rtcRoom$onAudioStreamBanned$isBanned method

FutureOr<void> rtcRoom$onAudioStreamBanned$isBanned(
  1. ByteRTCRoom rtcRoom,
  2. NSString uid,
  3. BOOL banned
)

@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 rtcRoom ByteRTCRoom object. @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.

Implementation

FutureOr<void> rtcRoom$onAudioStreamBanned$isBanned(
    ByteRTCRoom rtcRoom, NSString uid, BOOL banned) async {}