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

351 Commits

Author SHA1 Message Date
Robert J. Berger
749105d32c
feat: Add userAction.click to prevent pause/play when player is clicked (#7495)
Pass `false` as `userAction.click` to disable the default click-to-play behavior. Alternatively, pass in a function, to enable custom behavior.

Fixes #7123.
2021-11-10 14:06:25 -05:00
Jose Enrique Marquez
fdb87d8b72
docs(react): fix clear when unmount component (#7433)
Improve documentation on functional components to clean up reference if the component is unmounted.

Fixes #7361
2021-11-10 14:03:39 -05:00
Gary Katsevman
e9e894ffa0
fix: enable liveui on more livestreams (#7502)
Some live streams with a 30s live window can actually fluctuate between below and above the 30s threshold we have. Instead, we should have a slightly lower default to have those streams get the liveui.
2021-11-09 10:13:51 -05:00
iChengbo
e60f2cada5
docs(component.md): fix spelling error (#7498) 2021-11-08 17:41:38 -05:00
Adrian Saiz
3ea078d40b
docs(plugins): fix typo in the plugins guide (#7405) 2021-08-30 12:38:32 -04:00
FredTsang
d07a9de820
docs(react): update react functional component tutorial (#7377) 2021-08-23 17:21:47 -04:00
Ikko Ashimine
05083bb78d
docs(react): Fix typo (#7375)
seperate -> separate
2021-08-12 10:09:07 -04:00
Derek Kwiatkowski
5c2a45bad7
feat(lang): add Romanian language and update translations doc. (#7300) 2021-07-28 17:09:11 -04:00
Gary Katsevman
774f9e7f45
feat(hooks): Error hooks (#7349)
Adding beforeerror and error hooks that make it easier to know when errors occurred on all players and allows intercepting and modifying errors.
2021-07-28 13:32:38 -04:00
hcbd
2360236bca
docs(react): Added a functional React component using React.useEffect (#7203) 2021-07-06 15:49:33 -04:00
David Brutoczki
0f707876ef
fix(lang): improve Hungarian translation (#7289) 2021-06-29 17:52:47 -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
Owen Edwards
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
Thijs Triemstra
7d46f44df9
docs: update note about accessing tech (#7141) 2021-03-23 17:40:49 -04:00
Brandon Casey
6336e573f2
docs: Add liveTracker options to options guide (#7097) 2021-03-09 12:51:52 -05:00
FredTsang
dd0c675f0f
docs: fix broken blogpost urls (#7106) 2021-02-22 17:47:55 -05:00
Brandon Casey
e240396f5a
docs: change master to main (#7050) 2021-01-19 17:41:39 -05:00
mister-ben
f87297b20e
docs: Add note to legacy notes (#7022)
People keep finding the v4 legacy docs at docs.videojs.com/docs and Google keeps positioning them highly in search results. This attempts to lessen that.
2021-01-06 12:50:22 -05:00
Gary Katsevman
a000fed222
docs(faq): fixup autoplay blogpost url (#7027)
fixes #6905
2021-01-06 12:48:52 -05:00
mister-ben
503141c75f
docs: Remove Flash (#6994) 2020-12-22 14:10:53 -05:00
icokk
8476abd186
feat(lang): add Slovene language translation (#6959)
Co-authored-by: Iztok <iztok@abelium.com>
2020-12-11 15:57:34 -05:00
Jonathan Yeong
464b971315
feat(lang): add thai language translations (#6945)
Also, update translations needed docs page.
2020-11-16 14:38:02 -05:00
Amin
861753017e
docs: change blog links to most recent blog version, fix typo (#6904)
Co-authored-by: aminamos <26092352+aminamos@users.noreply.github.com>
2020-11-10 18:10:49 -05:00
mister-ben
88850e94af
fix(lang): Add PiP to de (#6803) 2020-08-13 08:47:11 -04:00
Markus Amalthea Magnuson
1761fa5976
docs: fix typo (#6760) 2020-08-06 01:42:34 -04:00
Pat O'Neill
f6a66e62de feat: Add a default, plugin-specific logger to advanced plugins (#6693) 2020-07-10 11:59:04 -04:00
Grzegorz Blaszczyk
dbd5203a0b
feat: adds disablePictureInPicture method to the player API. (#6378) 2020-04-22 12:41:21 -04:00
Gary Katsevman
808d818c7d
docs(faq): update FAQ about HLS and DASH with VHS (#6608)
Fixes #6590
2020-04-22 12:13:58 -04:00
EdgeNeko
8f930c5857
docs(angular): fix demo for angular v8+. (#6581)
Without the `static: true` property, an `not defined ReferenceError` will be thrown since the target is null on init.
2020-04-09 15:51:23 -04:00
Margaux
fce3ad23b9
docs: add an example Angular integration (#6390) 2020-03-16 17:29:00 -04:00
Ehsan Chavoshi
31ac9d7a58
fix(lang): improve Persian translation (#6468) 2020-02-24 17:48:01 -05:00
Pat O'Neill
3b0f0b9ea8
fix(lang): add missing Arabic translations (#6435) 2020-02-12 13:51:09 -05:00
Brion Vibber
0e37fbf02c feat: option to load text tracks on demand vs preload (#6043)
Reimplementation of https://github.com/videojs/video.js/pull/2192
on current code. Seems to work but has not been carefully tested,
especially on conditions such as slow networks and complex tracks.

For https://github.com/videojs/video.js/issues/5252

A `preloadTextTracks` tech option is added, set to true by default,
to keep current behavior intact. Alternate behavior can be enabled
by setting this to false.

This delays loading of the VTT cue files until they are selected.
For sites like Wikipedia that tend to have large numbers of
crowdsourced subtitles and can show many files together on one
page, this saves a lot of unnecessary network transfer and API
hits.

Does mean there may be dropped cues while switching to a track
that requires on-demand loading.

Example usage:

videojs(element, {
  html5: {
    preloadTextTracks: false
  }
};
2019-11-04 15:13:24 -05:00
Dan Michael O. Heggø
e37996d3c3 fix(lang): Update Norwegian translations (#6220) 2019-10-07 12:23:36 -04:00
Owen Edwards
f34d4413a0 docs: add note about SubsCapsButton only showing up when configured with text tracks (#6254) 2019-10-04 09:46:11 -04:00
Gary Katsevman
7a85e2a046
docs: update Components list (#6253)
Add SubsCapsButton, SeekToLive and LiveTracker.

Fixes #5980.
2019-10-03 13:38:20 -04:00
Brandon Casey
85ad44e13e chore: package json cleanup (#5649) 2019-08-30 14:14:53 -04:00
Pat O'Neill
064fcafd44 feat: add isDisposed method to components (#6099) 2019-08-29 18:42:15 -04:00
mister-ben
f7185bad9e feat: allow a click handler to be specified in clickable component's options (#6140) 2019-08-29 16:46:49 -04:00
Grzegorz Blaszczyk
f324d1f23c Allows middleware to handle muted setter/getter (#6177) 2019-08-29 16:42:42 -04:00
Pat O'Neill
bd51e9e8db fix(lang): Add missing strings for Chinese (Simplified) and Chinese (Traditional) (#6149) 2019-08-07 16:06:14 -04:00
Paul Dias
1d2b20636c fix(lang): update Spanish translations (#6065) 2019-08-01 14:07:16 -04:00
Gary Katsevman
cf6e0e8248
docs: update guides markdown (#6063) 2019-06-20 14:31:21 -04:00
mister-ben
5a538c3caf feat: add option to suppress initial error for non-playable sources (#6057)
Video.js checks whether sources are playable and both displays a message to the user and logs an error to the console. In Google's mobile friendly test and related tools, this message and error is triggered because their test browser's video element does not support any video formats. Some Video.js users are concerned about the æsthetics of the rendered preview within the tools and whether this might have an SEO impact.

Adds a suppressNotSupportedError option, defaulting to false. If set to true, if no sources are playable the error is deferred to the first human interaction (click or touchstart) but cleared if a loadstart occurs.
2019-06-20 14:00:12 -04:00
François Beaufort
116d84af75 feat: add built-in Picture-in-Picture button (#6002)
Adds a new PictureInPictureToggle component in the controls bar of the player. It depends on videojs-font 3.2.0 (videojs/font#41) for icons.

Final spec piece from #5824.
2019-06-18 16:42:02 -04:00
mister-ben
97b66a9130 fix(lang): update German translations (#6058) 2019-06-18 15:30:52 -04:00
Gary Katsevman
2977d52592
refactor: switch to fullscreen.options (#6054) 2019-06-17 16:51:28 -04:00
Austin Morton
631ac3b68d feat(fs): support FullscreenOptions (#5856)
On browsers that implement the Unprefixed Fullscreen API, pass a FullscreenOptions dictionary to requestFullscreen.

Add `fullscreenOptions` option with default value of `{navigationUI: 'hide'}` to player.
See https://fullscreen.spec.whatwg.org/#dictdef-fullscreenoptions
2019-06-17 14:05:22 -04:00