|
| 1 | +<!DOCTYPE html> |
| 2 | + <head> |
| 3 | + <title>OBS CR control (tablet)</title> |
| 4 | + <meta charset="UTF-8"> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"/> |
| 6 | + <!-- boostrap --> |
| 7 | + <link href=" https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel=" stylesheet" integrity=" sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin=" anonymous" > |
| 8 | + <script src=" https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity=" sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin=" anonymous" ></script> |
| 9 | + <!-- Core code --> |
| 10 | + <script src="https://cdn.jsdelivr.net/npm/obs-websocket-js"></script> |
| 11 | + <script src="https://cdnjs.cloudflare.com/ajax/libs/js-yaml/4.1.0/js-yaml.min.js"></script> |
| 12 | + <script src="util.js"></script> |
| 13 | + <script src="control.js"></script> |
| 14 | + <script type="module"> |
| 15 | + </script> |
| 16 | + <style> |
| 17 | + .centered {display: flex ; justify-content: center; } |
| 18 | + .centeredV {display: flex ; align-items: center; } |
| 19 | + </style> |
| 20 | + </head> |
| 21 | + <body> |
| 22 | + |
| 23 | + <div class="ssl-warning" style="display:none; color: maroon"> |
| 24 | + You are currently using HTTPS. Unfortunately if the OBS |
| 25 | + websocket isn't using SSL, then a SSL webpage can't connect to |
| 26 | + it. (From SSL webpages, browsers only allow SSL websocket |
| 27 | + connections). Thus, you need to turn SSL off. Please try changing the |
| 28 | + URL to 'http' instead of 'https' which might require telling |
| 29 | + your browser to not force SSL for this page (try clicking lock or |
| 30 | + shield icons by the URL bar). This message will disappear if |
| 31 | + you successfully connect to a wss:// (websocket+SSL) URL. |
| 32 | + </div> |
| 33 | + |
| 34 | + <div class="audio-warning" style="display:none; color: maroon"> |
| 35 | + Audio playback has failed. Do you need to allow it on this page? |
| 36 | + Or try clicking the "enable audio" button. |
| 37 | + </div> |
| 38 | + |
| 39 | + <div class="enable-audio" style="color: maroon"> |
| 40 | + <button class="enable-audio-button">Enable audio</button> |
| 41 | + Click this button once to play some sound, to enable audio in this browser. |
| 42 | + Browsers won't play sound unless you interact first, to avoid sites spamming |
| 43 | + sound without your request. |
| 44 | + </div> |
| 45 | + |
| 46 | + <!--<div class="status">Status is updated here</div>--> |
| 47 | + <!--<span class="synced" syncwith="scene">Scene</span>--> |
| 48 | + <!--<span class="synced" syncwith="ss_resolution">Resolution</span>--> |
| 49 | + |
| 50 | + <div id="main" style="height: 100%; display: grid; grid-template-columns: 9fr 1fr; background-color: white"> <!-- main (contains panel/sidebar) --> |
| 51 | + <div style="display: grid; grid-template-rows: .5fr 4.5fr"> <!-- main panel --> |
| 52 | + <div style="display: grid; grid-template-columns: repeat(10, 1fr); border: .5ex black solid"> <!-- top indicators --> |
| 53 | + <div class="live centered centeredV" title="When red, (audio, camera gallery, or screenshare) may be being broadcasted">Live</div> |
| 54 | + <button class="indicator" id="warning">Warn</button> |
| 55 | + <button class="indicator" id="caution">Caution</button> |
| 56 | + <button class="indicator" id="time">Time</button> |
| 57 | + <button class="indicator" id="notes">Notes</button> |
| 58 | + <button class="indicator" id="question">Question</button> |
| 59 | + <button class="indicator" id="chat">Chat</button> |
| 60 | + <button class="indicator" id="slower">Slower</button> |
| 61 | + <button class="indicator" id="faster">Faster</button> |
| 62 | + <input size="6" id="A" class="timer" style="text-align: center" title="Timer. Set the duration with formats MM[:SS][/DD] (time remaining) or @[HH:]MM[/DD] (end time), where DD is planned duration in minutes. It starts changing color 75% of the way through."> |
| 63 | + </div> |
| 64 | + <div style="display: grid; grid-template-columns: 1fr 2fr 2fr 1fr"> <!-- under indicators--> |
| 65 | + <div style="display:grid;"> <!-- first column--> |
| 66 | + <div> |
| 67 | + <div>Time:</div> |
| 68 | + <div class="time centered" title="Current time"></div> |
| 69 | + </div> |
| 70 | + <div> |
| 71 | + <div>Scene:</div> |
| 72 | + <span class="synced centered" syncwith="scene">Scene</span> |
| 73 | + </div> |
| 74 | + <div> |
| 75 | + <div>Playfile timer:</div> |
| 76 | + <span class="playfile timer centered" title="Timer for ongoing playback">-</span> |
| 77 | + </div> |
| 78 | + <div class="reconnect-button" style="display: none"> |
| 79 | + <button class="centered" onclick="obs_init()">Reconnect</button> |
| 80 | + </div> |
| 81 | + <div style="font-size: 75%;"> |
| 82 | + <div>Status:</div> |
| 83 | + <span class="status">Status</span> |
| 84 | + </div> |
| 85 | + <button onclick="fullscreen_toggle()" style="font-size: 75%;">Full screen & wakelock</button> |
| 86 | + </div> |
| 87 | + |
| 88 | + <div style="display: grid; grid-template-rows: 1fr 1fr 1fr 1fr"> |
| 89 | + </div> |
| 90 | + <div style="display: grid; grid-template-rows: 1fr 1fr 1fr 1fr"> |
| 91 | + <div></div> |
| 92 | + <button class="quick-break" title="Cut audio/gallery and swich scene to Notes.">Break</button> |
| 93 | + <div>Click "break" above to cut audio, hide instructor picture, and switch to Notes. The Director normally does this but if desired you can too.</div> |
| 94 | + </div> |
| 95 | + <div style="display: grid; grid-template-rows: 1fr 1fr 1fr 1fr"> |
| 96 | + </div> |
| 97 | + |
| 98 | + </div> |
| 99 | + </div> |
| 100 | + </div> |
| 101 | + |
| 102 | + |
| 103 | + <table border="1"> |
| 104 | + |
| 105 | + <div> |
| 106 | + <input type="checkbox" class="no-local-sound" title="No local sound? Enable if broadcaster to prevent sound loops.">No local sound</input> |
| 107 | + </div> |
| 108 | + |
| 109 | + <a class="index-href" href="">Index</a>, |
| 110 | + <a class="preview-href" href="">Preview</a>, |
| 111 | + <button class="popout" title="Pop out this window without tabs/menus" onclick="window.open(window.location.href, 'popupWindow', 'width=700,height=300,menubar=no,toolbar=no,location=no,status=no');">Pop out window</button> |
| 112 | + |
| 113 | + <script> |
| 114 | + init_all() |
| 115 | + </script> |
| 116 | + |
| 117 | + <body> |
| 118 | + </html> |
0 commit comments