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

Add a hook before dash.js media player initialization #77

Merged
merged 4 commits into from
May 10, 2016

Conversation

gesinger
Copy link
Contributor

@gesinger gesinger commented May 9, 2016

No description provided.

@@ -48,6 +51,10 @@ var dashjs = require('dashjs');
Html5DashJS.useVideoJSDebug(this.mediaPlayer_);
}

if (Html5DashJS.beforeInitialize) {
Html5DashJS.beforeInitialize(player, this.mediaPlayer_);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Can beforeInitialize() replace useVideoJSDebug()?

Copy link
Contributor

Choose a reason for hiding this comment

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

Logging through videojs.log could then be used as an example.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Definitely, and good call. Will update.


```javascript
videojs.Html5DashJS.beforeInitialize = function(player, mediaPlayer) {
// Log MedaPlayer messages through video.js
Copy link
Contributor

Choose a reason for hiding this comment

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

s/Meda/Media

@forbesjo
Copy link
Contributor

@forbesjo forbesjo merged commit d7d0747 into videojs:master May 10, 2016
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.

2 participants