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

[Question] CCP for device settings #861

Open
kimhanmiru opened this issue Apr 1, 2024 · 1 comment
Open

[Question] CCP for device settings #861

kimhanmiru opened this issue Apr 1, 2024 · 1 comment

Comments

@kimhanmiru
Copy link

kimhanmiru commented Apr 1, 2024

You want to change the device in the softphone settings. You want to set the ringer to the speaker and the customer's voice to the headset.
I'm developing a custom ccp, and the ccp doesn't give me an error when I get the device id,

In the custom ccp, I get an error because the device IDs don't match.
Error message in developer mode
"RingtoneEngineBase.setOutputDevice failed: audio.setSinkId() failed with error NotFoundError: Requested device not found"

I think the deviceId is in error, if you have any guide that can help, please share.

(Additionally) When I compare, I see that the device ID from which I get the device list from custom ccp is different from the device ID I get from stream.js.

Is there any function to get the deviceList using stream.js ?

@vs-amzn
Copy link
Contributor

vs-amzn commented Jun 1, 2024

In your custom CCP, before you set the set your audio devices, you should validate that the device you intend to set is indeed available to use. One way you can do that is by using navigator.mediaDevices.enumerateDevices(). This will return all devices available for use. You can check if the device you want to set is in that list and if it is, then you can set it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants