Receive a cordial greeting. I need to detect when a user grants permissions to a web page. In my case the page requests camera and microphone permissions since it is a video chat, and I need to stop when the user granted the permissions. Thanks
Receive a cordial greeting. I need to detect when a user grants permissions to a web page. In my case the page requests camera and microphone permissions since it is a video chat, and I need to stop when the user granted the permissions. Thanks
From the backend
you have more permissions that you can combine, from Componentes > Jevents > configuración > Permisos
, you have for example the one to edit events or edit own events, see image
Verify that all the permission for your site of operations in your installation (is shown in Cuenta > pestaña Permiso
).
I hope it helps you.
So that the end user, according to the flow natural for this type of cases, uses his microphone and camera, it is necessary that be invited to it. This will display a small dialog asking the user whether or not he wants to use the requested devices.
navigator
.mediaDevices
.getUserMedia({
audio: true,
video: true,
})
.then(onPermissionsAccept)
.catch(onPermissionsReject);
In the function onPermissionsAccept
you execute the code you want to execute when the user press "Allow" and in the function onPermissionsReject
when you press "Reject" .
function onPermissionsAccept() {
// hacer o mostrarle algo al usuario
}