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

3589 Commits

Author SHA1 Message Date
Gary Katsevman
9d9bbfe4de
fix(package): update to VHS 2.2.4 (#6925)
This fixes an issue where subtitles were getting disabled when where
in-manifest.

Also, fixes vhs-util versions.

Fixes #6909
2020-11-04 11:53:01 -05:00
Gary Katsevman
1cbea93b3e 7.10.1 2020-10-15 10:10:03 -04:00
Gary Katsevman
778ec756ee 7.10.0 2020-10-14 16:27:09 -04:00
Gary Katsevman
4a6a46a204
feat: update to @videojs/http-streaming@2.2.3 (#6867) 2020-10-14 16:18:50 -04:00
Gary Katsevman
5e173b0f93 7.9.7 2020-10-06 10:28:54 -04:00
Gary Katsevman
affc0611d9
fix(text-track): don't overlap captions when font-size changes (#6874)
For whatever reason, when the font size for text tracks is changed in
the text track settings dialog, we set a bottom of 2px on the cue.
This was added as part of the initial vtt work for Video.js in
4e5c28cc56 (diff-8169d53aa7eee6cab5f85b6641ef3117R176).
However, this doesn't seem to be doing anything right now and having it
means that when font-size is changed, multiple cues end up with a button
value of 2px causing them to overlap and obscure each other.

This works fine if the cues are positioned away from each other,
however, if multiple cues are positioned by default and a large font
size is used, while they will now stay on their lines, they may
partially obscure each other. This does not fix that issue and may
require modification (addition of overrides) to vtt.js to properly
support.
2020-10-06 10:18:23 -04:00
Gary Katsevman
8e5a1af826 7.9.6 2020-10-01 11:19:02 -04:00
Gary Katsevman
1963086aef
fix(dom): vertical getPointerPosition value (#6864)
From my understand, in the changes #5773, the Y position of all the
boxes is already calculated and accounted for in the offsetY value we
get. However, because the HTML coordinate system has Y=0 at the top,
when we do offsetY/boxH, we get a position relative to the top of the
element. However, we expect that position relative to the "start" of the
slider, or the bottom of it. Therefore, we want to get the inverse
value, which is '1 - clamp(offsetY/boxH)'.

Fixes #6863
2020-10-01 11:16:53 -04:00
Tim Gates
f22ead10f0
docs: Fix simple typo, intial -> initial (#6851)
There is a small typo in src/js/player.js, src/js/tech/html5.js, test/unit/sourceset.test.js.

Should read `initial` rather than `intial`.
2020-09-22 14:38:19 -04:00
Gary Katsevman
cb70ea84a1 7.9.5 2020-09-10 11:33:26 -04:00
Gary Katsevman
7373e68031 7.9.4 2020-09-10 11:30:39 -04:00
Gary Katsevman
7192be6257
chore(package): Update @videojs/http-streaming to 1.13.4 (#6839)
Fixes #6812
2020-09-09 15:16:58 -04:00
Samuel Burbano
c4c8fc1caf fix: Better mouse position handling (#5773)
This uses offsetX and offsetY on the MouseEvents which helps account for transforms on the player. Unfortunately, this isn't available on TouchEvents, so, while this helps desktop devices with using a mouse, it doesn't help mobile devices using touch.

Fixes #6726, fixes #1102.
2020-08-31 12:32:57 -04:00
Gary Katsevman
c64239f20c 7.9.3 2020-08-17 15:45:22 -04:00
Gary Katsevman
c91b510ef2
fix(tech): add abstract setScrubbing in tech.js (#6808) 2020-08-17 15:15:32 -04:00
Pavel Chuchuva
efa839bb88
docs(README): fix link to getting Video.js from npm (#6761) 2020-08-13 08:48:02 -04:00
mister-ben
88850e94af
fix(lang): Add PiP to de (#6803) 2020-08-13 08:47:11 -04:00
Markus Amalthea Magnuson
1761fa5976
docs: fix typo (#6760) 2020-08-06 01:42:34 -04:00
Gary Katsevman
179817a987 7.9.2 2020-07-20 17:03:31 -04:00
Gary Katsevman
245efacb59
fix(tech): add abstract crossOrigin method on Tech (#6765)
As part of #6588, we started using the crossOrigin method. However, it's
possible that a tech doesn't support this. Notably, the Flash tech. We
should instead have an abstract method on Tech that returns nothing so
we don't fail on those browsers.
2020-07-20 17:02:12 -04:00
Gary Katsevman
d4430a38a7 7.9.1 2020-07-13 12:32:48 -04:00
Gary Katsevman
94bea3502e
fix: limit fastSeek to Safari based browsers only (#6752)
Fixes #6722
2020-07-13 12:00:17 -04:00
Gary Katsevman
559b3d760c 7.9.0 2020-07-10 12:37:32 -04:00
Yichao Yu
8d462bcab0
feat: Add support for CAF, FLAC and WAV formats in known mimetypes (#6657)
Following https://en.wikipedia.org/wiki/HTML5_audio#Supported_audio_coding_formats
and https://hpr.dogphilosophy.net/test/index.php . These are formats that are supported
on some (most?) browsers.

Tested with a patched version of seafile. The flac and wav files correctly plays on
chromium on my Linux laptop and the caf file plays on my iPad.
(Chromium appears to play the caf file just fine but claim to not support it.)

Of course not all browsers support these but according to #5982 and my test result
I assume the browser detection is implemented somewhere else already.
2020-07-10 12:25:41 -04:00
Ileana Padilla
3d505ef0c5
feat: add debug mode (#6687)
When `debug(true)` is called, it will fire a `debugon` event that plugins and components can then use to do extra logging or anything else that's helpful to for debugging. It will also set the log level to debug.

When `debug(false)` is called, it will fire a `debugoff` event that plugins and components can then use to stop doing extra logging or helpful debugging. It will reset the log level to whatever it was previously.

Co-authored-by: ipadilla4 <ipadilla@brightcove.com>
2020-07-10 12:24:58 -04:00
Pat O'Neill
f6a66e62de feat: Add a default, plugin-specific logger to advanced plugins (#6693) 2020-07-10 11:59:04 -04:00
Alex Barstow
fdd807b81e
fix: Fullscreen broken in iOS (#6735)
The Fullscreen API is unsupported in iOS, so self.fsApi_.fullscreenerror and self.fsApi_.fullscreenchange are undefined, which was breaking the player after entering fullscreen by removing all bound player events.

Fixes #6707, fixes #6684, fixes #6645.
2020-07-07 17:33:03 -04:00
Gary Katsevman
2e6199074d
chore: update travis-ci badge 2020-06-19 15:24:46 -04:00
Gary Katsevman
6d2e52ab83
test: skip requestPictureInPicture test if API isn't available (#6719) 2020-06-19 15:09:25 -04:00
Brandon Casey
cad9114b2e
fix: Use clamp correctly in progress control (#6625) 2020-06-19 15:06:49 -04:00
Brandon Casey
6e7cc75aaa feat: Add named requestAnimationFrame to prevent performance issues (#6627)
Make sure we don't create multiple rAFs particularly when in a background tab.

Fixes #5937
2020-06-19 14:50:39 -04:00
Owen Edwards
4d9e1bcccc
chore: Remove "flash" and add "dash" in keywords about video.js (#6692)
Following on from #6603, change the keywords to match the updated description in `package.json`.
2020-06-19 14:39:36 -04:00
zhcj
d90569fed6
fix: add PiP to zh-CN.json (#6680)
add "Picture-in-Picture" & "Exit Picture-in-Picture"
2020-06-19 14:38:05 -04:00
mister-ben
907d1cd730
fix: Disable PIP if tech doesn't support it (#6678)
The requestPictureInPicture API and button currently assume thta if the browser supports the PIP API, the tech supports it. This results in a broken button with certain techs, such as youtube or HTML5 with an audio el.

Checks if disablePictureInPicture is exactly false. If true it's disabled and if undefined the tech does not support it.

Fixes #6398.
2020-06-19 14:36:43 -04:00
Owen Edwards
0c081a3520
Update description of video.js in the package.json file, and add 'hls' keyword (#6603)
* Update descritpion of video.js in the package.json file, and add 'hls' keyword

* Update package.json

Co-authored-by: Steve Heffernan <git@heff.me>
2020-06-05 10:11:38 -07:00
Gary Katsevman
d6b07f089e
fix(fs): don't set player element css props on native fullscreen (#6673)
Fixes #6640
2020-05-28 10:29:36 -04:00
Soroush Chehresa
756fbfc247
docs(README): Update CDN version urls (#6658) 2020-05-26 17:46:59 -04:00
mister-ben
0b91f74260
fix: addChild with index should allow for children that are elements (#6644)
The fix in #6297 doesn't work where the child to insert before is an element rather than a component, e.g. the video element.
Check if the child to insert before is an element, as well as checking if it has an el_
2020-05-26 17:00:23 -04:00
Gary Katsevman
a4ea1f9657
fix(text-tracks): set withCredentials on XHR if crossOrigin='use-credentials' (#6588)
Fixes #6587
2020-04-22 16:39:01 -04:00
Gary Katsevman
f779bad5f0
fix(package): update to @videojs/http-streaming@1.13.3 (#6610) 2020-04-22 16:38:31 -04:00
Grzegorz Blaszczyk
dbd5203a0b
feat: adds disablePictureInPicture method to the player API. (#6378) 2020-04-22 12:41:21 -04:00
Gary Katsevman
8c66c58346
feat: support fastSeek during scrubbing if available (#6525)
This will allow us to use iframe playlists on HLS on Safari browsers and eventually, add support in VHS.
2020-04-22 12:40:26 -04:00
Gary Katsevman
808d818c7d
docs(faq): update FAQ about HLS and DASH with VHS (#6608)
Fixes #6590
2020-04-22 12:13:58 -04:00
Thalles Koester
90e2b0fa5c
fix(lang): Update pt-BR.json (#6598) 2020-04-22 12:13:25 -04:00
Gary Katsevman
a37f853c39 7.8.1 2020-04-16 11:47:46 -04:00
Brandon Casey
3ac11d0463
fix: update being called on seekbar during dispose (#6576) 2020-04-13 12:00:04 -04:00
EdgeNeko
8f930c5857
docs(angular): fix demo for angular v8+. (#6581)
Without the `static: true` property, an `not defined ReferenceError` will be thrown since the target is null on init.
2020-04-09 15:51:23 -04:00
Gary Katsevman
04e64622b3 7.8.0 2020-04-06 14:16:07 -04:00
Gary Katsevman
f711ddcfb6
feat(cors): allow both crossOrigin and crossorigin method and options (#6571)
Fixes a bug with the setter and aliases crossorigin to crossOrigin.

This is a followup from #6533.
2020-04-06 13:04:22 -04:00
Aaron Stone
ea20edcd99
feat(cors): add crossOrigin option to enable cookies on requests (#6533)
Co-authored-by: Abraham Cruz Sustaita <abraham.sustaita@gmail.com>
Co-authored-by: Gary Katsevman <git@gkatsev.com>
2020-04-06 11:53:45 -04:00