Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(FEC-11785): [Youbora] - update youbora options for drm system that is used by the player #624

Merged
merged 9 commits into from
Jan 20, 2022

Conversation

JonathanTGold
Copy link
Contributor

@JonathanTGold JonathanTGold commented Jan 13, 2022

Description of the Changes

expose the drm info on the player, (and as a result - on the engine and on the adatpter levels)

related prs:
kaltura/kaltura-player-js#515
kaltura/playkit-js-dash#175
kaltura/playkit-js-youbora#82

solves: FEC-11785

CheckLists

  • changes have been done against master branch, and PR does not conflict
  • new unit / functional tests have been added (whenever applicable)
  • test are passing in local environment
  • Travis tests are passing (or test results are not worse than on master branch :))
  • Docs have been updated

@JonathanTGold JonathanTGold removed the request for review from SivanA-Kaltura January 20, 2022 09:13
@@ -6,40 +6,41 @@ import {DrmScheme} from './drm-scheme';
const _logger = getLogger('FairPlay');

const FairPlay: IDrmProtocol = class FairPlay {
static scheme: string = DrmScheme.FAIRPLAY;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so need to add it in others as well (playready, widevine)
but why do we need it at all?

Copy link
Contributor Author

@JonathanTGold JonathanTGold Jan 20, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i need a way to fetch the selectd drm scheme in the native adatpter and the only indicatiaon is NativeAdapter._drmProtoco which seave she selected protocl

if (drmEntry) {
config.licenseUrl = drmEntry.licenseUrl;
config.certificate = drmEntry.certificate;
config.certificate = drmEntry.certificate || '';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this being changed? are we sure empty string is valid?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a type enforcement because the certificate filed on PKDrmDataObject type is optional
https://github.com/kaltura/playkit-js/blob/master/flow-typed/types/drm-data.js#L5
so we have to either fix like the above or remove the optional

@@ -1226,4 +1226,12 @@ export default class NativeAdapter extends BaseMediaSourceAdapter {
return 0;
}
}

getDrmInfo(): ?PKDrmDataObject {
if (NativeAdapter._drmProtocol && this._drmHandler) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why the previous way was wrong? (_sourceObj.drmData)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_sourceObj.drmData is array of configured drm data objects , but is not indicating the actual active drm (like _drmProtocol dose)

JonathanTGold added a commit to kaltura/playkit-js-dash that referenced this pull request Jan 20, 2022
@JonathanTGold JonathanTGold changed the title fix(FEC-11785): [Web][Youbora] - update youbora options for drm system that is used by the player fix(FEC-11785): [Youbora] - update youbora options for drm system that is used by the player Jan 20, 2022
@JonathanTGold JonathanTGold merged commit 8e0d032 into master Jan 20, 2022
@JonathanTGold JonathanTGold deleted the FEC-11785 branch January 20, 2022 15:12
JonathanTGold added a commit to kaltura/kaltura-player-js that referenced this pull request Jan 23, 2022
JonathanTGold added a commit to kaltura/playkit-js-youbora that referenced this pull request Jan 24, 2022
borhandarabi pushed a commit to TasvirChi/playchi-js-dash that referenced this pull request May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants