Browse Source

Fix styles so it's easier to see log when receiving video.

tags/blog-initial
Daniel Perelman 4 months ago
parent
commit
5669593cb1
1 changed files with 11 additions and 3 deletions
  1. +11
    -3
      camera/templates/index.html

+ 11
- 3
camera/templates/index.html View File

@@ -3,11 +3,15 @@
<head>
<meta charset="utf-8"/>
<title>Minimal WebRTC</title>
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
<style>
body.justVideo {
margin: 0;
overflow: hidden;
}
body.justVideo #status, body.justVideo form {
display: none;
}
#qrcodelink {
position: sticky;
top: 0;
@@ -83,6 +87,10 @@ form label {
Transmit audio:
<input name="host-audio" type="checkbox" value="true" />
</label>
<label>
Debug mode (show log even after starting video):
<input name="debug" type="checkbox" value="true" />
</label>
</form>
<div id="status"></div>
<div id="videos">
@@ -227,10 +235,10 @@ form label {

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



Loading…
Cancel
Save