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

3857 Commits

Author SHA1 Message Date
Pat O'Neill
c5a0376dea 7.19.0 2022-03-21 14:37:50 -04:00
Pat O'Neill
58a8bd01b2
test(text-track-controls): fix failing test caused by incompatibility between PRs (#7686) 2022-03-21 14:20:18 -04:00
mister-ben
5af81cad2e
fix: generate chapters menu only when needed and don't create orphaned event listeners (#7604) 2022-03-21 13:05:50 -04:00
mister-ben
28bdc7d590
feat: easier configuration of buttons and components via options (#7611) 2022-03-21 12:21:26 -04:00
Wayne-Morgan
337ff2fed3
fix: text-track-display position with no ui (#7682)
Fixes #7681
2022-03-21 10:00:41 -04:00
Harisha Rajam Swaminathan
eeff79c5e8
refactor: Unify audioOnly mode and audioPoster mode (#7678)
Co-authored-by: Alex Barstow <alexander.barstow@gmail.com>
2022-03-17 17:10:33 -04:00
Pat O'Neill
b275a1559c
chore(package): update to @videojs/http-streaming@2.14.0 (#7676) 2022-03-14 14:53:11 -04:00
Alex Barstow
ebb2d09d17
fix: async audio only tests (#7673) 2022-03-11 12:24:50 -05:00
Alex Barstow
762e7bc751
feat: Audio Only Mode (#7647)
* audioOnlyMode wip

* fix incorrect logs

* add tests

* minor code changes and add another test

* update docs

* fix formatting

* fix typo

* Consolidate conditions

Co-authored-by: Pat O'Neill <pgoneill@gmail.com>

* Compare objects instead of name string

Co-authored-by: Pat O'Neill <pgoneill@gmail.com>

* code review changes

* remove unnecessary equivalence check

Co-authored-by: Gary Katsevman <git@gkatsev.com>

* replace height() with currentHeight()

Co-authored-by: Gary Katsevman <git@gkatsev.com>

* rewrite for async pip and fs handling

* asyncify tests

* update doc

* add test

Co-authored-by: Pat O'Neill <pgoneill@gmail.com>
Co-authored-by: Gary Katsevman <git@gkatsev.com>
2022-03-10 13:13:49 -05:00
Mikel Larreategi
a80307fe0d
feat: Add Basque (eu) translations (#7625) 2022-03-02 10:44:04 -05:00
André
a0bb5264c7
feat: Assume DASH MIME type when an MPD source URL is given (#7602) 2022-03-02 10:36:25 -05:00
mister-ben
1179826cbc
feat: Greater text track precision using requestVideoFrameCallback (#7633) 2022-03-02 10:34:13 -05:00
Harisha Rajam Swaminathan
64e55f5492
feat: Add audioPosterMode option (#7629) 2022-03-01 15:50:46 -05:00
Pat O'Neill
f588317761 7.18.1 2022-02-23 13:40:49 -05:00
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