Skip to content

Commit

Permalink
Allow disabling dovi transcode rule.
Browse files Browse the repository at this point in the history
  • Loading branch information
iwalton3 committed Apr 23, 2023
1 parent 884a280 commit 9639681
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
14 changes: 8 additions & 6 deletions native/nativeshell.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@ window.NativeShell = {
};

function getDeviceProfile() {
const CodecProfiles = [
{
const CodecProfiles = [];

if (jmpInfo.settings.video.force_transcode_dovi) {
CodecProfiles.push({
'Type': 'Video',
'Conditions': [
{
Expand All @@ -75,8 +77,8 @@ function getDeviceProfile() {
'Value': 'DOVI'
}
]
}
];
});
}

if (jmpInfo.settings.video.force_transcode_hdr) {
CodecProfiles.push({
Expand Down Expand Up @@ -362,13 +364,13 @@ async function showSettingsModal() {
title.className = "formDialogHeaderTitle";
title.textContent = "Jellyfin Media Player Settings";
modalHeader.appendChild(title);

const modalContents = document.createElement("div");
modalContents.className = "formDialogContent smoothScrollY";
modalContents.style.paddingTop = "2em";
modalContents.style.marginBottom = "6.2em";
modalContainer2.appendChild(modalContents);

const settingUpdateHandlers = {};
for (const section of Object.keys(jmpInfo.settingsDescriptions)) {
const group = document.createElement("fieldset");
Expand Down
4 changes: 4 additions & 0 deletions resources/settings/settings_description.json
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,10 @@
"value": "always_force_transcode",
"default": false
},
{
"value": "force_transcode_dovi",
"default": true
},
{
"value": "sync_mode",
"default": "audio",
Expand Down

0 comments on commit 9639681

Please sign in to comment.