1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-04 10:34:51 +02:00
Commit Graph

3097 Commits

Author SHA1 Message Date
Gary Katsevman
5d689041fb 6.7.4 2018-03-05 17:32:08 -05:00
ookami125
7facc44893 fix(text-tracks): keep showing captions even if the text track settings were disabled (#4974)
If a user disabled the text track setting component, trying to play emulated captions would crash. Add a null check before applying the text track settings.

Fixes #4964.
2018-03-05 17:11:51 -05:00
Gary Katsevman
9c4ded8899
fix(events): triggering with an object had incorrect target property on event object (#4993)
Currently, trigger an event with an object rather than a string will have the document as a target on the event object rather than the element.
2018-03-05 16:42:06 -05:00
Pat O'Neill
5b5cc50608 fix: Fix an issue where disabling the progress control would throw an error. (#4986) 2018-03-05 14:44:34 -05:00
greenkeeper[bot]
270a23196a chore(package): update grunt-accessibility to version 6.0.0 🚀 (#4968)
* chore(package): update grunt-accessibility to version 6.0.0

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile
2018-02-28 11:15:25 -05:00
greenkeeper[bot]
2d64977736 fix(package): update videojs-vtt.js to version 0.12.6 (#4954) 2018-02-28 11:14:00 -05:00
Gary Katsevman
76bff32f7b 6.7.3 2018-02-22 17:30:40 -05:00
Pat O'Neill
50831e3381 fix: Add alternate text to the loading spinner. (#4916)
This is a first in a few changes related to #4902. This just adds a text alternative to the loading spinner. In future PRs, we would make it alert to screen readers and potentially have a generic alerting mechanism.
2018-02-22 16:19:35 -05:00
Gary Katsevman
0ace2a5449
fix: regression for getting a player via the tech's id (#4969)
As part of https://github.com/videojs/video.js/pull/4836, this piece of code was removed because it was thought it was not needed as everything else covers it. Turns out it's needed.

f6eaa5e2ae/src/js/video.js (L103-L107)
2018-02-22 14:22:12 -05:00
greenkeeper[bot]
aa5f3bfce0 chore: re-enable Greenkeeper 🌴 and make it update package-lock.json (#4967) 2018-02-20 15:02:00 -05:00
Gary Katsevman
f5c737327b
chore: add first-timers-issue-template.md (#4958) 2018-02-15 13:42:38 -05:00
jessicaweberdev
763a7f5762 docs(plugins guide): changed paused to pause where appropriate (#4957)
Fixes #4951
2018-02-14 13:43:55 -05:00
Ivan Čerjan
de9069fc5d fix(text-track-settings): fix track settings font class name (#4956)
Changed  className: 'vjs-track-settings-font">' to className: 'vjs-track-settings-font'

Fixes #4950, fixes #4879.
2018-02-14 13:41:15 -05:00
Zhulduz
7c30f97ef7 docs(react): Update docs for react tutorial (#4935) (#4952)
Using the default example, when disposing the player, a React DOMException was thrown because Video.js removed an element managed by React.
A simple solution is to wrap the player div in a separate div.

Fixes #4935.
2018-02-13 13:55:09 -05:00
Gary Katsevman
6a66e80c47 6.7.2 2018-02-13 10:43:54 -05:00
ldayananda
a434551555 docs(middleware): update the middleware guide with setTech and other corrections (#4926) 2018-02-12 18:55:08 -05:00
Ku Lok Sun
a1cef809b3 fix(progress control): Fix the video continuing to play when the user scrubs outside of seekbar (#4918)
Scrubbing inside the seekbar paused the player properly but scrubbing inside the progress control outside the seekbar, the player never paused. This meant that when you scrubbed, if you kept the mouse down but lingered for a moment, the player would continue playing until the mouse moved again.

This fixes it so that the seekbar mousedown and mouseup handlers are called when the progress control mousedown and mouseup handlers are triggered.
2018-02-12 17:34:44 -05:00
Gary Katsevman
29a8ee1d60
fix: cache middleware instances per player (#4939)
Middleware factories currently get run each time a source is set. Because middleware are assocated with a player, the factories should only run once per player.

This PR fixes it so that we associate a middleware instance with a middleware factory per player.
Each time a player is disposed, we will clear the cache of the middleware instances for that player.

Fixes #4677.
2018-02-12 17:30:27 -05:00
Alex Barstow
6189baac3c fix: Only select TextTrackMenuItem if unselected (#4920)
These changes address an issue where screen readers may repeatedly and redundantly read TextTrackMenuItem's control text on every texttrackchange event in some browsers.

The source of the problem is in the handleTracksChange() method of TextTrackMenuItem and its subclass OffTextTrackMenuItem, in which this.selected(true/false) gets called even if the selected state has not changed since its previous invocation.
2018-02-09 14:54:47 -05:00
Ku Lok Sun
4afabc2b0e docs: Fix the advance plugin example in documentation (#4923) 2018-02-09 14:16:18 -05:00
Gary Katsevman
7145a9cf1d 6.7.1 2018-01-31 11:19:12 -05:00
Gary Katsevman
7670db63cd
fix(middleware): do a null check in mediator methods (#4913) 2018-01-31 10:46:58 -05:00
Gary Katsevman
4404e071ba 6.7.0 2018-01-30 13:54:57 -05:00
Gary Katsevman
9ceb4e4fe0
feat: playerresize event in all cases (#4864)
Use ResizeObserver when available for better and more performant resizing information, otherwise, fall back to a throttled resize event on an iframe that's the size of the player.
Allows a video.js user to disable this by setting resizeManager: false as an option since the component will not be initialized.

Add a debounce util.

This reverts #4800 (e0ed0b5) because we end up getting two playerresize events with the dimension methods now.
2018-01-30 13:26:21 -05:00
Pat O'Neill
6a0057716b feat: Add videojs.getAllPlayers to get an array of players. (#4842) 2018-01-30 11:43:47 -05:00
ldayananda
bf3eb45a37 feat: add mediator middleware type for play() (#4868)
This will allow middleware to interact with calls to play() from the tech. This will require a method of indicating to middleware previously run that a middleware down the chain has terminated or stopped execution.

* Adds middleware mediator method that runs middleware from the player to the tech and a second time back up to the player. This category was created because play is both a setter(changes the playback state) and a getter(gets a native play promise if available). This also has the ability to tell whether a middleware has terminated before reaching the tech.
* Adds a middleware.TERMINATOR sentinel value that is available on the videojs object
* Adds play to the allowedMediators
* Adds paused to the allowedGetters
* Adds a sandbox example of a play mediator middleware
2018-01-30 11:30:42 -05:00
ldayananda
a34597123c docs: Update COLLABORATOR_GUIDE.md and CONTRIBUTING.md to include label meanings (#4874)
Add label meanings for collaborators to know when to put labels and to let contributors know what labels mean when they are applied.
2018-01-30 11:21:48 -05:00
mister-ben
f03ac5e9b5 fix: do not patch canplaytype on android chrome (#4885)
Patching canPlayType on Android shouldn't be necessary on Android Chrome since it reports its ability to player HLS correctly.
2018-01-30 11:20:33 -05:00
Pat O'Neill
a15e616a45 feat: Add getPlayer method to Video.js. (#4836) 2018-01-30 11:19:06 -05:00
Gary Katsevman
dcab42e3d0
chore(package): update dependencies (#4908) 2018-01-30 11:18:04 -05:00
Gary Katsevman
8b54737646
chore: generate a test example on netlify for PRs (#4912) 2018-01-30 11:17:41 -05:00
Gary Katsevman
41fd5cb4e6
test: add project and build names to browserstack (#4903) 2018-01-26 12:24:26 -05:00
Gary Katsevman
f6eaa5e2ae 6.6.3 2018-01-24 14:29:48 -05:00
Gary Katsevman
dc1813c7dc ignore: update package-lock.json 2018-01-24 14:29:38 -05:00
mrdtron
e628ccd555 fix: hide volume slider when the slider is not active and mute toggle button is in focus (#4866) 2018-01-24 13:51:44 -05:00
Gary Katsevman
ddfaf14b00
chore(docs site): use git commit message for netlify build (#4900) 2018-01-24 13:47:07 -05:00
ldayananda
673c231684
docs: add middleware guide (#4877)
* adding guide content

* fix link

* CR comments

* fixing a typo

* fixing example
2018-01-23 15:36:49 -05:00
Gary Katsevman
87cbd239f4
chore(package): update shelljs to version 0.8.1 (#4899)
Closes #4875
2018-01-23 15:02:08 -05:00
greenkeeper[bot]
2c5947649b chore(package): update remark-parse to version 5.0.0 (#4892) 2018-01-23 15:00:55 -05:00
greenkeeper[bot]
5b76bb16f9 chore(package): update remark-stringify to version 5.0.0 (#4893) 2018-01-23 14:59:17 -05:00
greenkeeper[bot]
aee4e6b343 chore(package): update remark-cli to version 5.0.0 (#4894) 2018-01-23 14:58:59 -05:00
Thijs Triemstra
83880b0f0b docs: fix some typos (#4880) 2018-01-22 17:07:05 -05:00
Gary Katsevman
f22cb50574 6.6.2 2018-01-05 17:04:12 -05:00
Gary Katsevman
8f450ea0b4
chore(netlify): add some debug info in the netlify command (#4862) 2018-01-05 16:42:11 -05:00
Calvin Correli
baf0982515 fix: silence unhandled promise rejection in Safari when seeking (#4860)
Fix #4853.
2018-01-05 15:29:34 -05:00
Chuong
7c393e5c89 docs: wait for text track load with addRemoteTextTrack (#4855) 2018-01-05 14:45:48 -05:00
Rishabh Singh
98212c4af0 fix: progress bar time tooltips bug by adding word-break css reset (#4859)
Fixes #2964.
2018-01-05 14:44:40 -05:00
greenkeeper[bot]
22fcd035bb chore(package): update karma to version 2.0.0 (#4834) 2018-01-05 14:14:42 -05:00
Gary Katsevman
7272a8a5c0 6.6.1 2018-01-04 11:59:59 -05:00
Gary Katsevman
df0d705cd8
chore(lang): update translations needed doc (#4858) 2018-01-03 17:21:58 -05:00