1
0
mirror of https://github.com/videojs/video.js.git synced 2025-07-15 01:34:23 +02:00
Commit Graph

3702 Commits

Author SHA1 Message Date
a221be1d83 fix(event): event polyfill detection compatibility with react-native-web (#7286)
Fixes #7259
2021-06-24 16:54:02 -04:00
4cecbdab45 chore: add a code coverage ci workflow (#7282) 2021-06-23 00:53:52 -04:00
9cfc15cc83 7.13.3 v7.13.3 2021-06-22 22:38:37 -04:00
4b50f82277 chore: republish with VHS 2.9.1 2021-06-22 22:35:52 -04:00
a5f40d08fa 7.13.2 v7.13.2 2021-06-22 13:25:42 -04:00
cee5fa35be fix(package): update to VHS 2.9.1 (#7284)
Fixes #7230
2021-06-22 13:22:18 -04:00
1fc1c586a2 7.13.1 v7.13.1 2021-06-14 15:31:56 -04:00
688879858c fix: do a null check on playbackRates player method (#7273) 2021-06-14 14:58:53 -04:00
28978edab9 7.13.0 v7.13.0 2021-06-11 13:03:57 -04:00
2ea05b42c2 feat: update to VHS@2.9.0 and mpd-parser@0.17.0 (#7269) 2021-06-11 13:01:53 -04:00
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
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
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
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
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
380a9b5b83 docs: Fix typo in CONTRIBUTING.md (#7260) 2021-06-04 12:27:11 -04:00
32630d964b 7.12.4 v7.12.4 2021-06-02 16:07:31 -04:00
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
41d5eb3b52 fix(player): accept data for fullscreenchange and error events from the tech (#7254) 2021-06-02 15:49:23 -04:00
11ac0b9bf2 chore(component): update comment around triggering ready in component (#7256) 2021-06-02 15:48:07 -04:00
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
b3503c93dd chore: Update sass and remove now deprecated / for division. (#7253)
Fixes #7244
2021-06-02 13:13:00 -04:00
4a16b52635 7.12.3 v7.12.3 2021-05-20 15:59:00 -04:00
f528767571 fix: update to VHS 2.8.2 (#7242)
Fixes #7240
2021-05-20 15:55:20 -04:00
a4c9b12e79 chore: revert back to gh-release@3.5.0 for now (#7241) 2021-05-20 15:07:18 -04:00
961bf66d57 7.12.2 v7.12.2 2021-05-19 14:01:23 -04:00
c4cfa55ad1 fix: update to VHS 2.8.1 (#7238) 2021-05-19 13:41:40 -04:00
90ce2d7143 fix(utils): add try and catch for computedStyle (#7214) 2021-05-11 12:58:45 -04:00
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
e9953e59fa fix: exit full window mode with Esc key (#7224) 2021-05-11 12:54:15 -04:00
0e46624f1a fix: Better text for exit fullscreen (#7183) 2021-05-10 18:51:32 -04:00
39485fc4c9 fix: user and programmatic seeks with live streams (#7210) 2021-05-10 18:42:17 -04:00
d4a08deb10 fix: Don't hide menus with one item and a title (#7215)
Menus with one item are hidden if they have a title, because adding the title increments the hide threshold, but the title is not counted as an item. e.g. the chapters menu if there is a single chapter.
2021-05-10 18:28:31 -04:00
90f3e39b33 chore: update node/nvmrc and various dependencies (#7221)
Fixes #7216, #6933, #6924, #7179
2021-05-04 11:45:59 -04:00
cb1d29bcb9 chore: update 'global' package in dependencies (#7213) 2021-05-03 17:38:47 -04:00
17919ce77b fix: make Playback Rate control work better with screen readers (#7193)
Add an aria-describedby to the playback rate button.

Improves behavior of #7121.
2021-04-20 19:11:29 -04:00
2c6e4397bb fix: silence play promise in the play toggle. (#7189)
Fixes #6998
2021-04-16 14:06:19 -04:00
a7cbb2a948 7.12.1 v7.12.1 2021-04-13 18:23:08 -04:00
a3bfeb77a6 fix(package): update vtt.js to allow server-side-rendering (#7178) 2021-04-13 17:09:23 -04:00
9abba58def fix(package): remove remove (#7177)
Fixes #7176
2021-04-13 11:23:11 -04:00
f0d69cde56 fix(package): upgrade VHS to 2.7.1 (#7174) 2021-04-13 10:48:22 -04:00
4238f5c1d8 7.12.0 v7.12.0 2021-04-07 11:31:36 -04:00
0d47306a52 feat(package): update VHS to 2.7.0 (#7164) 2021-04-07 11:17:16 -04:00
b6412a3358 chore: never skip github actions workflows in main (#7169) 2021-04-07 11:04:53 -04:00
4707ce82c0 fix: always have an enabled audio track when switching (#7163) 2021-04-06 16:22:54 -04:00
17a61474d0 perf: wrap prototype methods in handlers in an arrow function (#7060) 2021-03-24 15:38:27 -04:00
b2edfd24ac feat: Add a mouse volume tooltip (#6824) 2021-03-23 18:02:07 -04:00
239c9a1552 feat: enable responsive controls on fullscreen (#7098)
Co-authored-by: Ileana Padilla <ipadilla@brightcove.com>
2021-03-23 17:50:59 -04:00
22e9843942 feat: retry on error (#7038)
Add a `retryOnError` option. When set, during source selection, if a source fails to load, we will retry the next item in the sources list. In the future, we may enable this by default.

A source that fails during playback will *not* trigger this behavior.

Fixes #1805.
2021-03-23 17:50:12 -04:00
5f59391a74 feat: Add a player option noUITitleAttributes to prevent title attributes in the UI (#7134)
Fixes #6767
2021-03-23 17:47:16 -04:00