Browse Source

Don't show video when there's only audio.

tags/blog-initial
Daniel Perelman 5 months ago
parent
commit
eba8813f9f
1 changed files with 8 additions and 5 deletions
  1. +8
    -5
      camera/templates/index.html

+ 8
- 5
camera/templates/index.html View File

@@ -222,11 +222,14 @@ form label {
remoteView.srcObject = stream;
log("Set srcObject");
remoteView.play();
out.innerText += "Set srcObject\n";
out.style.display = 'none';
form.style.display = 'none';
videos.style.display = '';
body.classList.add('justVideo');

if (stream.getVideoTracks().length > 0) {
remoteView.style.display = '';
out.style.display = 'none';
form.style.display = 'none';
videos.style.display = '';
body.classList.add('justVideo');
}
};

return pc;


Loading…
Cancel
Save