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 authored and joeyparrish committed Feb 17, 2024
1 parent bd2c4e6 commit daa224d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lib/util/platform.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,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 @@ -271,6 +272,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 daa224d

Please sign in to comment.