Commit e68882ff authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix replacing of a video with a new one.

This was broken when we implemented local videos.
parent 2b19a103
......@@ -1050,7 +1050,6 @@ function setMedia(c, isUp, video) {
media = document.createElement('video');
if(isUp)
media.muted = true;
media.srcObject = c.stream;
}
media.classList.add('media');
......@@ -1063,6 +1062,9 @@ function setMedia(c, isUp, video) {
addCustomControls(media, div, c);
}
if(!video)
media.srcObject = c.stream;
let label = document.getElementById('label-' + c.id);
if(!label) {
label = document.createElement('div');
......
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