1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-23 00:55:58 +01:00

Don't reset srcStream if not changing.

This avoids flicker upon renegotiation.
This commit is contained in:
Juliusz Chroboczek 2021-01-13 14:59:43 +01:00
parent d5e3429262
commit 8120a30725

View file

@ -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);