Skip to content

Commit 624a7c5

Browse files
authored
adding preserve-view=true
1 parent 8949b5d commit 624a7c5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

articles/communication-services/resources/troubleshooting/voice-video-calling/device-issues/ask-device-permission-api-takes-too-long.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@ ms.subservice: calling
1313
---
1414

1515
# The askDevicePermission API takes too long
16-
The [`askDevicePermission`](/javascript/api/%40azure/communication-react/calladapterdevicemanagement?view=azure-node-latest#@azure-communication-react-calladapterdevicemanagement-askdevicepermission) API will have the end user will be shown a browser prompt asking if they allow permission to use (camera or microphone).
16+
The [`askDevicePermission`](/javascript/api/%40azure/communication-react/calladapterdevicemanagement?view=azure-node-latest&preserve-view=true#@azure-communication-react-calladapterdevicemanagement-askdevicepermission) API will have the end user will be shown a browser prompt asking if they allow permission to use (camera or microphone).
1717
If the end users aproves to use their camera or microphone then those devices will be available to be used in a call and their availability will be reflected in available device list.
1818
If you find that this API is taking a long time to respond, it could be due to delays in the end user approving the permission prompt user interface.
1919

2020
Occasionally, the device list update step can take a long time.
2121
This issue is usually because the driver layer responds late, which can happen with some virtual audio devices in particular. [Chromium Issue 1402866](https://bugs.chromium.org/p/chromium/issues/detail?id=1402866&no_tracker_redirect=1)
2222

2323
## How to detect using the SDK
24-
To detect this issue, you can measure the time difference between when you call the [`askDevicePermission`](/javascript/api/%40azure/communication-react/calladapterdevicemanagement?view=azure-node-latest#@azure-communication-react-calladapterdevicemanagement-askdevicepermission) API and when the promise resolves or rejects.
24+
To detect this issue, you can measure the time difference between when you call the [`askDevicePermission`](/javascript/api/%40azure/communication-react/calladapterdevicemanagement?view=azure-node-latest&preserve-view=true#@azure-communication-react-calladapterdevicemanagement-askdevicepermission) API and when the promise resolves or rejects.
2525

2626
## How to mitigate or resolve
27-
If the [`askDevicePermission`](/javascript/api/%40azure/communication-react/calladapterdevicemanagement?view=azure-node-latest#@azure-communication-react-calladapterdevicemanagement-askdevicepermission) API fails due to the user not responding to the permission prompt UI,
27+
If the [`askDevicePermission`](/javascript/api/%40azure/communication-react/calladapterdevicemanagement?view=azure-node-latest&preserve-view=true#@azure-communication-react-calladapterdevicemanagement-askdevicepermission) API fails due to the user not responding to the permission prompt UI,
2828
the application can retry the API again and the user should see the permission prompt UI.
2929

3030
If the device list update step takes a long time, the user should check their audio device list and see if there's any device that could potentially be causing this issue.

articles/communication-services/resources/troubleshooting/voice-video-calling/device-issues/no-permission-prompt.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ causing the browser to skip the prompt even if the permission state is set to `p
2525
We can't detect whether the permission prompt actually shows or not, as this browser behavior can't be detected at JavaScript layer.
2626

2727
## How to mitigate or resolve
28-
The application should check the result of [`DeviceManager.askDevicePermission`](/javascript/api/%40azure/communication-react/calladapterdevicemanagement?view=azure-node-latest#@azure-communication-react-calladapterdevicemanagement-askdevicepermission) API.
28+
The application should check the result of [`DeviceManager.askDevicePermission`](/javascript/api/%40azure/communication-react/calladapterdevicemanagement?view=azure-node-latest&preserve-view=true#@azure-communication-react-calladapterdevicemanagement-askdevicepermission) API.
2929
If the result is false, it may indicate that user denied the permission now or previously.
3030

3131
The application should show a warning message and ask the user to check their browser settings to ensure that correct permissions have been granted.

0 commit comments

Comments
 (0)