onVideoStreamBanned method

FutureOr<void> onVideoStreamBanned(
  1. dynamic uid,
  2. dynamic banned
)
override

@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.

Implementation

FutureOr<void> onVideoStreamBanned(dynamic uid, dynamic banned) async {
  if ($instance == null || $instance is! IRTCRoomEventHandler) {
    return;
  }
  return ($instance as IRTCRoomEventHandler)
      .onVideoStreamBanned
      ?.call(uid.toString(), banned);
}