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

3876 Commits

Author SHA1 Message Date
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
Gary Katsevman
5cab85f993 7.15.4 2021-08-25 17:01:03 -04:00
Gary Katsevman
dae1266bce
chore: use aws s3 cp rather than sync (#7400)
Sync needs extra permissions, like ListObject, to function, but the keys
we have are the most minimal that are possible. Instead, we should copy
local files unconditionally.
2021-08-25 16:52:51 -04:00
Gary Katsevman
87d4dce5e6 7.15.3 2021-08-24 16:45:30 -04:00
Gary Katsevman
1ddcfde086
fix: update VHS to fix xmldom warning (#7395)
Fixes #7389
2021-08-24 16:44:49 -04:00
Gary Katsevman
97b7a2e007 7.15.2 2021-08-23 18:31:19 -04:00
Gary Katsevman
af484eccbe
chore: specify bucket for CDN push (#7393) 2021-08-23 18:30:56 -04:00
Gary Katsevman
5acf619e99 7.15.1 2021-08-23 17:34:50 -04:00
FredTsang
d07a9de820
docs(react): update react functional component tutorial (#7377) 2021-08-23 17:21:47 -04:00
Gary Katsevman
957c6fa009
chore: add a release and deploy Github Action (#7385)
The release job will do an npm publish and a github-release.
It's based on videojs/.github/github-release.yml.
The new version is published as `next` and requires to be promoted to
latest manually.

The deploy job, should do an aws s3 sync to upload the files to S3 for
us. It uses a Github Environment secrets. This is so that we can require
a user to approve the CDN upload.
2021-08-23 15:30:05 -04:00
John Caruso
1f4d95b050
fix: prevent cached inactivityTimeout from being overwritten with 0 (#7383)
If multiple `mouseenter` events fire on the controlBar before a `mouseleave` event occurs, the cached inactivityTimeout value will get overwitten with a 0. This prevents the control bar from being hidden when the inactivity timeout is reached because the hide call is skipped when inactivityTimeout <= 0.

The circumstances around multiple `mouseenter` events firing before a `mouseleave` event are when a menubutton on the toolbar has its `update()` method called: the menu popup is disposed but a `mouseleave` event isn't fired for it.

Fixes #7313
2021-08-19 15:33:37 -04:00
Andreas Venturini
9e82035b19
fix(lang): fix typo in de locale for progress bar (#7380) 2021-08-17 12:05:05 -04:00
Ikko Ashimine
05083bb78d
docs(react): Fix typo (#7375)
seperate -> separate
2021-08-12 10:09:07 -04:00
Gary Katsevman
ef1fce6822 7.15.0 2021-07-28 17:33:43 -04:00
Gary Katsevman
8afde12e45
fix(package): update to VHS 2.10.0 (#7351) 2021-07-28 17:29:16 -04:00
Derek Kwiatkowski
5c2a45bad7
feat(lang): add Romanian language and update translations doc. (#7300) 2021-07-28 17:09:11 -04:00
Brandon Casey
eb8f802391
refactor: remove most usage of innerHTML (#7337) 2021-07-28 16:42:23 -04:00
Brandon Casey
ada25c4c76
fix: evented should cleanup dom data (#7350) 2021-07-28 15:55:35 -04:00