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

3588 Commits

Author SHA1 Message Date
Gary Katsevman
680e7d78d7 fix: bring back Android 4.x support (#6289)
Use a WeakMap and Set shams for browsers that don't support it.
2019-11-07 17:21:53 -05:00
Pat O'Neill
29638b7969 fix: ensure the default ID of the first player is 'vjs_video_3' as some people have relied on this (#6216)
When a player is created without an id on the embed code, Video.js automatically assigns it one based on an auto-incrementing number (a.k.a. a GUID). For the longest time, this has happened to result in the default id of the first player being vjs_video_3.

It was never intended for users to rely on this value being consistent, but users do strange and inadvisable things.

PR #6103 had an unintended side effect in that it changed the default id to vjs_video_2, which we worry could affect some users of Video.js.
2019-11-07 17:21:52 -05:00
Philipp Daniel Birkl
aeb95889a0 fix(lang): Fixed typos in german translation (#6275) 2019-11-04 15:20:30 -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
mister-ben
260cfcd247 fix: Make suppressing no source error compatible with videojs-errors (#6217) 2019-10-04 13:34:54 -04:00
Marco Del Toro Barragan
c791cd8c4e fix(iOS): pause player on suspend or stalled if extra buffer is available (#6199)
On iOS, when disconnecting the headphones, we may receive a stalled or suspend event. In those case, we may actually still have buffer available for us to play through rather than actually having stalled or suspended. In those cases, we should pause the player to prevent playback issues.
2019-10-04 13:31:41 -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
Gary Katsevman
de2daead65
chore: ignore sandbox during linting (#6208) 2019-08-30 14:56:55 -04:00
Brandon Casey
4134a9734b test: run tests via rollup (#5601) 2019-08-30 14:56:41 -04:00
Brandon Casey
85ad44e13e chore: package json cleanup (#5649) 2019-08-30 14:14:53 -04:00
Brandon Casey
bd58039c78 perf: Save 3740 bytes gizpped by getting rid of xhr deps (#6164)
Switch to @videojs/xhr and setup babel runtime helpers properly.
2019-08-30 11:13:45 -04:00
Pat O'Neill
064fcafd44 feat: add isDisposed method to components (#6099) 2019-08-29 18:42:15 -04:00
Brandon Casey
5fa4257b91 feat: cap log history at 1000 items (#6192) 2019-08-29 17:32:34 -04:00
Brandon Casey
99b610bd92 perf: only update ui on change, wrap things in requestAnimationFrame (#6155) 2019-08-29 17:02:56 -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
Brandon Casey
22782b8425 perf: Another 5ms of startup time improvements (#6145) 2019-08-29 16:44:06 -04:00
Grzegorz Blaszczyk
f324d1f23c Allows middleware to handle muted setter/getter (#6177) 2019-08-29 16:42:42 -04:00
Kevin Lee
8129f03f18 fix: allow player dimension method to accept 'auto' (#6185) 2019-08-29 16:42:22 -04:00
Gary Katsevman
6636d78d23 7.6.4 2019-08-28 15:44:30 -04:00
Gary Katsevman
f47939c7c5
chore(package): update http-streaming to 1.10.6 (#6205)
Fixes videojs/http-streaming#312.
2019-08-28 15:32:37 -04:00
Grzegorz Blaszczyk
714aba0ca8 fix: make live UI button more consistent (#6201)
Use a simple moving average for setting the seekableIncrement value, which is used to determine whether we're at the live edge of nor.
2019-08-28 13:41:32 -04:00
Grzegorz Blaszczyk
3c1dd8ff44 fix: adds space between vjs-live-display and vjs-volume-control controls. (#6200)
Closes #5815
2019-08-27 15:39:52 -04:00
Gary Katsevman
dec0c66995 7.6.3 2019-08-22 10:29:46 -04:00
Grzegorz Blaszczyk
62465b841e fix: make 'Esc' works for a vertical volume bar and menus (#6046)
Improve player accessibility by adding 'Esc' functionality to the volume panel and menu popups.

Fixes #6004.
2019-08-21 14:24:35 -04:00
Pat O'Neill
51b9861d5b fix: do not handle hotkeys in contenteditable elements (#6182)
Exclude elements where `el.isContentEditable == true;` for hotkeys.
2019-08-19 14:57:15 -04:00
Brandon Casey
549552ed43 fix: remove deprecated tsml dependency (#6174) 2019-08-19 14:56:16 -04:00
Gary Katsevman
977cd4a27d 7.6.2 2019-08-07 18:10:49 -04:00
Brandon Casey
9d2e5f3f7a test: silence test logs (#6165) 2019-08-07 17:36:55 -04:00
Brandon Casey
5ee247762e perf: Do not add/remove listeners for each timer (#6144) 2019-08-07 16:11:24 -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
Brandon Casey
266cb151fa perf: Improve performance of toTitleCase, register with lower and TitleCase (#6148) 2019-08-07 16:05:41 -04:00
Brandon Casey
8610f99673 perf: Use WeakMap for dom data (#6103) 2019-08-01 14:26:59 -04:00
Paul Dias
1d2b20636c fix(lang): update Spanish translations (#6065) 2019-08-01 14:07:16 -04:00
Brandon Casey
4b325ea8f8 chore: fix lang watch loop caused by zh-* copy (#6147) 2019-07-31 11:54:41 -04:00
Gary Katsevman
e4cdeb661d 7.6.1 2019-07-30 16:28:26 -04:00
Brandon Casey
6a93c8afac perf: throttle more timers and use native bind (#6142) 2019-07-30 16:01:00 -04:00
Bruno
20cae21ff7 fix(component): use safe computedStyle in currentDimension (#6073)
This will prevent a null exception when a video.js is implemented in a 'display:none' iframe on Firefox (<62).

This is a fix in continuation of the PR #3664 regarding a bug in Firefox https://bugzilla.mozilla.org/show_bug.cgi?id=548397
2019-07-29 18:17:02 -04:00
Grzegorz Blaszczyk
f2aedb72ec fix: Improves isSingleLeftClick() to handle mousemove (#6138)
Fixes #6132
2019-07-29 17:45:40 -04:00
Pat O'Neill
b84c290f7e lang: Clone zh-CN to zh-Hans and zh-TW to zh-Hant (#6098)
Currently, zh-CN and zh-TW are used as shorthands for Simplified and Traditional Chinese character sets, respectively. However, they carry with them a built-in assumption about the geographic locale which may not be appropriate in all cases.

The codes zh-Hans and zh-Hant are more correct in that they refer only to the character set and not the geographic locale. Further specificity is available via codes like zh-Hans-CN.
2019-07-29 17:35:53 -04:00
Brandon Casey
3c932c5f8e refactor: use the new any event function (#6080) 2019-07-29 17:21:42 -04:00
Brandon Casey
2e495dd5f5 perf: save ~10ms on player.src call (#6141)
Don't use a case-insensitive regex for getting the extname. Don't try to guess the type if we're provided with one.
2019-07-29 16:40:29 -04:00
Grzegorz Blaszczyk
2e69448f49 chore: switch from deprecated jsnext, main options to mainFields (#6075) 2019-07-26 13:49:01 -04:00
Gary Katsevman
3afa7d1ce4
fix(pip): hide PiP button in browsers not support the WICG spec (#6131) 2019-07-26 11:33:25 -04:00
Gary Katsevman
15ff8f7242
revert: "fix(play-toggle): call event.stopPropagation in the click handler (#5803)" (#6128)
PR #5083 introduces a fix to #5624, an issue with click events when
Polymer's tap gesture is being used. However, this causes an issue where
`player.on('click')` no longer triggers from the play toggle. Thus, we
revert the change. In addition, looking at Polymer 2 and 3, they
recommend against using the tap gesture.

Fixes #6092
2019-07-24 15:58:38 -04:00
Brandon Casey
b9fbd0bbaa chore: update videojs-generate-karma-config to ~5.2.1 and remove patches (#6104) 2019-07-18 15:09:53 -04:00
Gary Katsevman
93a6bbd341 7.6.0 2019-06-20 16:05:44 -04:00
Gary Katsevman
10ed08a15a
refactor(pip): rely only on WICG spec events (#6064)
The WICG spec calls out only two events, enterpictureinpicture and
leavepictureinpicture. We should try and only use those.
If pictureinpicturechange is still necessary, it can be re-added at a
later date.
2019-06-20 15:11:21 -04:00
Gary Katsevman
cf6e0e8248
docs: update guides markdown (#6063) 2019-06-20 14:31:21 -04:00