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

3920 Commits

Author SHA1 Message Date
Gary Katsevman
3777f9400b 7.14.3 2021-07-26 19:39:17 -04:00
Gary Katsevman
b483a7613f
fix: don't add anchor to DOM for getAbsoluteURL (#7336) 2021-07-22 16:01:12 -04:00
Gary Katsevman
b3acf66364
fix: remove IE8 url parsing workaround (#7334) 2021-07-22 13:14:26 -04:00
Gary Katsevman
bba6e17925 7.14.2 2021-07-19 10:54:26 -04:00
Travis Bader
2990cc7d65 fix(dom): in removeClass, check element for null in case of a disposed player (#6701) 2021-07-15 11:16:21 -04:00
Gary Katsevman
9ef0c5ac44 7.14.1 2021-07-14 18:47:27 -04:00
Gary Katsevman
fff0611a35
fix(package): update to VHS 2.9.2 (#7320) 2021-07-14 18:34:42 -04:00
hcbd
2360236bca
docs(react): Added a functional React component using React.useEffect (#7203) 2021-07-06 15:49:33 -04:00
Gary Katsevman
14da28dabe
fix: remove loading spinner on ended (#7311)
If we've ended, there's no point in having the loading spinner. In
addition, there are cases where we get a waiting event immediately
before ended, and this works around that.

Fixes videojs/http-streaming#1156
2021-07-06 15:42:43 -04:00
Gary Katsevman
508a424b02
fix: all !important properties of vjs-lock-showing (#7312) 2021-07-06 15:42:24 -04:00
Gary Katsevman
3921b7febf
fix: properly return promise from requestFullscreen and exitFullscreen (#7299)
Mapping the promise returned from the helpers to the executor's resolve, and reject
methods. We also need to catch the error in the promise chain that's
created inside exitFullscreenHelper_.

Fixes #7298.
2021-07-06 14:56:02 -04:00
Brandon Casey
fab6e87205
chore: use setup-node cache and remove individual cache step (#7310) 2021-07-06 11:08:32 -04:00
Gary Katsevman
a8a5e02cba 7.14.0 2021-06-30 12:57:25 -04:00
Alex Barstow
c74c27d99b
feat: add ended getter middleware (#7287)
One thing to note is that this won't affect the play toggle from changing to the replay button on ended because it only listens to the ended event. Otherwise, this works fine.
2021-06-30 12:50:05 -04:00
Gary Katsevman
8caeda969d 7.13.4 2021-06-30 12:45:45 -04:00
SEGUS
fbcfb7b014
fix(lang): add some translations to es.json (#6822) 2021-06-30 12:33:56 -04:00
Roman Pougatchev
f9fb1d3f51
fix: throw error on muted resolution rejection during autoplay (#7293)
Previously, when autoplay was set to any or muted, we would accidentally swallow the autoplay rejection when we reset the muted state back to what it was. Instead, we want to re-throw the error.
To get it working, we also had to update our tests to try/catch in our fake promise.
2021-06-30 12:28:41 -04:00
David Brutoczki
0f707876ef
fix(lang): improve Hungarian translation (#7289) 2021-06-29 17:52:47 -04:00
Alec Winograd
a221be1d83
fix(event): event polyfill detection compatibility with react-native-web (#7286)
Fixes #7259
2021-06-24 16:54:02 -04:00
Brandon Casey
4cecbdab45
chore: add a code coverage ci workflow (#7282) 2021-06-23 00:53:52 -04:00
Gary Katsevman
9cfc15cc83 7.13.3 2021-06-22 22:38:37 -04:00
Gary Katsevman
4b50f82277 chore: republish with VHS 2.9.1 2021-06-22 22:35:52 -04:00
Gary Katsevman
a5f40d08fa 7.13.2 2021-06-22 13:25:42 -04:00
Gary Katsevman
cee5fa35be
fix(package): update to VHS 2.9.1 (#7284)
Fixes #7230
2021-06-22 13:22:18 -04:00
Gary Katsevman
1fc1c586a2 7.13.1 2021-06-14 15:31:56 -04:00
Gary Katsevman
688879858c
fix: do a null check on playbackRates player method (#7273) 2021-06-14 14:58:53 -04:00
Gary Katsevman
28978edab9 7.13.0 2021-06-11 13:03:57 -04:00
Gary Katsevman
2ea05b42c2
feat: update to VHS@2.9.0 and mpd-parser@0.17.0 (#7269) 2021-06-11 13:01:53 -04:00
mister-ben
b86f083a88
feat: Add option to use full window mode instead of using tech's fullscreen (#7218)
iPhone's native fullscreen isn't always desirable as you can't overlay controls or anything else. Adds an option to prefer "full window" mode over the video el's fullscreen.

If the preferFullWindow option is set to true, on a browser that does not support the proper fullscreen API but does support fullscreen on the video element (i.e. iPhone), then requestFullscreenHelper_() should call enterFullWindow() instead of fullscreen on the tech.
2021-06-08 11:54:33 -04:00
Alex Barstow
b4ad93a10e
feat: Add normalizeAutoplay option to treat autoplay: true as autoplay: "play" (#7190)
This PR adds a new option to treat autoplay: true the same as autoplay: 'play'. In general we want video.js to handle as much of the autoplay logic itself as possible, since the browser's treatment of the video element's autoplay attribute is less predictable. For now the default option value is false, but it may be made the default behavior in a future major version.
2021-06-08 11:03:51 -04:00
mister-ben
35ad17a0ef
feat: Add helper classes for 9:16 and 1:1 (#7219)
Fluid mode's automatic detection is nice, but there can be a layout jump once the video dimensions are known. We have the vjs-16-9 and vjs-9-16 classes already, but square and portrait are also common now.
2021-06-08 11:02:57 -04:00
Gary Katsevman
6259ef79e9
feat(player): Add playbackRates() method (#7228)
Adds a new playbackRates() method that takes an Array of numbers
representing the rates that are wanted to show up in the playback rates
menu. When new rates are given, a playbackrateschange event will trigger, which
will be used by the PlaybackRatesMenuButton to update itself.

An empty array will hide the menu. No value will return the currently
set playback rates. Other values will be ignored.

Fixes #7198
2021-06-08 11:01:56 -04:00
Gary Katsevman
39de502f72
feat(package): add VHS deps as Video.js deps (#7263)
Because VHS is inlined into Video.js, we should depend on what VHS
depends on.

Fixes #7091, fixes #7209, fixes #7144, fixes #7109
2021-06-08 11:01:04 -04:00
Ikko Ashimine
380a9b5b83
docs: Fix typo in CONTRIBUTING.md (#7260) 2021-06-04 12:27:11 -04:00
Gary Katsevman
32630d964b 7.12.4 2021-06-02 16:07:31 -04:00
Tim Fischbach
8082c5a3d0
fix: allow Video.js to be required in an env without setTimeout (#7247)
Some JavaScript environments don't implement setTimeout, which causes Video.js to fail on require. Instead, move our Dom.isReal() check earlier to before we call setTimeout.
2021-06-02 15:51:20 -04:00
FredTsang
41d5eb3b52
fix(player): accept data for fullscreenchange and error events from the tech (#7254) 2021-06-02 15:49:23 -04:00
Dtthatcher
11ac0b9bf2
chore(component): update comment around triggering ready in component (#7256) 2021-06-02 15:48:07 -04:00
Boris Petrov
c70c29885a
fix(seek-bar): remove event listener on dispose (#7258)
We were accidentally listening to `liveedgechange` when the seek-bar disposed. Instead, we should remove that event handler.
2021-06-02 15:44:40 -04:00
mister-ben
b3503c93dd
chore: Update sass and remove now deprecated / for division. (#7253)
Fixes #7244
2021-06-02 13:13:00 -04:00
Gary Katsevman
4a16b52635 7.12.3 2021-05-20 15:59:00 -04:00
Gary Katsevman
f528767571
fix: update to VHS 2.8.2 (#7242)
Fixes #7240
2021-05-20 15:55:20 -04:00
Gary Katsevman
a4c9b12e79
chore: revert back to gh-release@3.5.0 for now (#7241) 2021-05-20 15:07:18 -04:00
Gary Katsevman
961bf66d57 7.12.2 2021-05-19 14:01:23 -04:00
Gary Katsevman
c4cfa55ad1
fix: update to VHS 2.8.1 (#7238) 2021-05-19 13:41:40 -04:00
weiz18
90ce2d7143
fix(utils): add try and catch for computedStyle (#7214) 2021-05-11 12:58:45 -04:00
Aaron Mertzenich
06cdb6f49f
fix: incorrect focus styles on selected MenuItem (#7202)
Adds a :not() pseudo class to ensure that the MenuItem background color doesn't get incorrectly reset on mouse focus.

Fixes #7200
2021-05-11 12:54:43 -04:00
FredTsang
e9953e59fa
fix: exit full window mode with Esc key (#7224) 2021-05-11 12:54:15 -04:00
mister-ben
0e46624f1a
fix: Better text for exit fullscreen (#7183) 2021-05-10 18:51:32 -04:00
Brandon Casey
39485fc4c9
fix: user and programmatic seeks with live streams (#7210) 2021-05-10 18:42:17 -04:00