mirror of
https://github.com/jech/galene.git
synced 2024-11-12 19:55:59 +01:00
Minor fixes to example.
This commit is contained in:
parent
ac47a82e2f
commit
45ae8c5339
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue