onRoomStreamExtraInfoUpdate method

FutureOr<void> onRoomStreamExtraInfoUpdate(
  1. dynamic streamId,
  2. dynamic streamInfo,
  3. dynamic extraInfo
)
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.

Implementation

FutureOr<void> onRoomStreamExtraInfoUpdate(
    dynamic streamId, dynamic streamInfo, dynamic extraInfo) async {
  if ($instance == null || $instance is! IRTCRoomEventHandler) {
    return;
  }
  return ($instance as IRTCRoomEventHandler)
      .onRoomStreamExtraInfoUpdate
      ?.call(
          streamId.toString(),
          packObject(
              streamInfo,
              () => StreamInfo.fromMap(StreamInfo.deepPackedMapValues(
                  StreamInfo.mapMemberToConstructorParams(streamInfo)))),
          extraInfo.toString());
}