-
Notifications
You must be signed in to change notification settings - Fork 95
Change plugin logic to work with VTT files #27
base: master
Are you sure you want to change the base?
Conversation
dirkjanm
commented
Mar 20, 2015
- 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; |
There was a problem hiding this comment.
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!
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 |
@dmlap I think this should take care of them all. |
@dmlap Any update on this? |
? |
just reminding @dmlap that this one is still open |
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! |
External Source thumbnail from other domain
is it going to be merged or what? @dmlap |