mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add warning about qsv
This commit is contained in:
parent
bb21de5aed
commit
4a467a2676
2 changed files with 30 additions and 12 deletions
|
@ -20,22 +20,38 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function onSubmit() {
|
function onSubmit() {
|
||||||
Dashboard.showLoadingMsg();
|
|
||||||
|
|
||||||
var form = this;
|
var form = this;
|
||||||
|
|
||||||
ApiClient.getNamedConfiguration("encoding").then(function (config) {
|
var onDecoderConfirmed = function() {
|
||||||
|
Dashboard.showLoadingMsg();
|
||||||
|
|
||||||
config.EnableDebugLogging = $('#chkEnableDebugEncodingLogging', form).checked();
|
ApiClient.getNamedConfiguration("encoding").then(function (config) {
|
||||||
config.EncodingQuality = $('.radioEncodingQuality:checked', form).val();
|
|
||||||
config.DownMixAudioBoost = $('#txtDownMixAudioBoost', form).val();
|
config.EnableDebugLogging = $('#chkEnableDebugEncodingLogging', form).checked();
|
||||||
config.TranscodingTempPath = $('#txtTranscodingTempPath', form).val();
|
config.EncodingQuality = $('.radioEncodingQuality:checked', form).val();
|
||||||
config.EnableThrottling = $('#chkEnableThrottle', form).checked();
|
config.DownMixAudioBoost = $('#txtDownMixAudioBoost', form).val();
|
||||||
config.EncodingThreadCount = $('#selectThreadCount', form).val();
|
config.TranscodingTempPath = $('#txtTranscodingTempPath', form).val();
|
||||||
config.HardwareAccelerationType = $('#selectVideoDecoder', form).val();
|
config.EnableThrottling = $('#chkEnableThrottle', form).checked();
|
||||||
|
config.EncodingThreadCount = $('#selectThreadCount', form).val();
|
||||||
|
config.HardwareAccelerationType = $('#selectVideoDecoder', form).val();
|
||||||
|
|
||||||
|
ApiClient.updateNamedConfiguration("encoding", config).then(Dashboard.processServerConfigurationUpdateResult);
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
if ($('#selectVideoDecoder', form).val()) {
|
||||||
|
|
||||||
|
Dashboard.alert({
|
||||||
|
callback: onDecoderConfirmed,
|
||||||
|
title: Globalize.translate('TitleHardwareAcceleration'),
|
||||||
|
message: Globalize.translate('HardwareAccelerationWarning')
|
||||||
|
});
|
||||||
|
|
||||||
|
} else {
|
||||||
|
onDecoderConfirmed();
|
||||||
|
}
|
||||||
|
|
||||||
ApiClient.updateNamedConfiguration("encoding", config).then(Dashboard.processServerConfigurationUpdateResult);
|
|
||||||
});
|
|
||||||
|
|
||||||
// Disable default form submission
|
// Disable default form submission
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -955,5 +955,7 @@
|
||||||
"HeaderCinemaMode": "Cinema Mode",
|
"HeaderCinemaMode": "Cinema Mode",
|
||||||
"CinemaModeFeatureDescription": "Cinema Mode gives you the true cinema experience with trailers and custom intros before the feature.",
|
"CinemaModeFeatureDescription": "Cinema Mode gives you the true cinema experience with trailers and custom intros before the feature.",
|
||||||
"CoverArt": "Cover Art",
|
"CoverArt": "Cover Art",
|
||||||
"ButtonOff": "Off"
|
"ButtonOff": "Off",
|
||||||
|
"TitleHardwareAcceleration": "Hardware Acceleration",
|
||||||
|
"HardwareAccelerationWarning": "Enabling hardware acceleration may cause instability in some environments. If you have difficulty playing video after enabling this, you'll need to change the setting back to Auto."
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue