Skip to content

Commit

Permalink
Fix error 4012 RESTRICTIONS_CANNOT_BE_MET for webOS TV platform
Browse files Browse the repository at this point in the history
For webOS TV 2020 platform, like for Tizen, key IDs should not be
transformed to big-endian UUIDs, it causes `4012
RESTRICTIONS_CANNOT_BE_MET` error.

Issue #2512
  • Loading branch information
dong-heun committed Apr 24, 2020
1 parent db42d7e commit 7ffd011
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/media/drm_engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -1326,7 +1326,8 @@ shaka.media.DrmEngine = class {
if (this.currentDrmInfo_.keySystem == 'com.microsoft.playready' &&
keyId.byteLength == 16 &&
!shaka.util.Platform.isTizen() &&
!shaka.util.Platform.isVideoFutur()) {
!shaka.util.Platform.isVideoFutur() &&
!shaka.util.Platform.isWebOS()) {
// Read out some fields in little-endian:
const dataView = shaka.util.BufferUtils.toDataView(keyId);
const part0 = dataView.getUint32(0, /* LE= */ true);
Expand Down

0 comments on commit 7ffd011

Please sign in to comment.