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

3566 Commits

Author SHA1 Message Date
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
greenkeeper[bot]
6d18c40e1f
fix(package): update @videojs/http-streaming to version 1.13.2 🚀 (#6558)
Co-authored-by: greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
2020-03-30 20:23:07 -04:00
Brandon Casey
47ba7040b0
feat: Add a function for getting descendants from components (#6519) 2020-03-30 17:39:23 -04:00
Brandon Casey
668c7f44d6
fix(liveui): tweaks to prevent jitter (#6405) 2020-03-30 17:27:45 -04:00
greenkeeper[bot]
1dd06a26c0
fix(package): update @videojs/http-streaming to version 1.13.1 🚀 (#6548)
Co-authored-by: greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
2020-03-28 10:35:17 -04:00
greenkeeper[bot]
8dc1e6f247
fix(package): update @videojs/http-streaming to version 1.13.0 🚀 (#6547)
Co-authored-by: greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
2020-03-26 18:16:37 -04:00
Gary Katsevman
da37fab130
feat(fs): return a promise from requestFullscreen and exitFullscreen when we can (#6424) 2020-03-26 17:26:26 -04:00
Kslr
a8d4d82f80
fix(lang): update zn-CH translations (#6546) 2020-03-26 13:49:34 -04:00
greenkeeper[bot]
2997b808d0
chore(package): update rollup to version 2.2.0 🚀 (#6542)
Co-authored-by: greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
2020-03-25 17:55:59 -04:00
Marco Garay
768adb1200
feat: Improve currentTime to allow it to be called before player is ready (#6507)
In the cases where the player isn't ready, or we are in the middle of changing sources, we will wait for `canplay` and then seek to the provided time without requiring Video.js users to handle this themselves.

Co-authored-by: Marco Garay <mgaray@brightcove.com>
2020-03-25 17:54:51 -04:00
Gary Katsevman
4a82283b97 7.7.6 2020-03-25 16:26:18 -04:00
Gary Katsevman
2c9687596c
chore(package): upgrade to babel 7.9 and enable bugfixes (#6541) 2020-03-24 11:04:01 -04:00
Margaux
fce3ad23b9
docs: add an example Angular integration (#6390) 2020-03-16 17:29:00 -04:00
greenkeeper[bot]
0a7aba35ce
fix(package): update @videojs/http-streaming to version 1.12.3 🚀 (#6527)
Co-authored-by: greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
2020-03-16 17:13:46 -04:00
Gary Katsevman
d1702d5e45
docs(player): fix addRemoteTextTrack description of manualCleanup option (#6521) 2020-03-12 11:50:43 -04:00
Gary Katsevman
52c181ddb0
fix: trigger change events on remoteTextTrack when nativeTextTrack is set to true (#6410)
It seems we have never triggered change events on remoteTextTrack when we were using native text tracks. This was a problem for VHS, which exclusively uses text tracks.
This makes it so we do trigger the event. Main issue with this change is that it creates a potential for a false positive where a change event was triggered from a non-remote text track but the remoteTextTrack list still received a change event. This issue is mitigated by best practices of looping through the list looking for the modes that you care about.

Co-authored-by: Kevin Kipp <kevin.kipp@gmail.com>
Co-authored-by: Kyle Boutette <kyleveB@gmail.com>
2020-03-12 11:26:09 -04:00
Darius Oleskevicius
cc2b82b8d7
fix: DRM content goes black in IE/Edge when focus is placed on video element (#6508)
This is a followup from #6318 but for the poster image.
2020-03-10 16:35:54 -04:00
Brandon Casey
47349c8e29
fix: add a threshold of 30s for the liveui to show (#6409) 2020-03-10 15:53:17 -04:00
Grzegorz Blaszczyk
5682f14ccd
fix: fix a typo in en translation file (#6505) 2020-03-06 16:36:05 -05:00
Gary Katsevman
749ef548ed
fix: detect chromium-based Edge (#6497)
This loosens the regex used for Edge. Still detects legacy Edge but now
also detects the new Edge.

IS_CHROME still returns true for Edgium but I think that it's worth
keeping that as the behavior should be pretty close. If there is a need
to differentiate, can check IS_EDGE and also whether IS_EDGE &&
IS_CHROME is present. Combining with IS_WINDOWS could also be useful as
some capabilities of Edge are only available in Windows.
2020-02-26 11:43:04 -05:00
Ehsan Chavoshi
31ac9d7a58
fix(lang): improve Persian translation (#6468) 2020-02-24 17:48:01 -05:00
Gary Katsevman
a24d5a3a04 7.7.5 2020-02-19 11:41:29 -05:00
greenkeeper[bot]
30d5874226
fix(package): update @videojs/http-streaming to version 1.12.2 🚀 (#6469) 2020-02-18 23:52:27 -05:00
Marco Garay
e6c03c7896
fix: current time tooltip does not update (#6445) 2020-02-18 15:29:55 -05:00