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

3645 Commits

Author SHA1 Message Date
Łukasz Polowczyk
45eef66b09
fix: add display block to all buttons icon placeholder (#7094)
Fixes #6989
2021-03-09 15:07:14 -05:00
Aaron Mertzenich
1b52e7bea0
fix: focus-visible shouldn't change background styles (#7113)
Only set background:none focus styles on menu
2021-03-09 15:06:35 -05:00
Brandon Casey
6336e573f2
docs: Add liveTracker options to options guide (#7097) 2021-03-09 12:51:52 -05:00
Gary Katsevman
8d0c601c12
fix(package): update to videojs/http-streaming 2.6.3 (#7129) 2021-03-09 12:21:22 -05:00
Gary Katsevman
fbf34e3429
test: a couple of minor fixes, tweak CI config, swap rollup replace plugin (#7128) 2021-03-09 11:41:01 -05:00
Gary Katsevman
3d676d68ca
fix: try enabling liveui on canplay (#7114)
On native playback engines, like Safari, for some streams, seekable and
currentTime won't have correct values until video data has started
loading. Previously, we only tried to turn toggle tracking on
durationchange, now we also do it on canplay.

This is a followup to #7034 which helped prevent the live tracker from
showing up in some cases.
2021-03-08 16:27:53 -05:00
Brandon Casey
0b467041c7
chore: update rollup for upcoming vhs changes (#7075) 2021-03-05 13:13:13 -05:00
FredTsang
dd0c675f0f
docs: fix broken blogpost urls (#7106) 2021-02-22 17:47:55 -05:00
Brandon Casey
ba47953851
chore: video.js debug build (#7082)
Adds a debug build to video.js that does the following:
- Exposes DomData on video.js. DomData our internal event tracking object and should be empty on player dispose.
- Set log level to debug by default.
2021-02-18 10:00:42 -05:00
Gary Katsevman
134f039573
fix: clear progress control related rAFs when tab is hidden (#7099)
The progress control is updated inside of requestAnimationFrames (rAFs). Normally, this is fine. However, when a tab is hidden, rAFs are generally not triggered. So, what happens is that we get a cached rAF from the last time the tab was active. When we come back to be active, we update again, but because we already have a named rAF, we don't clear it out and instead that one gets triggered. This isn't an issue if the video is still playing, because in a second, another rAF will be triggered which will update things. However, if the video has ended, we won't get any more updated and the progress bar will still be in the old position.

Instead, when the document becomes hidden, we should clear out both the SeekBar#update and the Slider#update rAFs. Doing just one, unfortunately, isn't enough. In addition, we also only re-enable the interval if we aren't ended or paused and ignore the update method if the tab is hidden.

Fixes #7086
2021-02-18 09:58:40 -05:00
Gary Katsevman
948fd2c26a 7.11.5 2021-02-04 11:34:11 -05:00
Gary Katsevman
542cead6ea
fix(dom): account for translated parent in pointer position on iOS (#7079)
Since we switched to using adding up offsets to calculate the pointer position relative to the current element, we've had some issues, particularly on iOS, where a translated parent would cause us to miscalculate the position. This is currently a quickfix for the issue, and I'd like to spend some time to figure out a better solution that hopefully won't require us to iterate through the DOM and add up the transform matrix.
2021-02-04 11:33:25 -05:00
Gary Katsevman
541f2e584b
fix(dom): stop findPosition at a fullscreenElement (#7074)
On iPads, if the player is inside a floating div, when fullscreen, we'll have an incorrect offset value. Instead, we should stop counting our offsets once we get to our fullscreen element (i.e. the player) because in fullscreen it's outside the regular flow, and we don't actually want to add offset the float gives us inline.
2021-02-03 17:21:38 -05:00
Gary Katsevman
d546364f81 7.11.4 2021-01-26 13:59:04 -05:00
Gary Katsevman
85575dbaba
fix(evented): log an error on invalid type (#7067)
Follow up from #6982. We previously threw an error, but we've seen it
happen unexpectedly. Instead, we should log an error.
We will still throw an error if the event is undefined or null.

Here, if we have a `log` object on the current object, we should use it,
otherwise, we use a default `log` object.
2021-01-26 13:56:41 -05:00
Gary Katsevman
22b5535187 7.11.3 2021-01-25 13:55:40 -05:00
Guttorm
4a9e1abf6b fix(lang): Update nn.json (#7054)
Translated some Swedish to Nynorsk.
2021-01-25 13:17:03 -05:00
KuanYu Chu
b13cb07d5b
fix: only preventDefault if event is cancelable (#7063) 2021-01-25 11:55:46 -05:00
Gary Katsevman
ed3c54d13a
fix(time-display): fix IE11 appending times instead of replacing (#7059)
IE11 only supports HTMLElement and not text nodes in the contains
method. See https://developer.mozilla.org/en-US/docs/Web/API/Node/contains
Instead, compare firstChild.
2021-01-22 13:55:58 -05:00
Gary Katsevman
dceedb6746
fix(fs): make sure handlers are unique per player (#7035)
Using Video.js's .bind still makes us attach prototype methods as
handlers. Then when one is removed, all handlers are removed.

Instead, use arrow methods to make these methods unique.

Fixes #7013.
2021-01-22 13:06:58 -05:00
Brandon Casey
db46578ac6
fix: prevent dispose error and text track duplicate listeners (#6984) 2021-01-21 17:02:15 -05:00
Brandon Casey
ffb690af6f
fix: better evented validation and error messages (#6982) 2021-01-21 17:00:12 -05:00
Brandon Casey
9574bb4ad5
chore: netlify ci demo and docs (#7045) 2021-01-19 18:47:48 -05:00
Brandon Casey
e240396f5a
docs: change master to main (#7050) 2021-01-19 17:41:39 -05:00
Gary Katsevman
d4d487e9c4 7.11.2 2021-01-14 16:12:39 -05:00
Gary Katsevman
f672af8dfb
chore(package): update to @videojs/http-streaming@2.4.2 (#7042) 2021-01-14 16:09:27 -05:00
Brandon Casey
5904ec2d7c
test: update ci workflow to prevent install failures (#7041) 2021-01-14 15:46:13 -05:00
Brandon Casey
330c82c88f
fix: set liveWindow to 0 liveCurrentTime is Infinity (#7034)
Fixes an issue in native Safari and Android HLS playback where liveCurrentTime returns Infinity (as we don't have a seekableEnd or seekableEnd is actually Infinity). Which causes the new live ui to show up when we don't really have a live window.

Instead of returning Infinity when liveCurrentTime is Infinity, return 0. So that everything knows that we do not have a seekable window of live playback.
2021-01-11 17:24:53 -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
mister-ben
661962cb3a
fix(player): Ensure fluid works when dimensions not initially known (#7023)
The video dimensions aren't necessarily known at loadedmetadata particularly with native playback on iOS. In fluid mode, the player defaults to 16:9 and does not update once the dimensions are known.

- Updates player styles on resize events.
- Fixes arguments passed to addEventedCallback so the callbacks are executed.

Fixes #6939
2021-01-06 12:49:57 -05:00
Gary Katsevman
a000fed222
docs(faq): fixup autoplay blogpost url (#7027)
fixes #6905
2021-01-06 12:48:52 -05:00
Gary Katsevman
4193ffdc8f 7.11.1 2020-12-22 14:32:59 -05:00
Gary Katsevman
ead775b095
fix(package): update to @videojs/http-streaming@2.4.1 (#7010) 2020-12-22 14:25:14 -05:00
mister-ben
503141c75f
docs: Remove Flash (#6994) 2020-12-22 14:10:53 -05:00
Armin
a35a1217f0
fix(MapSham): fix set method to use map property (#7000) 2020-12-17 17:19:17 -05:00
Brandon Casey
11d37e28fd
fix: clear readyQueue with dispose (#6967) 2020-12-11 16:04:09 -05:00
kontrollanten
3e30f83bb1
fix(time-display): add a null check for text node (#6977)
fixes #6699
closes #6700
2020-12-11 16:01:36 -05:00
Gary Katsevman
0631f037eb
fix(package): update to @videojs/http-streaming@2.4.0 (#6986) 2020-12-11 15:58:40 -05:00
Brandon Casey
799616deee
fix: play progress time tooltip from jittering during live (#6968) 2020-12-11 15:57:51 -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
Gary Katsevman
63752f3727
fix(rollup): browser globals shouldn't be external (#6954)
This fixes an issue with requirejs where global/window and
global/document were being marked as dependencies. Instead, this makes
sure that the module gets inlines properly and not worked as a dep for
requirejs.

Fixes #6443, #6272, #6212, #5680.
2020-12-11 15:55:27 -05:00
Brandon Casey
5a13e90574
chore: move unit test build right below main for faster watch (#6953) 2020-12-01 11:17:08 -05:00
Gary Katsevman
08feeed61f 7.11.0 2020-11-16 15:26:57 -05:00
Gary Katsevman
ca2d78fcd4
chore(sandbox): switch all urls to https (#6946) 2020-11-16 15:13:27 -05:00
Kevin Kipp
dcce0e908d
fix: cast TOUCH_ENABLED to boolean (#6943)
This needs to be cast before exporting so users
can confidently pass it into their videojs config
and not worry about videojs internals doing strict
equality checks against true/false.

Co-authored-by: Kevin Kipp <kkipp@cloudflare.com>
2020-11-16 14:46:21 -05:00
genofire
3901ab0e72
fix(css): set seek to live button's align-items prop to center (#6942)
Fixes https://github.com/videojs/themes/issues/7
2020-11-16 14:44:29 -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
claudiah12
ee0637c078
feat(track): make label property mutable and fire a labelchange event when the label is changed (#6928)
Allows the editing of a track's label after its creation. Menu buttons will listen for the labelchange event and update their content accordingly.

This is technically divergent from the spec, which says it's readonly, but it can be useful for Video.js users.

Co-authored-by: Claudia Hinkle <chinkle@chinkle-mn1.linkedin.biz>
2020-11-10 18:11:53 -05:00
Zenon Mousmoulas
0140b28cc3
fix: always set tabIndex to restore keydown a11y (#6871)
Skipping the tabIndex property on created elements due to #6145
optimizations blocks them from receiving keyboard events, due to not
being focusable; for example this breaks closing ModalDialog elements by
pressing Escape.
Fix this by always setting tabIndex, as the element may return the same
value even though the property has not been explicitly set.

Fixes #6870
2020-11-10 18:10:59 -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