Commit Graph

37 Commits

Author SHA1 Message Date
Ethan Smith 5cd2703d2b
Upgrade eslint config to use new @silvermine org 2018-12-21 15:03:51 -05:00
Ethan Smith 0dec8acaf5
Fix vulnerabilities using 'npm audit' 2018-12-21 15:02:58 -05:00
Ethan Smith 4cf7f60985
Adjust Travis CI node versions 2018-12-21 15:01:12 -05:00
Ethan Smith d81072fcc7
Add package-lock.json 2018-12-21 15:00:36 -05:00
Ethan Smith 31a305dcac
Rename package to include @silvermine org prefix 2018-12-21 14:58:12 -05:00
Jeremy Thomerson 13535a8ca6 Version bump: 1.1.2 2018-01-09 19:55:37 -05:00
Ethan Smith 94a9648b03
Merge pull request #17 from yokuze/fix_no_preload_no_resume_play_16
Refs #16 Fix video does not resume playing after quality change
2018-01-09 16:20:37 -05:00
Matt Luedke 73ada26864 Update CHANGELOG for 1.1.2 2018-01-09 16:03:32 -05:00
Matt Luedke 8feeafbf00 Refs #16 Fix video does not resume playing after quality change
When the HTML5 preload attribute is set to 'none' or when using Safari (even when the
preload attribute is not 'none'), the video does not resume playing after the quality is
changed using the quality selector menu. The quality selector plugin was listening for the
'loadeddata' event in order to know when to resume playback, but the 'loadeddata' event
does not fire when the preload attribute is set to 'none', and Safari does not fetch
enough data to emit a 'loadeddata' event.
2018-01-09 15:59:36 -05:00
Jeremy Thomerson 1f1f78b267 Version bump: 1.1.1 2017-12-01 20:32:53 -05:00
Jeremy Thomerson cfbe42435c Update CHANGELOG for 1.1.1 2017-12-01 20:32:27 -05:00
Jeremy Thomerson 931d8a4607 Refs #12: Declare underscore as a dependency like it should be 2017-12-01 20:31:11 -05:00
Jeremy Thomerson d8d70f6340 Fix typo in changelog 2017-12-01 20:19:10 -05:00
Jeremy Thomerson d796da1a93 Version bump: 1.1.0 (SEE CHANGELOG.md)
Before upgrading to 1.1.0 see [CHANGELOG.md].
2017-12-01 20:15:23 -05:00
Jeremy Thomerson 47bd85f836 Add CHANGELOG 2017-12-01 20:14:50 -05:00
Jeremy Thomerson 27a32a2bda
Merge pull request #14 from yokuze/support_quality_selector_buttons_outside_control_bar_13
Refs #13 Support QualitySelector buttons anywhere in the component hierarchy
2017-12-01 19:58:17 -05:00
Matt Luedke a682125480 Refs #13 Support quality selector buttons anywhere in the player's component hierarchy
Previously, the SourceInterceptor made the assumption that the QualitySelector button component
is a direct child of the controlBar component. That may not always be true. Video.js allows you
to specify a nested hierarchy of components, and so when plugin users choose to move the
QualitySelector button elsewhere, the plugin does not work properly.

This commit introduces a new event type called QUALITY_REQUESTED to signal when the user is
requesting a quality change. The old QUALITY_SELECTED event is now used to denote when the
plugin actually uses a new quality source. This dichotomy eliminates the need for the
SourceInterceptor to have a reference to the QualitySelector button component.
2017-12-01 19:54:19 -05:00
Jeremy Thomerson ec9e06196f Version bump: 1.0.3 2017-11-22 10:41:02 -05:00
Jeremy Thomerson cdea57c3a2
Merge pull request #11 from silvermine/adjust_unselected_source_state
Use 'selected = false', over '_.omit' to deselect a source
2017-11-20 15:29:44 -05:00
Ethan Smith 7da6fd37df Use `selected = false`, over `_.omit` to deselect a source
From a basic functionality standpoint, this accomplishes the same purpose as
the previous implementation using `_.omit`. However, rather than removing the
`selected` attribute from the sources, this will keep the structure the same by
only altering the value of the source.

If your usage of this plugin requires a stable source format, e.g. for
comparing sources to see if the source changed, please provide the `selected`
attribute when programmatically setting the player source. At this time, we
don't have a simple way to standardize the `selected` attribute on initial
source load. (i.e. It's up to the programmer to set the initial format on the
sources before giving them to the player)
2017-11-20 15:11:25 -05:00
Jeremy Thomerson 25c33b0ac1 Merge pull request #8 from yokuze/add_button_control_text_7
Fixes #7 Add localized control text to quality selector menu button
2017-10-25 15:19:30 -04:00
Matt Luedke cc7f670cce Fixes #7 Add localized control text to quality selector menu button 2017-10-25 11:49:27 -04:00
Ethan Smith 2f64bfbced Version bump: 1.0.1 2017-10-19 08:19:10 -04:00
Ethan Smith 48f35c70dc Merge pull request #6 from silvermine/fix_5_exponential_selected_source
Fixes #5 Only bind to QUALITY_SELECTED once
2017-10-19 08:08:05 -04:00
Ethan Smith 9dd9ca108b Fixes #5 Only bind to QUALITY_SELECTED once
As things turn out, the middleware constructor is called every time `setSource`
is called [1]. This was causing a new listener to get bound to
`QUALITY_SELECTED` on each change by the quality selector. :( This change makes
it so the listener is only bound on the initial creation of the player.

[1] 03529163b6/src/js/tech/middleware.js (L66)
2017-10-18 14:27:45 -04:00
Jeremy Thomerson dedaf8e9be Version bump: 1.0.0 2017-08-10 11:43:27 -04:00
Jeremy Thomerson d8bb16c657 Merge pull request #3 from silvermine/initial_docs
Add initial plugin docs
2017-08-10 11:41:32 -04:00
Ethan Smith d79186c477 Add initial plugin docs 2017-08-10 11:32:22 -04:00
Jeremy Thomerson f2419615ed Merge pull request #2 from silvermine/add_videojs_peerdep
Add peer dependency for videojs
2017-08-04 15:09:08 -04:00
Ethan Smith d7e6871d8c Add peer dependency for videojs 2017-08-04 14:53:09 -04:00
Jeremy Thomerson d722f2c1b9 Merge pull request #1 from silvermine/initial_implementation
Initial implementation
2017-08-04 14:30:29 -04:00
Ethan Smith cc937f4f49 Add 'grunt develop' 2017-08-04 14:23:15 -04:00
Ethan Smith 449a0a54d7 Ensure the correct resolution is selected on player 'ready' 2017-08-04 10:45:15 -04:00
Ethan Smith 26da31607d PR Modification: Use 'selected' instead of 'isDefault' 2017-08-04 09:48:58 -04:00
Ethan Smith b4a9aa73d0 Highlight correct resolution in the UI when the source is changed programmatically 2017-08-03 15:21:24 -04:00
Ethan Smith 156e5923c7 Initial implementation 2017-08-03 09:21:16 -04:00
Jeremy Thomerson f261cc04a2 Initial commit 2017-06-20 20:43:49 -04:00