rtcEngine$onLocalAudioPropertiesReport method

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

@detail callback @author huangshouqin @brief After calling enableAudioPropertiesReport:{@link #ByteRTCEngine#enableAudioPropertiesReport}, you will periodically receive this callback for the instantaneous information about local audio.
Local audio includes the microphone audio, the screen audio captured using RTC SDK internal mechanisms, and locally mixing audio. @param engine ByteRTCEngine object @param audioPropertiesInfos See ByteRTCLocalAudioPropertiesInfo{@link #ByteRTCLocalAudioPropertiesInfo}. On the macOS, you can set the volume of the local audio via setAudioCaptureDeviceVolume:.

Implementation

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