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. The user must use headphones (wired or Bluetooth) to hear the in-ear monitoring effect.

  • enabled Enable/disable in-ear monitoring: true : Enable in-ear monitoring. false : (Default) Disable in-ear monitoring.
  • includeAudioFilters The audio filter type for 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. See Error Codes for details and resolution suggestions.

Implementation

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