ios_setAudioPlaybackDeviceMute method

Future<int?> ios_setAudioPlaybackDeviceMute(
  1. bool mute
)

@platform ios @detail api @author dixing @brief Set the mute state of the current audio playback device. It's not mute by default. @param mute
- true: Mute - false: Speaking @return Method call result
- 0: Success. - < 0: failure

Implementation

Future<int?> ios_setAudioPlaybackDeviceMute(bool mute) async {
  $() => ($instance as $p_i.ByteRTCAudioDeviceManager)
      .setAudioPlaybackDeviceMute(mute);

  if (Platform.isIOS) {
    return $();
  } else {
    throw UnsupportedError(
        'Not Support Platform ${Platform.operatingSystem}');
  }
}