rtcEngine$onRemoteAudioPropertiesReportEx method

FutureOr<void> rtcEngine$onRemoteAudioPropertiesReportEx(
  1. dynamic engine,
  2. List audioPropertiesInfos
)
override

@hidden for internal use only @detail callback @author shenpengliang @brief Transmission state change of an video stream in the room triggers this callback. @param engine ByteRTCEngine instance @param roomId Room ID. @param uid The user who changes his/her transmission state of the video streams @param muteState Transmission state of the video streams. Refer to ByteRTCMuteState{@link #ByteRTCMuteState} for more details.

Implementation

FutureOr<void> rtcEngine$onRemoteAudioPropertiesReportEx(
    dynamic engine, List<dynamic> audioPropertiesInfos) async {
  if ($instance == null || $instance is! IRTCEngineEventHandler) {
    return;
  }
  return ($instance as IRTCEngineEventHandler)
      .onRemoteAudioPropertiesReportEx
      ?.call(
          audioPropertiesInfos
              .map((e) => packObject(
                  e,
                  () => RemoteAudioPropertiesInfo.fromMap(
                      RemoteAudioPropertiesInfo.deepPackedMapValues(
                          RemoteAudioPropertiesInfo
                              .mapMemberToConstructorParams(e)))))
              .toList(),
          int.tryParse((await audioPropertiesInfos).toString()) ?? 0);
}