ios_setAudioPlaybackDeviceMute method

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

@platform ios @detail api @author dixing @brief 设置当前音频播放设备静音状态,默认为非静音。 @param mute
- true:静音 - false:非静音 @return 方法调用结果
- 0:方法调用成功 - < 0:方法调用失败

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}');
  }
}