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

3625 Commits

Author SHA1 Message Date
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
Gary Katsevman
e4e8837ded
fix(package): update @videojs/http-streaming to version 1.12.1 (#6467)
Closes #6430
2020-02-18 14:39:31 -05:00
Pat O'Neill
3b0f0b9ea8
fix(lang): add missing Arabic translations (#6435) 2020-02-12 13:51:09 -05:00
Gary Katsevman
8a205d049e
refactor: support requestFullscreen's promise, better internal handling of events (#6422) 2020-01-31 15:59:12 -05:00
Grzegorz Blaszczyk
6f77778a70 fix: improves control bar hiding functionality (#6400)
Fixes #6391
2020-01-15 12:11:03 -05:00
Brandon Casey
7008777985 fix: slider screenreader value returning as NaN (#6404)
Slider's getProgress was return a string when it should've been returning a number.

Fixes #5984.
2020-01-15 12:07:45 -05:00
Brandon Casey
bcaa86989b refactor: use Fn.UPDATE_REFRESH_INTERVAL in seekBar & liveTracker (#6407)
Follow up from #6142 to include a couple of other uses.
2020-01-15 12:04:27 -05:00
Thijs Triemstra
9bb7acbeb3 chore(travis): test on ubuntu 18 (bionic) (#6399) 2020-01-13 14:24:09 -05:00
Gary Katsevman
8ae71d8adc 7.7.4 2019-12-24 11:41:34 -05:00
Gary Katsevman
17d8046836
revert: Revert "fix(iOS): pause player on suspend or stalled if extra buffer is available (#6199)" (#6373)
This reverts commit c791cd8c4e.

Fixes #6330
2019-12-24 11:25:01 -05:00
Grzegorz Blaszczyk
cd4076a566 fix: updates seekbar position after mouse up event is triggered. (#6372)
When we are paused, call update directly, otherwise, call the throttled update.

Fixes #6232, fixes #6234, fixes #6370.
2019-12-24 11:24:50 -05:00
Gary Katsevman
917d898a48
fix: IS_IPAD should be false on iPhone (#6371)
Safari user agent. However, the new check also returns true for iPhones.
Therefore, we should exclude iPhones from the check.
2019-12-24 11:23:42 -05:00
Dylan Jhaveri
274299b45f fix: broken logo link in README and docs (#6345)
Depends on videojs/videojs.com#112

Fixes #6340
2019-12-03 10:14:38 -05:00
Gary Katsevman
7d02e53b54 7.7.3 2019-12-02 14:37:32 -05:00
Gary Katsevman
221497fecc chore: update package-lock.json 2019-12-02 14:37:21 -05:00
Gary Katsevman
55c686b6cd 7.7.2 2019-12-02 14:36:17 -05:00
Tsachi Shlidor
df3c14a0e3 fix(sass): import path has cwd once again (#6326) 2019-12-02 14:14:18 -05:00
Gary Katsevman
ca84448026
fix: turn on strict mode again (#6334)
We had to turn off strict mode (#4551) in Video.js due to a change in vtt.js. That has now been fixed in videojs/vtt.js#40 and released as part of 0.15.2 which will be available via #6333.

Fixes videojs/vtt.js#15
2019-12-02 14:13:36 -05:00
Gary Katsevman
7bbd0ca0c4
fix(package): update videojs-vtt.js to version 0.15.2 (#6333)
Closes #6332
2019-12-02 14:13:08 -05:00
Gary Katsevman
ce5e989cc7 7.7.1 2019-11-22 12:46:24 -05:00
Gary Katsevman
25d15d4b14
fix(extend): super_ should be available for backwards compatibility (#6329)
Fixes #6328
2019-11-22 12:32:18 -05:00
Gary Katsevman
1545804959 7.7.0 2019-11-19 16:09:53 -05:00
Gary Katsevman
b414c60461
fix(pkg): update @videojs/http-streaming to 1.11.2 (#6323) 2019-11-19 16:03:03 -05:00
Alex Barstow
b3c2343f98 fix: DRMed content goes black in IE/Edge when video element focused (#6318)
Any programmatic call to focus when playing back DRMed content on IE/Edge causes the video element to turn black. Instead, don't call focus() in those cases.

Fixes #6270.
2019-11-19 14:42:45 -05:00
Marco Del Toro Barragan
a11f3fa574 fix: detect iPadOS as IS_IPAD (#6319)
iPadOS defaults to desktop mode unless Safari is opened in split screen mode. The only way to detect it is to assume that Safari with Touch enabled is iPad. This is good enough until and if a better way to detect it is made available.
2019-11-19 13:40:35 -05:00
Grzegorz Blaszczyk
ccca846da8 feat: resets pastSeekEnd_ variable. (#6249)
* feat: resets pastSeekEnd_ when its value is much higher than seeking increment.

* fixes unit tests
2019-11-15 13:44:34 -05:00
Grzegorz Blaszczyk
4f8c4988d2 feat: add core ES module. (#6287)
Allows you to do `import videojs from 'video.js/core.es.js';` to go along with `require('video.js/core.js')`;
2019-11-15 13:44:11 -05:00
mister-ben
f7b3772e27 fix: ensure components added with an index are added in the correct location (#6297) 2019-11-14 15:22:42 -05:00
Gary Katsevman
a615236cfb chore: include changelog from 7.6.x branch 2019-11-07 17:21:53 -05:00
Gary Katsevman
680e7d78d7 fix: bring back Android 4.x support (#6289)
Use a WeakMap and Set shams for browsers that don't support it.
2019-11-07 17:21:53 -05:00
Pat O'Neill
29638b7969 fix: ensure the default ID of the first player is 'vjs_video_3' as some people have relied on this (#6216)
When a player is created without an id on the embed code, Video.js automatically assigns it one based on an auto-incrementing number (a.k.a. a GUID). For the longest time, this has happened to result in the default id of the first player being vjs_video_3.

It was never intended for users to rely on this value being consistent, but users do strange and inadvisable things.

PR #6103 had an unintended side effect in that it changed the default id to vjs_video_2, which we worry could affect some users of Video.js.
2019-11-07 17:21:52 -05:00
Philipp Daniel Birkl
aeb95889a0 fix(lang): Fixed typos in german translation (#6275) 2019-11-04 15:20:30 -05:00
Brion Vibber
0e37fbf02c feat: option to load text tracks on demand vs preload (#6043)
Reimplementation of https://github.com/videojs/video.js/pull/2192
on current code. Seems to work but has not been carefully tested,
especially on conditions such as slow networks and complex tracks.

For https://github.com/videojs/video.js/issues/5252

A `preloadTextTracks` tech option is added, set to true by default,
to keep current behavior intact. Alternate behavior can be enabled
by setting this to false.

This delays loading of the VTT cue files until they are selected.
For sites like Wikipedia that tend to have large numbers of
crowdsourced subtitles and can show many files together on one
page, this saves a lot of unnecessary network transfer and API
hits.

Does mean there may be dropped cues while switching to a track
that requires on-demand loading.

Example usage:

videojs(element, {
  html5: {
    preloadTextTracks: false
  }
};
2019-11-04 15:13:24 -05:00
Dan Michael O. Heggø
e37996d3c3 fix(lang): Update Norwegian translations (#6220) 2019-10-07 12:23:36 -04:00
mister-ben
260cfcd247 fix: Make suppressing no source error compatible with videojs-errors (#6217) 2019-10-04 13:34:54 -04:00
Marco Del Toro Barragan
c791cd8c4e fix(iOS): pause player on suspend or stalled if extra buffer is available (#6199)
On iOS, when disconnecting the headphones, we may receive a stalled or suspend event. In those case, we may actually still have buffer available for us to play through rather than actually having stalled or suspended. In those cases, we should pause the player to prevent playback issues.
2019-10-04 13:31:41 -04:00
Owen Edwards
f34d4413a0 docs: add note about SubsCapsButton only showing up when configured with text tracks (#6254) 2019-10-04 09:46:11 -04:00
Gary Katsevman
7a85e2a046
docs: update Components list (#6253)
Add SubsCapsButton, SeekToLive and LiveTracker.

Fixes #5980.
2019-10-03 13:38:20 -04:00
Gary Katsevman
de2daead65
chore: ignore sandbox during linting (#6208) 2019-08-30 14:56:55 -04:00
Brandon Casey
4134a9734b test: run tests via rollup (#5601) 2019-08-30 14:56:41 -04:00
Brandon Casey
85ad44e13e chore: package json cleanup (#5649) 2019-08-30 14:14:53 -04:00
Brandon Casey
bd58039c78 perf: Save 3740 bytes gizpped by getting rid of xhr deps (#6164)
Switch to @videojs/xhr and setup babel runtime helpers properly.
2019-08-30 11:13:45 -04:00