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

3169 Commits

Author SHA1 Message Date
Gary Katsevman
361dc76e12
revert: "fix: Allow evented objects, such as components and plugins, to listen to the window object in addition to DOM objects. (#5255)" (#5301)
This reverts commit 7fd29b4f18.

With this change, playing back HLS content via VHS caused an infinite
event loop to be printed out. See issue #5281
2018-07-06 13:51:22 -04:00
Gary Katsevman
8257a372e1
chore(package): update grunt-zip to version 0.18.1 🚀 (#5300)
Closes #5297
2018-07-05 17:23:31 -04:00
Gary Katsevman
d7f27b7112
perf: setTimeout and requestAnimationFrame memory leak (#5294)
Our setTimeout and requestAnimationFrame methods added dispose handlers so that they get cancelled if the component is disposed before they get a chance to run. However, we were only clearing out these dispose handlers if we cleared the timeout or the rAF manually. Instead make sure that we remove the dispose handler when it is no longer needed.

Fixes #5199.
2018-07-05 16:29:03 -04:00
DoomTay
444b271afe feat(fullscreen-toggle): disable fs button if fullcreen is unavailable (#5296)
Fixes #5290.
2018-07-05 16:28:37 -04:00
Yamamori Akihiro
c9d1e8a3d1 fix: autoplay throws 'undefined promise' error on some browsers. (#5283)
If the source is not loaded, `player.play();` returns `undefined` on Firefox and Edge, which causes exception.
With this fix, player will not make exception and the fallback (`player.play()` execution after loading video) will be enabled.
2018-07-03 12:06:24 -04:00
Edoardo
5d75bb694b chore(package): add module field to package.json (#5293)
Closes #5288
2018-07-03 12:04:41 -04:00
Stefano Fedeli
e683891183 fix(browser): TOUCH_ENABLED detection with Win10 (#5286)
Fixes #3306
2018-07-03 12:03:46 -04:00
Darius Oleskevicius
1b9bd42a1c feat: add double-click handler to toggle fullscreen (#5148)
Fixes #4948.
2018-07-03 12:02:19 -04:00
Gary Katsevman
00bb788899
chore: enable move and stale probots (#5292)
Enable [stale](https://probot.github.io/apps/stale/) and [move](https://probot.github.io/apps/move/) [probots](https://probot.github.io/).

`confirmed` and `a11y` labels have been added as exempt labels for stalebot
2018-07-02 16:20:02 -04:00
greenkeeper[bot]
2d7a4d7951 chore(package): update rollup to version 0.62.0 🚀 (#5279) 2018-07-02 12:00:42 -04:00
Darius Oleskevicius
b430461335 feat(browser): include iOS Chrome UA pattern when detecting Google Chrome (#5262)
Make IS_CHROME return true and IS_ANY_SAFARI return false for iOS Chrome.
2018-06-26 14:36:33 -04:00
Brandon Casey
ceed382222 refactor: removed old bug work-around code (#5200)
This removes some old workarounds for Chrome 15 and Safari 5.
2018-06-25 14:05:07 -04:00
Gary Katsevman
5c15d48635
chore(package): update rollup to version 0.61.1 (#5268) 2018-06-21 15:20:34 -04:00
Owen Edwards
53c62aca58 feat: Add an Audio Description icon to an audio track name in the track menu if it is "main-desc" kind. (#4599) 2018-06-21 14:34:16 -04:00
Darius Oleskevicius
237041698c feat: show mute toggle button if the tech supports muting volume (#5052)
Currently, VideoJS combines volume control with muted support, and these actions aren't actually the same. Muting/unmuting volume work independently from the volume control. For example, iOS doesn't support controlling volume programmatically but allows muting/unmuting volume.

This change will display the volume control panel and mute toggle button if the tech supports muting volume. The volume slider will continue to be hidden if the platform doesn't allow programmatically control volume. If neither muting nor control volume is supported, volume panel will not be displayed.

Fixes #4478.
2018-06-21 14:33:08 -04:00
Brandon Casey
e8e4fe2745 feat(autoplay): extend autoplay option for greater good (#5209)
This PR extends the `autoplay` to the player with a few options that should hopefully make working with browsers that disable unmuted autoplay by default easier.
The current boolean option will match current behavior and any unknown option will be treated as it does now. The new options are the string values `muted`, `play`, and `any`.

- `muted` will mute the element and call `play()` on `loadstart`,
- `play` will call `play()` on `loadstart()`, this is similar to the `autoplay` attribute
- `any` will call `play()` on `loadstart()` but if it fails it will try muting the video and calling `play()` again.
2018-06-21 14:32:07 -04:00
Brandon Casey
edce736d18 feat(css): run autoprefixer on css (#5239) 2018-06-21 14:21:17 -04:00
Phil Richman
e92f177ce2 feat(text-track-display): Extend the constructColor function to handle 6 digit hex codes (#5238)
When providing the TextTrackDisplay component with track settings overrides, currently colour codes with only three digits are supported. This updates it so that 6 digit hex codes are also accepted.
2018-06-21 14:20:12 -04:00
Pat O'Neill
7fd29b4f18 fix: Allow evented objects, such as components and plugins, to listen to the window object in addition to DOM objects. (#5255)
the bug is that objects using the new-ish evented mixin cannot listen to the window object, preventing things like:

```
component.on(window, 'scroll', throttledListener);
```

This fixes that so anything that's a native EventTarget works.
2018-06-20 17:05:33 -04:00
Ivan Demchuk
5b8d373f7f chore(npmignore): don't publish zip file to npm (#5249)
Add zip file to npmignore.

Fixes #5248.
2018-06-20 17:04:28 -04:00
Gary Katsevman
0b2a8e04ef 7.0.5 2018-06-11 14:35:04 -04:00
Chuck Wilson
9504a93643 fix: make sure source options are passed through (#5241)
The changes to source caching in #5156 introduced a regression where the source options were no longer available to plugins. This PR makes sure the cached source object retains any source options passed along.
2018-06-11 13:47:36 -04:00
Darius Oleskevicius
002d7011c5 fix: menu sizing when using longer caption labels (#5228)
Currently, if longer captions labels are used the SubsCaps menu gets all messed up in IE11/Edge. This occurs due to the menu size is not adjusted correctly not taking into consideration the CC icon. This, as a result, causes the captions items not to fit in the menu and because they end up too wide and the menu has overflow: auto style, the horizontal scrollbars show up and cause the menu not to render correctly. Therefore, don't position the caption label absolutely.

Fix #4758.
2018-06-11 13:39:47 -04:00
Gary Katsevman
59ab3237c3
chore(package): update conventional-changelog-cli to version 2.0.1 🚀 (#5236)
Closes #5225
2018-06-07 15:39:22 -04:00
Gary Katsevman
1b0ff8a02f
chore(package): update rollup to version 0.60.1 🚀 (#5235)
Closes #5232
2018-06-07 11:25:45 -04:00
greenkeeper[bot]
781d9aee63 chore(package): update rollup-plugin-filesize to version 2.0.0 🚀 (#5234)
* chore(package): update rollup-plugin-filesize to version 2.0.0

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile
2018-06-07 10:57:23 -04:00
greenkeeper[bot]
e8d00e278c chore(package): update grunt-contrib-watch to version 1.1.0 🚀 (#5170) 2018-06-06 17:50:18 -04:00
Gary Katsevman
b3884973fc 7.0.4 2018-06-05 14:23:33 -04:00
Darius Oleskevicius
59869b9d49 fix(slider): suppress console warnings in Chrome for Android when scrubbing (#5219)
Instead of calling preventDefault() on touchstart in Chrome, set touch-action: none style on progress control to prevent unintended scrolling.

Fixes #4650.
2018-06-05 13:32:38 -04:00
Robel Tezera
a29156ca7b fix: silence play promise in a few more places (#5213)
Silence the play promise in the Big Play Button, click-to-play, and the poster image.
2018-06-04 15:25:51 -04:00
Joe Forbes
7c5a066f2a fix: build core script files as UMD (#5220) 2018-06-04 15:24:43 -04:00
Thijs Triemstra
a3fd06a1a8 docs(component): fix typo (#5226) 2018-06-04 15:24:13 -04:00
Brandon Casey
702acdb6a1
ignore: a terrible rollup watch fix for development (#5211) 2018-05-25 13:41:12 -04:00
Gary Katsevman
16b7acd4b9
chore(package): update rollup to version 0.59.3 (#5204)
Closes #5174
2018-05-24 15:19:36 -04:00
Brandon Casey
6a947416ee chore(build): fix rollup watch during npm start (#5203) 2018-05-24 12:35:27 -04:00
Owen Edwards
94e54fccf8 docs(collaborator-guide): Clarify how to Land a PR using the GitHub UI (#5201)
Clarify how to enter the header and body text when Landing a PR using the GitHub UI.
2018-05-23 16:15:26 -04:00
Owen Edwards
f3d7ac2524
fix(menus): change ARIA role of menu items for better screen reader support (#5171)
Change most menu items to an ARIA role of "menuitemradio" when only one item can be selected (i.e. in the Captions, Subtitles, Descriptions, Chapters, Audio Tracks, and Rate menus).

Fixes #5136
2018-05-23 12:47:37 -07:00
Owen Edwards
2bc810decb
fix(player): ensure that JAWS+IE announces the BPB and play button (#5173)
Freedom Scientific's recommended workaround for JAWS + IE not announcing the first button after a video element which doesn't have its own native controls (See https://github.com/FreedomScientific/VFO-standards-support/issues/78).

Fixes #4583
2018-05-23 12:43:44 -07:00
Owen Edwards
f5a6e61627
docs(examples): remove IE9 text track HTML markup in the doc/examples, and update to use video.js v7.0 (#5192)
docs(examples): Remove IE9 text track HTML markup in the doc/examples, and update to use video.js v7.0 (#5192)

Video.js v7 drops support for versions of IE prior to IE11, so examples should not reference earlier versions.
2018-05-23 12:32:27 -07:00
Gary Katsevman
6f8597fed6 7.0.3 2018-05-23 14:27:46 -04:00
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