setEarMonitorMode abstract method

Future<int?> setEarMonitorMode(
  1. EarMonitorMode mode
)

Turns on/off the earphone monitor function.

mode: Whether to enable in-ear monitoring.

Return value:

Notes:

  • In-ear monitoring is effective for audios captured by the RTC SDK.
  • We recommend that you use wired earbuds/headphones for a low-latency experience.
  • The RTC SDK supports both the hardware-level in-ear monitoring and the SDK-level in-ear monitoring. Most hardware-level in-ear monitors enjoy lower latency and better audio quality. If your App is in the special list of the smartphone manufacturer, RTC SDK uses hardware-level ear monitoring by default.

Implementation

Future<int?> setEarMonitorMode(EarMonitorMode mode);