Skip to content

Commit

Permalink
fix(FEC-11785): [Web][Youbora] - update youbora options for drm syste…
Browse files Browse the repository at this point in the history
…m that is used by the player (#175)

expose the drm info

releted pr:
kaltura/kaltura-player-js#515
kaltura/playkit-js#624
kaltura/playkit-js-youbora#82

solves: FEC-11785
  • Loading branch information
JonathanTGold authored Jan 20, 2022
1 parent 5771917 commit 0923634
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/dash-adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -1364,4 +1364,19 @@ export default class DashAdapter extends BaseMediaSourceAdapter {
targetBufferVal = Math.min(targetBufferVal, this._shaka.getConfiguration().streaming.bufferingGoal + this._shaka.getStats().maxSegmentDuration);
return targetBufferVal;
}

getDrmInfo(): ?PKDrmDataObject {
const drmInfo = this._shaka.drmInfo();
if (!drmInfo) {
return null;
} else {
const {licenseServerUri, keySystem, serverCertificateUri} = drmInfo;
const drmDataObject: PKDrmDataObject = {
licenseUrl: licenseServerUri,
scheme: keySystem
};
if (serverCertificateUri) drmDataObject.certificate = serverCertificateUri;
return drmDataObject;
}
}
}

0 comments on commit 0923634

Please sign in to comment.