Start a conversation

How can I enable loudspeaker using Flutter SDK?

Please check the code snippet below how to enable loudspeaker using Flutter SDK:

//outputs
QBRTCAudioOutputTypes.LOUDSPEAKER
QBRTCAudioOutputTypes.EARSPEAKER

try {
  await QB.webrtc.switchAudioOutput(output);
} on PlatformException catch (e) {
   //exception
}

Feel free to check our official documentation for more information that will help you to integrate QuickBlox services into your applications / projects or contact our Support team by submitting a ticket if you have any other questions.

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Maksym Pidhorbunskyi

  2. Posted
  3. Updated

Comments