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,10 +20,12 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function onSubmit() {
|
function onSubmit() {
|
||||||
Dashboard.showLoadingMsg();
|
|
||||||
|
|
||||||
var form = this;
|
var form = this;
|
||||||
|
|
||||||
|
var onDecoderConfirmed = function() {
|
||||||
|
Dashboard.showLoadingMsg();
|
||||||
|
|
||||||
ApiClient.getNamedConfiguration("encoding").then(function (config) {
|
ApiClient.getNamedConfiguration("encoding").then(function (config) {
|
||||||
|
|
||||||
config.EnableDebugLogging = $('#chkEnableDebugEncodingLogging', form).checked();
|
config.EnableDebugLogging = $('#chkEnableDebugEncodingLogging', form).checked();
|
||||||
|
@ -36,6 +38,20 @@
|
||||||
|
|
||||||
ApiClient.updateNamedConfiguration("encoding", config).then(Dashboard.processServerConfigurationUpdateResult);
|
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();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// 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