1
Fork 0

Minor fixes to example.

This commit is contained in:
Juliusz Chroboczek 2024-06-08 18:30:14 +02:00
parent ac47a82e2f
commit 45ae8c5339
1 changed files with 3 additions and 1 deletions

View File

@ -24,8 +24,9 @@ async function start(url) {
await serverConnect(status, token);
} else if(status.authPortal) {
window.location.href = groupStatus.authPortal
return;
} else {
serverConnect(status, null);
await serverConnect(status, null);
}
}
@ -204,6 +205,7 @@ async function showCamera(conn) {
s.label = 'camera';
s.setStream(ms);
s.onclose = function(replace) {
s.stream.getTracks().forEach(t => t.stop());
v.srcObject = null;
}