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

feature/qrgen blog-initial
Daniel Perelman 4 年前
父節點 01446ba255
當前提交 5669593cb1

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

載入中…
取消
儲存