Disable sync correction by default on mobile

This commit is contained in:
Bill Thornton 2021-09-09 23:20:14 -04:00
parent 247d3f23e6
commit de29dac896
2 changed files with 21 additions and 11 deletions

View file

@ -96,14 +96,22 @@ class SettingsEditor {
async initEditor() {
const { context } = this;
context.querySelector('#txtExtraTimeOffset').value = toFloat(getSetting('extraTimeOffset'), 0.0);
context.querySelector('#chkSyncCorrection').checked = toBoolean(getSetting('enableSyncCorrection'), true);
context.querySelector('#txtMinDelaySpeedToSync').value = toFloat(getSetting('minDelaySpeedToSync'), 60.0);
context.querySelector('#txtMaxDelaySpeedToSync').value = toFloat(getSetting('maxDelaySpeedToSync'), 3000.0);
context.querySelector('#txtSpeedToSyncDuration').value = toFloat(getSetting('speedToSyncDuration'), 1000.0);
context.querySelector('#txtMinDelaySkipToSync').value = toFloat(getSetting('minDelaySkipToSync'), 400.0);
context.querySelector('#chkSpeedToSync').checked = toBoolean(getSetting('useSpeedToSync'), true);
context.querySelector('#chkSkipToSync').checked = toBoolean(getSetting('useSkipToSync'), true);
context.querySelector('#txtExtraTimeOffset').value = toFloat(getSetting('extraTimeOffset'),
SyncPlay.Manager.playbackCore.extraTimeOffset);
context.querySelector('#chkSyncCorrection').checked = toBoolean(getSetting('enableSyncCorrection'),
SyncPlay.Manager.playbackCore.enableSyncCorrection);
context.querySelector('#txtMinDelaySpeedToSync').value = toFloat(getSetting('minDelaySpeedToSync'),
SyncPlay.Manager.playbackCore.minDelaySpeedToSync);
context.querySelector('#txtMaxDelaySpeedToSync').value = toFloat(getSetting('maxDelaySpeedToSync'),
SyncPlay.Manager.playbackCore.maxDelaySpeedToSync);
context.querySelector('#txtSpeedToSyncDuration').value = toFloat(getSetting('speedToSyncDuration'),
SyncPlay.Manager.playbackCore.speedToSyncDuration);
context.querySelector('#txtMinDelaySkipToSync').value = toFloat(getSetting('minDelaySkipToSync'),
SyncPlay.Manager.playbackCore.minDelaySkipToSync);
context.querySelector('#chkSpeedToSync').checked = toBoolean(getSetting('useSpeedToSync'),
SyncPlay.Manager.playbackCore.useSpeedToSync);
context.querySelector('#chkSkipToSync').checked = toBoolean(getSetting('useSkipToSync'),
SyncPlay.Manager.playbackCore.useSkipToSync);
}
onSubmit() {