pauseAudioPlayout static method

Future<void> pauseAudioPlayout()

Implementation

static Future<void> pauseAudioPlayout() async {
  if (kIsWeb) return;
  if (!(WebRTC.platformIsIOS ||
      WebRTC.platformIsAndroid ||
      WebRTC.platformIsMacOS)) {
    return;
  }

  try {
    await WebRTC.invokeMethod('pauseAudioPlayout', <String, dynamic>{});
  } on PlatformException catch (e) {
    throw 'Unable to pause audio playout: ${e.message}';
  }
}