rtcEngine$onAudioRouteChanged method

FutureOr<void> rtcEngine$onAudioRouteChanged(
  1. ByteRTCEngine engine,
  2. ByteRTCAudioRoute device
)

@hidden(macOS) @detail callback @author dixing @brief RTC notifies the audio route changes via this callback. @param engine ByteRTCEngine object @param device Current audio playback device. Refer to ByteRTCAudioRoute{@link #ByteRTCAudioRoute} for more information. @note Either of the following actions will lead to audio route switching. See Set the Audio Route.

  • Connecting/Disconnecting an audio device
  • Designating the other audio device by calling setAudioRoute:{@link #ByteRTCEngine#setAudioRoute}.

Implementation

FutureOr<void> rtcEngine$onAudioRouteChanged(
    ByteRTCEngine engine, ByteRTCAudioRoute device) async {}