Commit Graph

59 Commits

Author SHA1 Message Date
Matt Luedke
a3753ddb65 fix: Update menu when sources are set after player is ready (#47)
Fixes #47
2019-11-20 11:55:48 -05:00
Jeremy Thomerson
12bd19a69e
Merge pull request #41 from gauda/patch-1
Accept 'selected' as value for source.selected
2019-11-12 12:23:59 -05:00
gauda
8702f4fe4a Accept 'selected' as value for source.selected
This fixes #39.
2019-11-12 12:11:37 -05:00
Jeremy Thomerson
7fdacdcb32
Merge pull request #35 from DaWe35/patch-1
fix: include CSS in README example
2019-08-28 14:35:43 -04:00
DaWe
d5bc12a2f2 fix: include CSS in README example 2019-08-28 14:21:40 -04:00
Jeremy Thomerson
e84e720adf Version bump: 1.2.2 2019-06-13 14:08:31 -05:00
Jeremy Thomerson
b69792f8d4
Merge pull request #33 from seedboxtech/master
fix: Regression bug with the initial source selection
2019-06-13 14:07:42 -05:00
Maxime Carrière
82fc7a155c fix: Regression bug with the initial source selection
The if (item.source.src !== src) had to be removed for the initial selection to be applied
2019-06-13 09:48:08 -04:00
Jeremy Thomerson
d3a5e81c38 Version bump: 1.2.1 2019-06-11 09:56:41 -05:00
Jeremy Thomerson
8938d5682b
Merge pull request #32 from yokuze/fix_dist_js_path_31
Fix JS dist file path #31
2019-06-11 08:54:44 -05:00
Matt Luedke
3ce054324b build: Add clean target to Gruntfile (#31) 2019-06-10 11:01:32 -04:00
Matt Luedke
96255a1387 fix: Revert JS dist file path to dist/js (#31)
In commit 31a305d, we moved this repo to the `@silvermine` org and
updated the `name` field in package.json. The Gruntfile uses the name of
the package as the name of the JS output file. Therefore, when the
package name field changed, so did the JS file output name and path. We
no longer depend on the name field in package.json for the name of the
JS output file.
2019-06-10 11:01:13 -04:00
Jeremy Thomerson
031b7be692
Merge pull request #30 from seedboxtech/master
fix: Change the way we update the quality selector item to solve an issues with VideoJS 7...
2019-06-07 11:20:01 -04:00
Maxime Carrière
82bce6bf3d build: Update dependencies and fix deprecated messages
- All the dev dependencies were updates in package.json.
- prepublish was replaced by prepare to fix "warn prepublish-on-install As of npm@5, `prepublish` scripts are deprecated" & "warn prepublish-on-install Use `prepare` for build steps and `prepublishOnly` for upload-only."
- node-sass was added in package.json and a require('node-sass') was added to Gruntfile.js since the new version of grunt-sass requires it (see: https://github.com/sindresorhus/grunt-sass/releases/tag/v3.0.0)
2019-06-05 15:17:32 -04:00
Maxime Carrière
9fed208707 refactor: Update VideoJS version to the latest one in the demo file 2019-06-05 15:17:32 -04:00
Maxime Carrière
1f8d2b22b4 fix: Change quality selector update for items to solve VideoJS7 issue
Since VideoJS 7, once the player has started, any subsequent calls to the update() function on MenuOption will prevent the playback menu from fading out. The workaround I found was to remove the call to update() when a new quality is selected. The selection behavior was already handled by the MenuOption handleClick function so I just had to remove the previously selected option.
2019-06-05 15:17:28 -04:00
Jeremy Thomerson
1d7dbdcdbb
Merge pull request #27 from yokuze/increase_videojs_peer_dep_version_26
Update peerDependencies to include Video.js 7 and future versions
2019-05-30 13:40:51 -04:00
Matt Luedke
21900e8845 Update demo page to use Video.js 7.4.1 2018-12-26 11:31:51 -05:00
Matt Luedke
fac0f31cba Fixes #26 Update peerDependencies to include Video.js 7 2018-12-26 11:31:34 -05:00
Ethan Smith
57ab38e911
Version bump: 1.2.0 2018-12-24 09:15:26 -05:00
Jeremy Thomerson
865112814a
Merge pull request #25 from silvermine/standardize_npm
Standardize npm
2018-12-21 22:27:01 -05:00
Ethan Smith
999f5ecd2c
Upgrade sass-lint config to use new @silvermine org 2018-12-21 15:04:33 -05:00
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