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

3793 Commits

Author SHA1 Message Date
Pat O'Neill
26209b0dcd
fix(lang): remove trailing comma from fr.json (#7657) 2022-02-23 12:57:03 -05:00
Bruce Rodrigues
50fe5f659b
fix: Fix playback rate iteration if rates are not in the ascending order (#7618) 2022-02-23 12:28:14 -05:00
mister-ben
f16d73b528
fix: Guard against Safari adding native controls after fullscreen (#7634) 2022-02-23 12:17:49 -05:00
Pat O'Neill
c44057d217
fix(accessibility): By default, show track selection buttons at all responsive breakpoints (#7603) 2022-02-23 12:17:27 -05:00
Noemite
b5f775ecda
fix(lang): Add missing translations for French, Italian, Japanese, and Korean (#7589)
Co-authored-by: Noémie Macault <noemie.macault@capgemini.com>
2022-02-23 12:16:59 -05:00
Claire Kannapell
950deae59b
fix: keep focus trapping contained to modal (#6983) 2022-02-23 12:16:28 -05:00
mister-ben
53cbfc6222
docs: Add some FAQ entries (#7609)
Co-authored-by: Pat O'Neill <pgoneill@gmail.com>
2022-02-08 09:51:24 -05:00
John Vandenberg
481e809da6 docs: Link to Angular guide in Player Workflows guide (#7635) 2022-02-08 09:49:37 -05:00
Gary Katsevman
eeda26fbf7 7.18.0 2021-12-20 17:26:00 -05:00
Gary Katsevman
9aaf67a5ee
feat: udpate to @videojs/http-streaming@2.13.1 (#7573) 2021-12-20 17:17:32 -05:00
mister-ben
67e6ed6fd6
feat: make negative sign on remaining time optional (#7571)
Add a new `displayNegative` option on the remaining time display to not show a negative sign in front of the time.
The default value is true to maintain current behavior.

Closes #7565
2021-12-20 15:37:33 -05:00
Gary Katsevman
2cb647efaf 7.17.3 2021-12-10 17:57:16 -05:00
Gary Katsevman
01893ab7cd
fix(package): update to @videojs/http-streaming@2.12.1 (#7563) 2021-12-10 17:47:23 -05:00
Gary Katsevman
8e0089db04 7.17.2 2021-12-08 16:30:56 -05:00
Gary Katsevman
1d4bad8199
fix: regression with AD audio track menu items (#7559)
In #7337, a lot of code was updated to no longer user innerHTML, but we
accidentally caused an issue with Audio Description (AD) tracks where
the track title was included twice. Once before and once after the AD
icon.

This is because we were calling `super.createEl()` but MenuItem created
a specific element and didn't just pass things the arguments along.
Instead, we should use `Dom.createEl()` directly.

Fixes #7556
2021-12-08 15:30:20 -05:00
Gary Katsevman
3c213455ee
fix: volume control showing up on iOS (#7550)
This is a follow-up to #7514. But turns out, that we still had a timing
issue around when we were doing the check and when the volume control
was created.

Instead, we should make `featuresVolumeControl` not be a lazy property,
so, that we do that check as early as possible. Also, we should
default this property to `false` in this case, so, that we assume we
can't until we confirm we can.

Additionally, added a null check for Html5, to be extra defensive since
the timeout isn't tied to a player.
2021-12-01 17:33:11 -05:00
Garrett Singer
d38806dacd
chore: fix typo in COLLABORATOR_GUIDE (#7537) 2021-11-30 00:40:59 -05:00
Gary Katsevman
76985c6068 7.17.1 2021-11-17 16:21:13 -05:00
Gary Katsevman
df927de320
fix: don't always use fastSeek when available. (#7527)
We were always setting `scrubbing(true)` on mouse down. This means, that
we'd use `fastSeek` even when seeking while clicking, rather than only
when scrubbing.

The main fix involves knowing in `handleMouseMove` whether we were
called directly as a `mousemove` handler or whether it was called from
`handleMouseDown`. This means that when `handleMouseMove` is called via
`handleMouseDown` we can skip setting `scrubbing(true)` and only do it
when we are scrubbing directly.
2021-11-17 15:59:01 -05:00
Gary Katsevman
1d96d1cf20
fix: try again on volume feature detection on iOS (#7514)
On latest iOS, we are seeing times when the volume feature detection is
showing that we are able to change the volume, though, that is not the
case. Instead, on iOS, when we detect that we can control the volume, we
set a short timer to retest and reset the featuresVolumeControl property.

Fixes #7040
2021-11-17 12:27:08 -05:00
Gary Katsevman
8f580ccc81
chore(sandbox): update embeds media to use public url (#7530) 2021-11-16 12:20:01 -05:00
Gary Katsevman
115a04745f
fix: turn off other tracks with native audio track (#7519)
Audio Tracks are supposed to allow multiple tracks at the same time.
Safari 15 has added, at least partial support for this.

In #7163, we stopped turning other tracks of manually since we already
were doing so in the AudioTrackList. However, this only worked for
non-native AudioTracks. Before Safari 15, Safari automatically turned
off the other tracks for us so things continued to work.

With this change, when native audio tracks are used, we will turn off
the other tracks, partially reverting #7163.

We currently do not have any tests or are set up for writing tests for
these proxy tracks. Adding such tests will take too long for not a lot
of benefit, unfortunately.

Fixes #7494.
2021-11-16 11:23:03 -05:00
Gary Katsevman
6c67c3084b
fix: improve enabling liveui when switching sources (#7510)
We try and enable the liveui on canplay, however, we only do it the first time after the LiveTracker is enabled. This means that if you change sources, we may not catch that the liveui should be enabled. This is particularly important for browsers where native playback is used, like Safari, as the metadata may not be available until canplay.

This is a follow-up from #7114 which enabled listening to canplay but didn't account for switching videos in the same player.
2021-11-10 22:21:11 -05:00
Gary Katsevman
8497a2b5f7 7.17.0 2021-11-10 14:37:11 -05:00
Gary Katsevman
8abe438b08
test: add tests for the click user action (#7507)
Follow up on #7495
2021-11-10 14:17:19 -05:00
iChengbo
ca2f5a3cae
docs: fix a comment of the player's loadedmetadata event (#7506) 2021-11-10 14:07:24 -05:00
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
toto6038
11228cffe4
fix(lang): Update zh-TW.json (#7483)
Fixed weird translation of  strings related to "seek to live" and 'font', and weird usage of terms 'video' and 'audio'. Some refinement is made to improve existing translation as well.
2021-11-10 14:04:27 -05:00
André
78cf834e6f
fix: volume button empty space (#7466)
When responsive mode is used and the player layout is small or smaller, an empty space appears to the right of the mute button on hover.

Fixes #7465
2021-11-10 14:04:08 -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
EdgarsN
b97be4d5cd
feat(lang): Add Latvian (lv) language support (#7468)
Co-authored-by: Edgars Neimanis <neimanis.edgars@gmail.com>
2021-11-10 12:11:40 -05:00
Ikko Ashimine
8e8b7be190
docs: fix typo in html-track-element.js (#7504)
vesion -> version
2021-11-09 10:17:47 -05:00
Gary Katsevman
bcd80f922e
fix: don't let the player be translated except captions (#7474)
This is another follow-up to #6699.

Potentially, it means we could get rid of #6977
2021-11-09 10:17:04 -05:00
itarcontact
b061491832
fix(lang): Update Polish translation (#7499)
Missing Polish translations added.
2021-11-09 10:16:35 -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
Gary Katsevman
b1760c53ca
feat: update to VHS 2.12.0 (#7503) 2021-11-09 10:13:31 -05:00
iChengbo
e60f2cada5
docs(component.md): fix spelling error (#7498) 2021-11-08 17:41:38 -05:00
Owen Edwards
f326cf3449
fix: set the 'lang' attribute on text track display elements, if the language of the track is known (#7493)
Fixes #7487

Co-authored-by: Gary Katsevman <git@gkatsev.com>
2021-11-02 15:59:03 -04:00
Gary Katsevman
6faad26869
fix(package): update to VHS 2.11.2 (#7484) 2021-10-28 11:10:27 -04:00
Gary Katsevman
4d1fb4ad9f 7.16.0 2021-10-01 13:03:38 -04:00
Gary Katsevman
b05ee9100c
feat(package): update to VHS 2.11.0 (#7459) 2021-10-01 12:55:08 -04:00
KV Pasupuleti
055809626b
feat(lang): add telugu language translations (#7391) 2021-10-01 12:50:07 -04:00
Gary Katsevman
dc1533cf8d 7.15.7 2021-10-01 12:42:29 -04:00
Ileana Padilla
1d91831992
fix: remove rule on small layout (#7449) 2021-09-28 14:37:44 -04:00
Gary Katsevman
fc2ce3af41 7.15.6 2021-09-22 16:51:26 -04:00
Gary Katsevman
029e92ac96
fix: mark global/window/document as external globals (#7438)
built off of the work in https://github.com/videojs/videojs-generate-rollup-config/pull/40
2021-09-22 12:55:17 -04:00
Gary Katsevman
b83abd13fa 7.15.5 2021-09-21 15:52:47 -04:00
Jese Rodriguez
6c68f9554c
fix(package): update VHS to 2.10.3 to fix seeking into a gap (#7436) 2021-09-21 15:50:19 -04:00
Gary Katsevman
6d39ee24b1
fix: remove deprecation of getComponent feature (#7410)
Since Video.js 6, we've removed the deprecated functionality, we no longer need to have a deprecation warning.
2021-09-02 14:35:34 -04:00
Adrian Saiz
3ea078d40b
docs(plugins): fix typo in the plugins guide (#7405) 2021-08-30 12:38:32 -04:00