setEarMonitorMode method
@detail api @valid since 3.60. @brief Enables/Disables in-ear monitoring. @param mode Whether or not in-ear monitoring is enabled. See ByteRTCEarMonitorMode{@link #ByteRTCEarMonitorMode}. It defaults to off. @param filter Whether to include the local audio filters. See ByteRTCEarMonitorAudioFilter{@link #ByteRTCEarMonitorAudioFilter}. It defaults to no audio processing. @return - 0: Success. - < 0 : Fail. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for more details @note - In-ear monitoring is effective for audios captured by the RTC SDK. - We recommend that you use wired earbuds/headphones for a low-latency, high-resolution audio experience. - For iOS, you can only use SDK-level in-ear monitoring. - For macOS, ensure the users use the earpiece directly connected to the device by 3.5mm audio jack, USB, or Bluetooth. Earpiece connected to the device with the use of an intermediary device can not access to the in-ear monitoring feature, such as earpiece connected to the device through a monitor via HDMI or USB-C interface, or through an OTG sound card.
Implementation
FutureOr<int> setEarMonitorMode(
ByteRTCEarMonitorMode mode, ByteRTCEarMonitorAudioFilter filter) async {
return await nativeCall(
'setEarMonitorMode:filter:', [mode.$value, filter.$value]);
}