Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to switch from speakerphone to earpiece back once switched to speakerphone #1106

Open
CERCLEME opened this issue Jul 12, 2023 · 0 comments
Labels
client related to peerjs client

Comments

@CERCLEME
Copy link

Hi,

I would need to know if it is possible in chrome that we can switch between earpiece and speakerphone while streaming call. I have tried many approaches to fulfill it but could not do that.

I am able to set earpiece to srcObject of audio element. when call starts, I enumerate devices and take earpiece id and set streaming of remote audio to audio input by getUserMedia and options with {audio:{ deviceId: earpieceId } .It is working fine when in between the call, I switch from earpiece to speaker, It also works fine. But when I again switching back to earpiece, It does not work.

Can some one help me on this ?
Thanks,
Kartik

@irgalamarr irgalamarr added the client related to peerjs client label Feb 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client related to peerjs client
Projects
None yet
Development

No branches or pull requests

2 participants