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

3413 Commits

Author SHA1 Message Date
Grzegorz Blaszczyk
075a5043b9 fix: change 'mousedown' to the 'mouseup' event in the player (#5992)
This player behavior is very useful for accessibility because the user can cancel the action by clicking outside the button area. It is recommended by the WCAG 2.1 "2.5.2 Pointer Cancellation" spec.
2019-05-21 11:51:37 -04:00
gunchleoc
fc2147523b feat(lang): add Scottish Gaelic (gd.json) translation (#5972) 2019-05-17 16:18:25 -04:00
Grzegorz Blaszczyk
0f501f9fa1 feat: add 'audio/mp4' mimetype for m4a files (#5982) 2019-05-17 16:17:24 -04:00
greenkeeper[bot]
d41794c42c fix(package): update @videojs/http-streaming to version 1.10.2 🚀 (#5991) 2019-05-17 15:43:30 -04:00
Gary Katsevman
4585c08bdb
fix(player): silence rejected fullscreen promise (#5970)
The fullscreen API now returns a promise. If the player is inside an
iframe that doesn't allow fullscreen, the promise will reject and cause
an error to be logged. Instead, we should silence this promise.

Fixes #5918
2019-04-29 15:13:56 -04:00
Brandon Casey
1eb47f0690 chore: add a sandbox page for testing autoplay values. (#5933) 2019-04-29 14:45:02 -04:00
mister-ben
e1afa3e181 docs: emphasize src object and video-js element (#5960) 2019-04-29 14:22:47 -04:00
Chuck Wilson
45d1ca9c73 chore: change rollup config so that npm run watch works (#5966)
There was a mux.js file missing from the externals list for module outputs.
2019-04-29 13:18:31 -04:00
Brandon Casey
a55c51fd59 test: restore prototype modifications and fix flaky tests (#5964) 2019-04-29 12:01:37 -04:00
Thijs Triemstra
629594ece5 fix: use performance.now() when possible (#5870) 2019-04-24 11:29:22 -04:00
Gary Katsevman
c59ba5f465
chore(test): upgrade to latest sinon (#5954)
Fixes #5953
2019-04-24 10:22:48 -04:00
Gary Katsevman
4d626b029a
chore: don't log karma config (#5955) 2019-04-23 22:01:58 -04:00
Gary Katsevman
98e86ea235
fix(package): update @videojs/http-streaming to version 1.10.1 (#5951)
Closes #5934
2019-04-23 14:36:06 -04:00
greenkeeper[bot]
a17e662688 Update videojs-font to the latest version 🚀 (#5941)
* fix(package): update videojs-font to version 3.1.1

* chore(package): update lockfile package-lock.json
2019-04-23 14:28:45 -04:00
greenkeeper[bot]
7e8c2eed1c chore(package): update videojs-generate-karma-config to version 5.2.0 🚀 (#5935) 2019-04-23 14:28:03 -04:00
Owen Edwards
f4154b9de0 Add role='application' to the video element on Chrome on Windows, to work around a JAWS screen reader bug (#5863) 2019-04-23 13:45:27 -04:00
Owen Edwards
322dae44b5 feat(middleware): allow middleware to handle volume setter and getter (#5906)
Allow middleware to handle volume setter and getter. This supports things like ducking the playback volume programmatically, without affecting the player's UI volume control.
2019-04-23 13:42:52 -04:00
Gary Katsevman
1a52b6971e 7.5.4 2019-04-12 10:51:09 -04:00
Evan Farina
5973a62f67 fix: call reset if we are paused or no promises, otherwise wait for play promise to resolve (#5876)
Calling video.load while the video is trying to play (that is between play and playing event) throws an error. Instead, just wait for playback to happen before resetting.

Fixes #5875
2019-04-11 15:53:31 -04:00
Brandon Casey
ad53b80b8a fix: correctly resolve play promise when terminated via middleware (#5895) 2019-04-11 14:29:27 -04:00
Thomas
1844482bf5 fix: fix bug preventing control bar from hiding on mobile (#5836) 2019-04-11 13:57:56 -04:00
Richard Bushell
22d0514257 fix: fix fullscreen detection when player is nested within document fullscreen (#5912) 2019-04-11 13:57:19 -04:00
Matthias
cd073417ed lang: fix typo in de translation (#5920) 2019-04-11 13:54:33 -04:00
Pat O'Neill
458a5ead44
fix: explicitly remove all document-level listeners on player dispose (#5929) 2019-04-11 13:52:36 -04:00
Pat O'Neill
55b37524a3
fix: hide the progress control and show the subs-caps button when using Live UI at extra small size (#5915) 2019-04-11 13:35:57 -04:00
Pat O'Neill
c85bc00df2
fix: always show the mute button by default in responsive mode (#5914) 2019-04-11 12:37:52 -04:00
mister-ben
b2eae7bdbf docs(ModalDialog): add missing documentation for pauseOnOpen (#5908) 2019-04-03 11:46:58 -04:00
Gary Katsevman
c030eda294 7.5.3 2019-03-29 14:56:53 -04:00
Otis Wright
4c277fd0f6 docs: add an example Vue integration.md (#5899)
* Create vue.md

Instructions for Vue integration (based on React example).

* Add link to Vue guide
2019-03-28 19:56:29 -04:00
Brandon Casey
511f729b7a perf(live-tracker): disable live tracker on IE11 when document is hidden (#5896)
Disable the live tracker on IE11 when the document is hidden to fix the slow down and eventual crashing of web pages on IE11.

After #5879 was completed, we noticed that live streams still have an issue. This is because the live tracker we have also uses setInterval. Unfortunately, just disabling setInterval in the live tracker was not enough. Instead, we decided the best course of action is to just disable the live tracker altogether.
2019-03-28 18:19:07 -04:00
Chuck Wilson
6c644feaa0 docs(live): minor spelling/grammar corrections (#5894) 2019-03-28 15:36:33 -04:00
Brandon Casey
8e43cff122 chore: add a sandbox for HLS (#5897) 2019-03-28 15:35:00 -04:00
Gary Katsevman
ecaa225658 7.5.2 2019-03-25 12:08:31 -04:00
Brandon Casey
3dc6fbf6e7 fix: fix audio and video track selection (#5890)
Fixes #5887
2019-03-25 12:02:33 -04:00
Gary Katsevman
139178c12b 7.5.1 2019-03-22 13:55:08 -04:00
Brandon Casey
142cc678cb perf: Fix memory leaks in safari, edge, and ie (#5880)
1. We were not always able to clean up `resize` on the `ResizeManager`, as the iframe
contentWindow can disappear before dispose
2. Native Tracks on Safari do not have an `off` so we have to deal with
event listeners manually

Fixes #5878
2019-03-22 12:03:52 -04:00
Gary Katsevman
894dd9eb74
perf(seek-bar): don't update play progress when document is hidden (#5879)
The seek bar updates on a 30ms interval to have a nice, smooth transition as time ticks forward. Unfortunately, IE11 has some performance issues with interval when the document is hidden. This doesn't appear to be an issue when using setTimeout but using a setTimeout was causing the play progress to appear very jerky in comparison.
Instead, we should just not update the play progress when the document is hidden. Besides solving the issue in IE11, it makes sense to do as no one could be seeing the progress bar. In addition, update() is now a no-op if the seek-bar element isn't visible.

Fixes #5575
2019-03-22 10:47:26 -04:00
ntnyq
8532182b60 fix(lang): improve Chinese translations (#5834) 2019-03-22 10:46:34 -04:00
greenkeeper[bot]
cd6ac9d7ed fix(package): update @videojs/http-streaming to version 1.9.3 🚀 (#5883)
Fixes #5823
2019-03-21 14:52:44 -04:00
Brandon Casey
6e173b017f test: check dom-data to verify we aren't leaking memory and event handlers (#5862) 2019-03-19 15:05:48 -04:00
marguinbc
d07f97dc94 fix: do a null check for tech when checking if we can toggle mute (#5857)
If the mute toggle checks whether mute can be set before the tech is ready, it may throw an error and cause issues. Instead, add a null check.
2019-03-18 16:35:09 -04:00
Brandon Casey
c632b24364 perf(player): turn off all track list listeners on dispose (#5867) 2019-03-18 15:54:55 -04:00
Chuck Wilson
92c66ad77e chore(text-track): fix it's/its typo (#5868) 2019-03-18 15:53:11 -04:00
greenkeeper[bot]
32a43d18cb fix(package): update @videojs/http-streaming to version 1.9.2 🚀 (#5865) 2019-03-18 15:52:08 -04:00
Brandon Casey
23a36f338b test: memory leak fixes in tests (#5861) 2019-03-18 15:49:48 -04:00
Brandon Casey
f01d6f4e23 perf: fix more memory leaks (#5860) 2019-03-18 15:44:44 -04:00
Thijs Triemstra
a271ecae8e docs(hotkeys): hotkeys require player focus (#5859)
Fixes #5832
2019-03-18 15:43:52 -04:00
Brandon Casey
20bf42d8b9 perf: fix an event target memory leak (#5855) 2019-03-18 15:40:55 -04:00
Brandon Casey
6eb9fd3dfb fix(resize-manager): call super.dispose() in dispose method (#5853) 2019-03-18 15:33:51 -04:00
Brandon Casey
a2431ce74c perf: Remove playerEvent and extra timeupdate handler in SeekBar (#5852) 2019-03-18 15:32:08 -04:00