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

Initial Support for EME 5 July 2016 Spec and FairPlay #1

Merged
merged 17 commits into from
Aug 30, 2016
Merged

Conversation

gesinger
Copy link
Contributor

No description provided.

getContentId: (initData) => {
// return content ID
},
getConcatenatedInitData: (initData, certificate) => {
Copy link
Member

Choose a reason for hiding this comment

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

Not sure this function is necessary. Was this one of the ADAPT functions from Apple's FP example?

@@ -15,7 +33,19 @@ const defaults = {};
* @param {Object} [options={}]
*/
const onPlayerReady = (player, options) => {
player.addClass('vjs-contrib-eme');
if (!player.tech_.el_.techName_ === 'Html5') {
Copy link

Choose a reason for hiding this comment

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

this is always going to evaluate to false, should use !== instead

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nice catch!

Copy link
Member

Choose a reason for hiding this comment

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

please don't use the techName for anything

Copy link
Member

Choose a reason for hiding this comment

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

Instead, verify that player.$('.vjs-tech') is a video element.

@imbcmdth
Copy link
Member

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants