Browse Source

Allow disabling dovi transcode rule.

Ian Walton 1 year ago
parent
commit
9639681892
2 changed files with 12 additions and 6 deletions
  1. 8 6
      native/nativeshell.js
  2. 4 0
      resources/settings/settings_description.json

+ 8 - 6
native/nativeshell.js

@@ -65,8 +65,10 @@ window.NativeShell = {
 };
 
 function getDeviceProfile() {
-    const CodecProfiles = [
-        {
+    const CodecProfiles = [];
+
+    if (jmpInfo.settings.video.force_transcode_dovi) {
+        CodecProfiles.push({
             'Type': 'Video',
             'Conditions': [
                 {
@@ -75,8 +77,8 @@ function getDeviceProfile() {
                     'Value': 'DOVI'
                 }
             ]
-        }
-    ];
+        });
+    }
 
     if (jmpInfo.settings.video.force_transcode_hdr) {
         CodecProfiles.push({
@@ -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");

+ 4 - 0
resources/settings/settings_description.json

@@ -302,6 +302,10 @@
         "value": "always_force_transcode",
         "default": false
       },
+      {
+        "value": "force_transcode_dovi",
+        "default": true
+      },
       {
         "value": "sync_mode",
         "default": "audio",