Skip to content

Commit

Permalink
Fix HDR10 and Dolby Vision support for Vidaa OS
Browse files Browse the repository at this point in the history
  • Loading branch information
abdulmueid committed Oct 19, 2024
1 parent ddba313 commit c08b0d3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/scripts/browserDeviceProfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ function supportsVc1(videoTestElement) {

function supportsHdr10(options) {
return options.supportsHdr10 ?? (false // eslint-disable-line sonarjs/no-redundant-boolean
|| browser.vidaa
|| browser.tizen
|| browser.web0s
|| browser.safari && ((browser.iOS && browser.iOSVersion >= 11) || browser.osx)
Expand All @@ -253,12 +254,12 @@ function supportsHlg(options) {

function supportsDolbyVision(options) {
return options.supportsDolbyVision ?? (false // eslint-disable-line sonarjs/no-redundant-boolean
|| browser.safari && ((browser.iOS && browser.iOSVersion >= 13) || browser.osx)
|| browser.safari && ((browser.iOS && browser.iOSVersion >= 13) || browser.osx || browser.vidaa)
);
}

function supportedDolbyVisionProfilesHevc(videoTestElement) {
if (browser.xboxOne) return [5, 8];
if (browser.xboxOne || browser.vidaa) return [5, 8];

const supportedProfiles = [];
// Profiles 5/8 4k@24fps
Expand Down

0 comments on commit c08b0d3

Please sign in to comment.