Add global volume slider
We do quite a bit of "iron fist state management" here. Any time any embed state changes, we also re-enforce the volume setting. This is because `setVolume()` in the Twitch embeds seems to not take effect in a lot of situations and we want to make sure our volume is applied before any audio starts playing.
This commit is contained in:
parent
a6f48c3e1a
commit
e06dfb4360
2 changed files with 19 additions and 3 deletions
|
@ -38,7 +38,9 @@
|
|||
<!-- Global Controls -->
|
||||
Overlay:
|
||||
<button type='button' name='go_4x3' onclick='set_state(false);'>4x3</button>
|
||||
<button type='button' name='go_16x0' onclick='set_state(true);'>16x9</button>
|
||||
<button type='button' name='go_16x9' onclick='set_state(true);'>16x9</button>
|
||||
Volume:
|
||||
<input type='range' id='vol_slider' min=0 max=100 value=100 />
|
||||
<td>
|
||||
<h3>Global Settings</h3>
|
||||
<p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue