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() {
|
||||
Dashboard.showLoadingMsg();
|
||||
|
||||
var form = this;
|
||||
|
||||
var onDecoderConfirmed = function() {
|
||||
Dashboard.showLoadingMsg();
|
||||
|
||||
ApiClient.getNamedConfiguration("encoding").then(function (config) {
|
||||
|
||||
config.EnableDebugLogging = $('#chkEnableDebugEncodingLogging', form).checked();
|
||||
|
@ -36,6 +38,20 @@
|
|||
|
||||
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
|
||||
return false;
|
||||
|
|
|
@ -955,5 +955,7 @@
|
|||
"HeaderCinemaMode": "Cinema Mode",
|
||||
"CinemaModeFeatureDescription": "Cinema Mode gives you the true cinema experience with trailers and custom intros before the feature.",
|
||||
"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