Commit 8120a307 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Don't reset srcStream if not changing.

This avoids flicker upon renegotiation.
parent d5e34292
...@@ -1299,7 +1299,7 @@ async function setMedia(c, isUp, mirror, video) { ...@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment