twilio / audioswitch

An Android audio management library for real-time communication apps.
Apache License 2.0
163 stars 50 forks source link

External HMD is not playing Audio #111

Closed noumanshah115 closed 2 years ago

noumanshah115 commented 2 years ago

AudioSwitch is not picking WiredHeadset as avilableDevice we have a device that has external speaker and display and work good when there is no twilio session For video calling as we start the twilio session The sound is automatically route to speaker of phone Though the hmd is connected when i call audioSwitch.start { , -> } The device doe not pick WiredHeadset and the show the only avilable devices as "Speakerphone" and "Earpiece"

afalls-twilio commented 2 years ago

@noumanshah115 What android device are you seeing this issue with?

noumanshah115 commented 2 years ago

@afalls-twilio it is VR hardware(contain's mic and speaker) connected through external USB C cable

afalls-twilio commented 2 years ago

@noumanshah115 If a custom audio device is being used, then I would recommend creating a custom audio source for the item or extending audioswitch (its open source), to also support the custom VR Hardware. Today, audioswitch does not support external HMD support.

https://github.com/twilio/audioswitch