Fix issue on Android WebView where there is no default audio device#5900
Fix issue on Android WebView where there is no default audio device#5900JamesBurnside merged 3 commits intomainfrom
Conversation
|
Storybook 8 URL https://60c7ae6891f0e90039d7cd54-lirejfwmgv.chromatic.com/ |
|
Storybook 8 URL https://60c7ae6891f0e90039d7cd54-vjthjnmzrg.chromatic.com/ |
@azure/communication-react jest test coverage for stable.
|
@azure/communication-react jest test coverage for beta.
|
| } | ||
| ); | ||
|
|
||
| function removeBlankNameDevices<T extends { name: string }>(devices: T[]): T[] { |
There was a problem hiding this comment.
We have verified removing this does not cause any regression on macas safari with usePropsFor and devices button
| [getDeviceManager], | ||
| (deviceManager) => { | ||
| return { | ||
| microphones: removeBlankNameDevices(deviceManager.microphones), |
There was a problem hiding this comment.
are the blank name devices coming only from webview, do we need to filter any other devices that might cause issue?
There was a problem hiding this comment.
Validated the scenario with donald that removeBlankNameDevices was applied for and it no longer repros, but if we see regressions we can look at other solution. It was originally added here #2366 as a workaround where the SDK was putting in a fake camera when there wasn't camera permission - but its not reproing any longer (this was back in 2022)
📦 Calling bundle size
Total change: +1.1 KB |
📦 CallWithChat bundle size
Total change: +1.1 KB |
📦 Chat bundle size
Total change: +86 B |
…5900) * Fix issue on Android WebView where there is no default audio device * Change files * updatge api files
…5900) * Fix issue on Android WebView where there is no default audio device * Change files * updatge api files
What
For config page and for call page, ensure we use a default fallback for the device name for microphone if the default microphone does not have one.
Why
Fix issue on Android WebView where there is no default audio device. The default audio device on android webview has no label:
How Tested
Verified on android web view and verified usePropsFor on devicesbutton on macos safari