enableInEarMonitoring abstract method

Future<void> enableInEarMonitoring({
  1. required bool enabled,
  2. required EarMonitoringFilterType includeAudioFilters,
})

Enables in-ear monitoring.

This method enables or disables in-ear monitoring. Users must use earphones (wired or Bluetooth) to hear the in-ear monitoring effect. You can call this method either before or after joining a channel.

  • enabled Enables or disables in-ear monitoring. true : Enables in-ear monitoring. false : (Default) Disables in-ear monitoring.
  • includeAudioFilters The audio filter types of in-ear monitoring. See EarMonitoringFilterType.

Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly. < 0: Failure.

  • 8: Make sure the current audio routing is Bluetooth or headset.

Implementation

Future<void> enableInEarMonitoring(
    {required bool enabled,
    required EarMonitoringFilterType includeAudioFilters});