mirror of
https://github.com/jech/galene.git
synced 2024-11-22 16:45:58 +01:00
Don't reset srcStream if not changing.
This avoids flicker upon renegotiation.
This commit is contained in:
parent
d5e3429262
commit
8120a30725
1 changed files with 1 additions and 1 deletions
|
@ -1299,7 +1299,7 @@ async function setMedia(c, isUp, mirror, video) {
|
||||||
media.classList.add('mirror');
|
media.classList.add('mirror');
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!video)
|
if(!video && media.srcObject !== c.stream)
|
||||||
media.srcObject = c.stream;
|
media.srcObject = c.stream;
|
||||||
|
|
||||||
let label = document.getElementById('label-' + c.id);
|
let label = document.getElementById('label-' + c.id);
|
||||||
|
|
Loading…
Reference in a new issue