mirror of
https://github.com/jech/galene.git
synced 2024-11-22 16:45:58 +01:00
The up streams rework broke renegotiation. Don't attempt to
renegotiate, just close the stream and open it again.
This commit is contained in:
parent
e623442b99
commit
2380e2e183
1 changed files with 3 additions and 6 deletions
|
@ -1013,12 +1013,11 @@ async function addLocalMedia(id) {
|
||||||
}
|
}
|
||||||
|
|
||||||
let old = id && serverConnection.up[id];
|
let old = id && serverConnection.up[id];
|
||||||
|
if(old)
|
||||||
|
old.close();
|
||||||
|
|
||||||
if(!audio && !video) {
|
if(!audio && !video)
|
||||||
if(old)
|
|
||||||
old.close();
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
|
||||||
let constraints = {audio: audio, video: video};
|
let constraints = {audio: audio, video: video};
|
||||||
/** @type {MediaStream} */
|
/** @type {MediaStream} */
|
||||||
|
@ -1027,8 +1026,6 @@ async function addLocalMedia(id) {
|
||||||
stream = await navigator.mediaDevices.getUserMedia(constraints);
|
stream = await navigator.mediaDevices.getUserMedia(constraints);
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
displayError(e);
|
displayError(e);
|
||||||
if(old)
|
|
||||||
old.close();
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue