added new setting to allow video upscaling

This commit is contained in:
Luke Pulverenti 2014-02-02 10:19:29 -05:00
parent 84d3728b86
commit 5ce0e6c170
2 changed files with 8 additions and 0 deletions

View File

@ -39,6 +39,11 @@
<br />
<ul data-role="listview" class="ulForm">
<li>
<input type="checkbox" id="chkAllowUpscaling" name="chkAllowUpscaling" data-mini="true" />
<label for="chkAllowUpscaling">Allow video upscaling when requested by clients</label>
<div class="fieldDescription">In some cases this will result in improved video quality but will increase CPU usage.</div>
</li>
<li>
<input type="checkbox" id="chkEnableDebugEncodingLogging" name="chkEnableDebugEncodingLogging" data-mini="true" />
<label for="chkEnableDebugEncodingLogging">Enable debug transcoding logging</label>

View File

@ -23,6 +23,8 @@
$('#txtTranscodingTempPath', page).removeAttr("required");
}
$('#chkAllowUpscaling', page).checked(config.AllowVideoUpscaling).checkboxradio("refresh");
Dashboard.hideLoadingMsg();
}
@ -90,6 +92,7 @@
config.TranscodingTempPath = '';
}
config.AllowVideoUpscaling = $('#chkAllowUpscaling', form).checked();
config.EnableDebugEncodingLogging = $('#chkEnableDebugEncodingLogging', form).checked();
config.MediaEncodingQuality = $('.radioEncodingQuality:checked', form).val();