Skip to content
This repository has been archived by the owner on Dec 17, 2018. It is now read-only.

Change plugin logic to work with VTT files #27

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

dirkjanm
Copy link

  • Changed plugin to work with VTT files as a metadata track on the player as discussed in Sponsor WebVTT support #22
  • Added example VTT file and image
  • Support for mediafragments in VTT files
  • Width/height fallback in case the width/height is not specified in the VTT file
  • Updated documentation
  • Bumped version

halfWidth = width / 2;

// make sure that the thumbnail doesn't fall off the right side of the left side of the player
if ( (left + halfWidth) > right ) {
left -= (left + halfWidth) - right;
left = right - width;
Copy link
Contributor

Choose a reason for hiding this comment

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

Both of the edge cases are much cleaner. Nice!

@dmlap
Copy link
Contributor

dmlap commented Mar 25, 2015

This looks really great! I only have one comment, and it's definitely a nitpick. In the rest of the Brightcove video.js plugins, we try to be consistent about putting whitespace around operators and including the optional curly-braces for single-line ifs. Would you mind adding those?

@dirkjanm
Copy link
Author

@dmlap I think this should take care of them all.

@dirkjanm
Copy link
Author

@dmlap Any update on this?

@Iragne
Copy link

Iragne commented Jun 8, 2015

?

@dirkjanm
Copy link
Author

dirkjanm commented Sep 7, 2015

just reminding @dmlap that this one is still open

@u0x01
Copy link

u0x01 commented Jan 2, 2016

Seems this is not working for me with videojs v5.4.6, I'm not sure what problem happened, can you fix it and update your demo work? thanks lot!

@aolko
Copy link

aolko commented Sep 12, 2018

is it going to be merged or what? @dmlap

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

Successfully merging this pull request may close these issues.

6 participants