Description
-
Upon joining a meeting session, my camera starts but turns off after 1-2 seconds, throwing the following error: ‘Unhandled Promise Rejection: NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.’
-
However, if I manually toggle the camera off and on again, the video works as expected. Could this behavior be related to this issue: google chrome - Browser denying javascript play() - Stack Overflow)
This is my sessionId: ‘bt+wmOHzTQ6otjuvI+yd/w==’
Which Web Video SDK version?
1.11.10
Video SDK Code Snippets
let videoOptions = {
cameraId: cameraId,
hd: state.mediaStream.isSupportHDVideo(),
originalRatio: window.isMobile
};
if (state.mediaStream.isSupportVirtualBackground() && virtualBackground) {
videoOptions.virtualBackground = { imageUrl: virtualBackground };
}
await state.mediaStream.startVideo(videoOptions);
state.mediaStream.attachVideo(participants[0].userId, 3).then((userVideo) => {
document.querySelector('video-player-container').appendChild(userVideo);
})
Screenshots
Device:
- Device: Ipad Air 2
- OS: 15.6.1
- Browser: Safari