[mirotalksfu] - fix init screen if cancel

هذا الالتزام موجود في:
Miroslav Pejic
2023-03-10 13:32:07 +01:00
الأصل 531661397e
التزام 9fe17a94d8

عرض الملف

@@ -1165,7 +1165,7 @@ async function changeCamera(deviceId) {
}) })
.catch((err) => { .catch((err) => {
console.error('[Error] changeCamera', err); console.error('[Error] changeCamera', err);
userLog('error', 'Error while swapping camera' + err.tostring(), 'top-end'); userLog('error', 'Error while swapping camera' + err, 'top-end');
}); });
} }
@@ -1190,7 +1190,8 @@ async function toggleScreenSharing() {
}) })
.catch((err) => { .catch((err) => {
console.error('[Error] toggleScreenSharing', err); console.error('[Error] toggleScreenSharing', err);
userLog('error', 'Error while toggleScreenSharing' + err.tostring(), 'top-end'); joinRoomWithScreen = false;
return checkInitVideo(isVideoAllowed);
}); });
} else { } else {
checkInitVideo(isVideoAllowed); checkInitVideo(isVideoAllowed);