Add input setting for custom audio source
This commit is contained in:
parent
27c8430915
commit
1dc8bf77ca
@ -44,6 +44,7 @@ async function formRead(options) {
|
|||||||
options.audio.enabled = $('#audio-playback-enabled').prop('checked');
|
options.audio.enabled = $('#audio-playback-enabled').prop('checked');
|
||||||
options.audio.autoPlay = $('#auto-play-audio').prop('checked');
|
options.audio.autoPlay = $('#auto-play-audio').prop('checked');
|
||||||
options.audio.volume = parseFloat($('#audio-playback-volume').val());
|
options.audio.volume = parseFloat($('#audio-playback-volume').val());
|
||||||
|
options.audio.customSourceUrl = $('#audio-custom-source').val();
|
||||||
|
|
||||||
options.scanning.middleMouse = $('#middle-mouse-button-scan').prop('checked');
|
options.scanning.middleMouse = $('#middle-mouse-button-scan').prop('checked');
|
||||||
options.scanning.touchInputEnabled = $('#touch-input-enabled').prop('checked');
|
options.scanning.touchInputEnabled = $('#touch-input-enabled').prop('checked');
|
||||||
@ -111,6 +112,7 @@ async function formWrite(options) {
|
|||||||
$('#audio-playback-enabled').prop('checked', options.audio.enabled);
|
$('#audio-playback-enabled').prop('checked', options.audio.enabled);
|
||||||
$('#auto-play-audio').prop('checked', options.audio.autoPlay);
|
$('#auto-play-audio').prop('checked', options.audio.autoPlay);
|
||||||
$('#audio-playback-volume').val(options.audio.volume);
|
$('#audio-playback-volume').val(options.audio.volume);
|
||||||
|
$('#audio-custom-source').val(options.audio.customSourceUrl);
|
||||||
|
|
||||||
$('#middle-mouse-button-scan').prop('checked', options.scanning.middleMouse);
|
$('#middle-mouse-button-scan').prop('checked', options.scanning.middleMouse);
|
||||||
$('#touch-input-enabled').prop('checked', options.scanning.touchInputEnabled);
|
$('#touch-input-enabled').prop('checked', options.scanning.touchInputEnabled);
|
||||||
|
@ -253,6 +253,11 @@
|
|||||||
<input type="number" min="0" max="100" id="audio-playback-volume" class="form-control">
|
<input type="number" min="0" max="100" id="audio-playback-volume" class="form-control">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group options-advanced">
|
||||||
|
<label for="audio-custom-source">Custom audio source <span class="label-light">(URL)</span></label>
|
||||||
|
<input type="text" id="audio-custom-source" class="form-control" placeholder="Example: http://localhost/audio.mp3?expression={expression}&reading={reading}">
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="audio-playback-source">Audio playback source</label>
|
<label for="audio-playback-source">Audio playback source</label>
|
||||||
<select class="form-control" id="audio-playback-source">
|
<select class="form-control" id="audio-playback-source">
|
||||||
|
Loading…
Reference in New Issue
Block a user