Skip to content

Commit

Permalink
fix: ENCRYPTED CONTENT WITHOUT DRM INFO on comcast X1 due to safari b…
Browse files Browse the repository at this point in the history
…locklist (#6034)
  • Loading branch information
Vasanthavanan-Devarajan committed Jan 8, 2024
1 parent 7bda349 commit 3bf0664
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lib/util/platform.js
Expand Up @@ -237,7 +237,8 @@ shaka.util.Platform = class {
!shaka.util.Platform.isVirginMedia() &&
!shaka.util.Platform.isOrange() &&
!shaka.util.Platform.isPS4() &&
!shaka.util.Platform.isAmazonFireTV();
!shaka.util.Platform.isAmazonFireTV() &&
!shaka.util.Platform.isWPE();
}

/**
Expand Down Expand Up @@ -292,6 +293,14 @@ shaka.util.Platform = class {
return shaka.util.Platform.userAgentContains_('AFT');
}

/**
* Check if the current platform is Comcast X1.
* @return {boolean}
*/
static isWPE() {
return shaka.util.Platform.userAgentContains_('WPE');
}

/**
* Returns a major version number for Safari, or Safari-based iOS browsers.
*
Expand Down

0 comments on commit 3bf0664

Please sign in to comment.