onAudioRouteChanged property
This callback is triggered when the audio playback route changes.
Either of the following action will lead to audio route switching:
- Connecting/Disconnecting an audio device.
- Designating the other audio device by calling RTCVideo.setAudioRoute.
See Set the Audio Route for details.
Implementation
OnAudioRouteChangedType? onAudioRouteChanged;