Author Message
Amit012024
Joined: Dec 13, 2013
Messages: 3
Offline
JS CSDK - Custom Chrome Issue
1.default device audio is "speaker" for android chrome tab and
2. Asking for camera permission for audio call only.

Tried below sample code/ref, but didn't workout.

https://sinkid.glitch.me/
https://developer.chrome.com/blog/media-devices/
https://webrtc.github.io/samples/src/content/devices/input-output/
JMiddleton
Joined: Apr 1, 2019
Messages: 86
Offline
Hi Amit,

https://www.devconnectprogram.com/site/global/products_resources/avaya_client_sdk/programming_docs/current/javascript/communication/api_refs/AvayaClientServices/AvayaClientServices.Base.AudioOutputInterface.html

#1: The above class has methods to set a selected audio output device. You can access it via client.getMediaServices().getAudioInterface().getOutputInterface()

#2: By default the SDK will ask for mic and camera permission when executing user.start(). The purpose of this is to get access to the device labels. You can override this behavior by setting the config userConfiguration.mediaConfiguration.retrieveDeviceLabelsEnabled to false.

https://www.devconnectprogram.com/site/global/products_resources/avaya_client_sdk/programming_docs/current/javascript/communication/api_refs/AvayaClientServices/AvayaClientServices.Config.MediaConfiguration.html#toc5

Regards,
Jeff
Amit012024
Joined: Dec 13, 2013
Messages: 3
Offline
Thanks Jeff for the info, but it is only working on the web app.
On Mobile phone chrome, it is going on default option which is speaker.
JMiddleton
Joined: Apr 1, 2019
Messages: 86
Offline
You are correct that on Android Chrome speaker selection will not work. This is due to a limitation in Chrome/Android. See https://bugs.chromium.org/p/chromium/issues/detail?id=648286#c4
JMiddleton
Joined: Apr 1, 2019
Messages: 86
Offline
One other note on this in case someone comes across this in the future. Chrome Android will change the output device based on the selected input device. So if you select the speakerphone mic it will automatically send the output to the speakerphone output. If you select the handset mic it will automatically select the handset speaker.

The input device can be changed via this API
https://www.devconnectprogram.com/site/global/products_resources/avaya_client_sdk/programming_docs/current/javascript/communication/api_refs/AvayaClientServices/AvayaClientServices.Base.AudioInputInterface.html#toc0
sabkharaab554
Joined: Jun 17, 2023
Messages: 1
Offline
One reason could be that you have too many tabs open so the app is loading each and every tab and hence its crashing.

Or You manually close the tab instead of just switching to the home screen. Though it seems that manually closing apps makes your phone faster while reality it doesn’t.

This way your phone becomes way slower since it has to reopen the app and this consumes even greater memory and processor speed.

Plus apps that claim to make your phone faster rather result in damaging your phone.

Solution: Reinstall chrome or clear data by going into app info

pikashow
ppsspp emulator

Go to:   
Mobile view