1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-14 11:23:30 +02:00
Commit Graph

3129 Commits

Author SHA1 Message Date
Gary Katsevman
954f3d979f
fix(player): video-js embed missing video-js class (#5194)
When having a video-js embed with a class attribute, as part of the
changes to remove old IE support (#5041), we overwrote our addition of
the video-js class when it was missing. Instead, we want to make sure
that we don't override the class names again since they are already set
up correctly.

Fixes videojs/http-streaming#100
2018-05-22 21:44:35 -04:00
Gary Katsevman
fcd7d0db13 7.0.2 2018-05-17 20:34:40 -04:00
Gary Katsevman
eaf151663f
chore(package): Upgrade @videojs/http-streaming to 1.0.2 (#5189)
Upgrade to 1.0.2 which contains babel build fixes.

Fixes #5186
2018-05-17 20:00:30 -04:00
Gary Katsevman
2a85bdd3bf 7.0.1 2018-05-17 15:19:15 -04:00
Brandon Casey
22fd327076
tests: do not throw on tech/player dispose (#5179) 2018-05-16 12:02:41 -04:00
Brandon Casey
59c6261cb5
fix: check for el before resetSourceSet (#5176) 2018-05-16 11:19:45 -04:00
Gary Katsevman
09ddb98dfb fix(CHANGELOG): full 7.0.0 changelog 2018-05-11 17:26:30 -04:00
Gary Katsevman
ad47b30f01 7.0.0 2018-05-11 17:21:17 -04:00
Gary Katsevman
bca31670cb chore(CHANGELOG): update CHANGELOG from 6.x 2018-05-11 17:20:26 -04:00
Owen Edwards
0aa827fac5 fix(time-display): restore hidden label text for screen readers. (#5157)
Restore hidden label text for screen readers that describes what the button control does.

Renames the Duration Time language item to Duration.

Deprecate controlText_ property.

Fix a typo in translations-needed.md.

Add a space in the hidden label for live-display, so that it doesn't run together with the visible "LIVE" indication.

Fixes #5135
2018-05-11 14:34:33 -04:00
Owen Edwards
dc0d2bc187 fix: Remove spaces from element IDs and ARIA attributes in the Captions Settings Dialog (#5153)
Fixes #4688 and #4884; supercedes 855adf3.
2018-05-11 14:31:28 -04:00
Owen Edwards
8a08957835 fix: Remove unnecessary ARIA role on the Control Bar. (#5154)
There doesn't seem to be any point in indicating the Control Bar as a separate object - it's all just part of the video player. Perhaps in the future, if there's content which isn't part of the control bar that needs to be clearly distinguishable from the control bar, then it would make sense, but right now you don't interact with the control bar and it doesn't convey any concept of grouping.

Fixes #5134
2018-05-11 14:31:28 -04:00
Owen Edwards
1c74e4fa0b fix: Reduce the multiple-announcement by screen readers of the new name of a button when its text label changes. (#5158)
Move the aria-live attribute to the control text element within buttons, rather than on the whole button, so it is not affected by the change of the title attribute, only by the change of the control text.

It seems like having aria-live on the button itself means that JAWS and NVDA announce the button both when the button text changes and when the title attribute changes. NVDA speaks the new label more times because it announces the button text as the label and the title as the description, so it says, for example, "pause button pause". JAWS doesn't appear to do this, so it doesn't repeat it as many times.

Partially addresses #5023
2018-05-11 14:31:28 -04:00
greenkeeper[bot]
de9c4da6c0 chore(package): update rollup-plugin-json to version 3.0.0 🚀 (#5169) 2018-05-11 14:27:32 -04:00
greenkeeper[bot]
54073815e5 chore(package): update unified to version 7.0.0 🚀 (#5166) 2018-05-11 14:12:48 -04:00
Monica Olinescu
ad1bb9db5e fix(seek-bar): ensure aria-valuenow attribute in seek-bar is not NaN (#5164)
Updated the getPercent function to return 0 instead of NaN. This is in accordance with the return value in the function's jsdocs.

Fixes #4960.
2018-05-11 14:09:15 -04:00
axten
d44682849e feat: add 'autoSetup' option (#5123)
this must be set globally with videojs.options.autoSetup = false in the same tick as videojs source is loaded to take effect

fixes #5094
2018-05-11 13:53:46 -04:00
Brandon Casey
c6617b24f7
feat: copy properties from <video-js> to the media el (#5039) 2018-05-09 15:55:29 -04:00
Brandon Casey
6147e5f7aa
fix: sourceset and browser behavior inconsistencies (#5054)
* We now trigger `sourceset` any time a `<source>` element is appended to a mediaEl with no source.
  * `load` should always fire a `sourceset`
  * `sourceset` should always be the absolute url.
2018-05-09 15:51:47 -04:00
Brandon Casey
ba2ae7868b
feat: update the players source cache on sourceset (#5040) 2018-05-08 17:46:46 -04:00
greenkeeper[bot]
83c30556aa chore(package): update load-grunt-tasks to version 4.0.0 🚀 (#5151) 2018-05-07 14:15:07 -04:00
Luan Roger Santos Santana
a00aa0d0d3 fix(lang): add missing strings in pt-BR (#5122)
Closes #5121.
2018-04-30 16:09:03 -04:00
greenkeeper[bot]
a6165d978e chore(package): update klaw-sync to version 4.0.0 🚀 (#5130) 2018-04-30 10:53:59 -04:00
Gary Katsevman
ea9a53cc60 7.0.0-rc.1 2018-04-20 16:40:33 -04:00
Gary Katsevman
4a34dd78b1
feat(modal): remove old IE box sizing (#5113) 2018-04-20 16:33:31 -04:00
Gary Katsevman
eeb13aa939
feat: upgrade video.js font to 3.0 for woff only font-icons (#5112) 2018-04-20 16:21:24 -04:00
greenkeeper[bot]
907c1f5c18 chore(package): update karma to version 2.0.2 🚀 (#5109) 2018-04-19 20:26:03 -04:00
Oshin Karamian
083a86c363 feat: split overrideNative method into separate methods (#5107)
Split overrideNative method into one for Audio and Video. Fixes issues with differing track support in IE11.
2018-04-19 20:11:11 -04:00
Gary Katsevman
97db94e8a6
chore: update rollup and uglify and the build process (#5096)
This is upgrades rollup and uglify to latest versions. It also rewrites the rollup config to take advantage of the newest features of rollup. Minification is also split up into a separate process, mostly to speed up the build. The total build type can go down from about 2.5 minutes to around 1 minute for all the generated javascript files.
2018-04-19 13:23:53 -04:00
axten
b10b9f960c fix: options.id is now applied correctly to the player dom element (#5090)
Fixes #5088
2018-04-19 13:22:15 -04:00
Oshin Karamian
22bbbc948c feat: add tech method to allow override native audio and video (#5074) 2018-04-19 13:16:01 -04:00
Gerard L. Petersen
1069e7f033 refactor: move seekbar event handler bindings into a function (#5097)
Makes it easier to extend the seekbar and change the default event handlers. If you extend the seekbar component you can choose to override setEventHandlers_ or keep it default. If you do override setEventHandlers_ and call super() in the constructor, you get your own event handlers + the functionality provided by Slider.
2018-04-19 12:00:33 -04:00
axten
d0b03a3a0f fix: wait till play event to listen for user activity (#5093)
There is no need to listen for user activity until a play is requested on the player and it just adds an extra timer for a player that hasn't started playing yet. Instead, just wait till the first `play` event.

Closes #5076.
2018-04-19 11:57:32 -04:00
Chuck Wilson
a2851fe4bd feat: Queue playback events when the playback rate is zero and we are seeking (#5024)
SourceHandlers that use MSE have a problem: if they push a segment into a SourceBuffer and then seek close to the end, playback will stall and/or there will be a massive downswitch in quality. The general approach to fixing this that was discussed on slack was by setting the playback rate of the player to zero, buffering all that was required, and then restoring the previous playback rate. In my implementation, I've done this in the source handler (see: videojs/videojs-contrib-hls#1374).

From the video.js perspective, it should ensure that the UI reflects the buffering status and that the player API behaves like you'd expect -- that is to say, that it will fire seeking immediately after a call to currentTime, and it will fire seeked, canplay, canplaythrough, and playing when everything is buffered.
2018-04-17 15:28:35 -04:00
Thijs Triemstra
62c1477615 docs(guides): add debugging section to index (#5100) 2018-04-17 14:48:04 -04:00
Thijs Triemstra
4399bdce5d docs(debugging): fix markup typo (#5086) 2018-04-11 11:39:33 -04:00
greenkeeper[bot]
66d7545538 fix(package): update videojs-vtt.js to version 0.14.1 🚀 (#5085) 2018-04-11 11:39:05 -04:00
Joe Forbes
c98912fd92 feat: build alternate browser scripts without VHS (#5077)
output alt/video.core.js and alt/video.core.novtt.js files
2018-04-10 14:31:18 -04:00
Gary Katsevman
c2b5ade109
chore(package): remove npm-run dev dep as it's no longer used (#5084) 2018-04-10 11:11:28 -04:00
Thijs Triemstra
bec7f67c4a docs(languages): Use valid JSON in translation example (#5080) 2018-04-10 11:11:04 -04:00
greenkeeper[bot]
12095fb050 fix(package): update @videojs/http-streaming to version 1.0.0 🚀 (#5083) 2018-04-10 10:35:16 -04:00
Mayde
064c1be2ba docs: fix some misspellings (#5082) 2018-04-10 10:34:20 -04:00
Mayde
7da77661fc docs: fix more misspellings (#5067) 2018-04-04 15:50:55 -04:00
Dragoș Străinu
167b7d874c docs: update readme to use the latest version of vjs (#5073)
Close #5066
2018-04-04 11:26:58 -04:00
Gary Katsevman
4e79a04579
chore(first-timers-bot): fix slack url in template 2018-04-03 10:47:36 -04:00
Gary Katsevman
9612c8f870
chore(first-timers-bot): correct the path to template file 2018-04-02 17:02:08 -04:00
Gary Katsevman
edb257c544
chore(first-timers-bot): quote repository option 2018-04-02 16:58:00 -04:00
Gary Katsevman
81de856b05
chore(first-timers-bot): add repo to bot options 2018-04-02 16:21:53 -04:00
Brandon Casey
9eb5de7ec7 fix: fire sourceset on initial source append (#5038)
In Chrome/Firefox/Safari appending a <source> element when the media element has no source, causes what we think of as a `sourceset`. These changes make our code actual fire that event.
2018-04-02 16:06:47 -04:00
Brandon Casey
fdcae1b469 fix: let the tech preload auto on its own (#4861)
This was found due to the work done in #4660. Basically we reload the video element twice on every source with preload set to auto. This can potentially cause the same data to be downloaded twice.
2018-04-02 14:30:22 -04:00