Browse Source

Block Dolby Vision from playing in profile. (not fully working due to upstream bug)

Ian Walton 2 years ago
parent
commit
dc8f16c58d
1 changed files with 12 additions and 1 deletions
  1. 12 1
      native/nativeshell.js

+ 12 - 1
native/nativeshell.js

@@ -84,7 +84,18 @@ function getDeviceProfile() {
         'DirectPlayProfiles': [{'Type': 'Video'}, {'Type': 'Audio'}, {'Type': 'Photo'}],
         'ResponseProfiles': [],
         'ContainerProfiles': [],
-        'CodecProfiles': [],
+        'CodecProfiles': [
+            {
+                'Type': 'Video',
+                'Conditions': [
+                    {
+                        'Condition': 'NotEquals',
+                        'Property': 'VideoRangeType',
+                        'Value': 'DOVI'
+                    }
+                ]
+            }
+        ],
         'SubtitleProfiles': [
             {'Format': 'srt', 'Method': 'External'},
             {'Format': 'srt', 'Method': 'Embed'},