Skip to content

Commit

Permalink
Fix PlayReady playback on Tizen.
Browse files Browse the repository at this point in the history
Fixes #1712

Change-Id: I22d0d0673b11970372e9bd23accc8bf1f8c65f91
  • Loading branch information
TheModMaker committed Nov 30, 2018
1 parent 7991b2a commit 8805b56
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 @@ -1307,8 +1307,9 @@ shaka.media.DrmEngine.prototype.onKeyStatusesChange_ = function(event) {

// NOTE that we skip this if byteLength != 16. This is used for the IE11
// and Edge 12 EME polyfill, which uses single-byte dummy key IDs.
// However, unlike Edge and Chromecast, Tizen doesn't have this problem.
if (this.currentDrmInfo_.keySystem == 'com.microsoft.playready' &&
keyId.byteLength == 16) {
keyId.byteLength == 16 && !/Tizen/.exec(navigator.userAgent)) {
// Read out some fields in little-endian:
let dataView = new DataView(keyId);
let part0 = dataView.getUint32(0, true /* LE */);
Expand Down

0 comments on commit 8805b56

Please sign in to comment.