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

3253 Commits

Author SHA1 Message Date
Gary Katsevman
607ed8bea8 7.3.0 2018-10-26 13:57:01 -04:00
Brandon Casey
8bf42064f3 fix: blob urls being ignored as valid sources (#5525)
Instead of checking for blob urls in the generic updateSourceCaches method, check for blob urls inside of handleTechSourceset before updating the source cache.

Fixes #5504.
2018-10-25 18:56:56 -04:00
Brandon Casey
401fa28d40 chore(rollup): fix watch build with globals/externals (#5519) 2018-10-25 16:01:11 -04:00
Brandon Casey
5f73f76a11 chore: move scss grunt tasks to npm scripts (#5520) 2018-10-25 15:45:08 -04:00
greenkeeper[bot]
ad6fc7fc0a fix(package): update @videojs/http-streaming to version 1.4.1 🚀 (#5527) 2018-10-25 15:29:07 -04:00
Grzegorz Blaszczyk
b8fe624f9e fix: add support for :focus-visible selector (#5483)
Add support for focus-visible so that mouse-users don't need to see focus outlines but keyboard and Screen Reader users still do. It includes both the standard selector and the selector intended to work with the polyfill: https://github.com/WICG/focus-visible.
The polyfill is *not* included in Video.js and must be included on the page separately.

Fixes #5474.
2018-10-25 15:23:13 -04:00
Brandon Casey
4827110bba fix: Prevent ResizeManager from being clicked on safari, fix playerresize on firefox (#5522)
Move the ResizeManager behind the video element with negative z-index and remove visibility: hidden. This fixes issue where right click event wasn't triggered on the correct element and resize was not happening on firefox.
2018-10-25 11:16:38 -04:00
greenkeeper[bot]
0847485720 fix(package): update @videojs/http-streaming to version 1.4.0 🚀 (#5523) 2018-10-24 14:15:30 -04:00
Brandon Casey
a9ae77fa3c chore: remove rollup filesize plugin to double build speed (#5518) 2018-10-22 14:36:36 -07:00
greenkeeper[bot]
d8e88cfdbf chore(package): update remark-parse to version 6.0.0 🚀 (#5514) 2018-10-22 12:15:45 -07:00
greenkeeper[bot]
8fa2f8a15c chore(package): update remark-stringify to version 6.0.0 🚀 (#5515) 2018-10-22 12:11:59 -07:00
Chris Ng
f66692ed08 docs(player): make reset() method more clear (#5501) 2018-10-22 11:57:59 -07:00
Michael Nowack
dfcfa45be1 fix(TextTrackSetting): Do not use default button type. (#5512)
The default button type is "submit" which triggers a form submit. Thus
if videojs is embedded in a form element the button triggers a form
submit.

This is the same problem with same solution as discussed in https://github.com/videojs/video.js/issues/2470
2018-10-22 11:56:50 -07:00
greenkeeper[bot]
46e3ef0951 fix(package): update @videojs/http-streaming to version 1.3.1 🚀 (#5508) 2018-10-22 11:55:38 -07:00
greenkeeper[bot]
29005e9172 chore(package): update remark-cli to version 6.0.0 🚀 (#5516) 2018-10-22 11:54:29 -07:00
Gary Katsevman
313036e132
chore(babel): Upgrade to Babel 7 (#5498)
Use npx babel-upgrade --write --install to initiate the upgrade. Then update grunt and rollup.

Decreases minified, gzipped filesize by about 1KB. Decreases build times by a few minutes.
2018-10-12 15:54:51 -04:00
Brandon Casey
59adeb332f chore: switch to prepublishOnly npm script to prevent build on npm ci (#5497) 2018-10-11 17:29:06 -04:00
Pat O'Neill
6df3ac78d4 feat: Add responsive option, which enables breakpoints support. (#5496)
Follow-up for #5471

This makes the breakpoints option and `breakpoints()` method clearer and introduces the responsive option and `responsive()` method, which will turn on the breakpoints.

The return value of `currentBreakpoint()` was simplified to only ever return a string (empty if none).

Also, added convenience methods: `responsive()`, `getBreakpointClass()`, and `currentBreakpointClass()`.
2018-10-11 17:03:33 -04:00
greenkeeper[bot]
159483e050 fix(package): update @videojs/http-streaming to version 1.3.0 🚀 (#5482) 2018-10-11 16:53:25 -04:00
Owen Edwards
e671bc3992 docs(README): refer to minified JS and CSS files, improve general layout (#5494)
Refer to minified versions of the JS and CSS files from `unpkg` and `cdnjs`, and add notes about versions. Remove unnecessary quoting in the README, and clarify the comment about v7 (and later) not having the Google Tracking pixel.
2018-10-11 16:52:50 -04:00
greenkeeper[bot]
f9fcd143ef chore(package): update grunt-sass to version 3.0.2 🚀 (#5486)
grunt-sass made node-sass or dart-sass be optional. Need to add node-sass as a dev-dep and then configure grunt-sass with the implementation to use.
2018-10-10 17:20:10 -04:00
Pat O'Neill
51bd49f4bc feat: Add breakpoints option to support toggling classes based on player width. (#5471)
This adds a breakpoints option. By default, this option is false meaning this is an opt-in feature.

When passing true, it will use a default set of breakpoints. Or custom breakpoints can be passed if users do not like our breakpoints (or previously-existing style decisions).

- Add breakpoints option.
- Adds some new (currently unused) classes: vjs-layout-medium, vjs-layout-large, vjs-layout-x-large, and vjs-layout-huge.
- Add updateCurrentBreakpoint and currentBreakpoint methods to the player.
- Update css/components/_adaptive.scss
- Add sandbox/responsive.html.example

Closes videojs/video.js#4371
2018-10-10 15:30:20 -04:00
Gary Katsevman
7292253fe0
docs(README): update info about google analytics (#5491)
Fixes #5361
2018-10-10 11:21:18 -04:00
Gary Katsevman
794cd71682
docs(fixup): fixup docs (#5489) 2018-10-10 11:09:53 -04:00
greenkeeper[bot]
29c8259b7a fix(package): update videojs-font to version 3.1.0 🚀 (#5476) 2018-10-09 16:50:31 -04:00
Gary Katsevman
2e72fc3dec
docs(layout): document fluid and fill mode (#5481) 2018-10-05 15:28:19 -04:00
Gary Katsevman
ca09968b7d
feat(fill): make vjs-fill a player mode (#5478)
Like fluid mode, you can enable it with the class or by calling the fill
method. Calling fill() will turn off fluid mode and calling fluid() will
turn off fill mode.

Fluid mode takes precedence over fill mode.
2018-10-05 14:28:09 -04:00
Gary Katsevman
966eb56c02
feat: createLogger for easier logging in individual modules (#5418)
Create a new createLogger module for better debugging. Each logger has its own log level and its own createLogger that will nest logs underneath them. `player.log` is also included, which logs the player id as part of the log statement. The history API also got a filter method.

For example:
```js
var log = videojs.log.createLogger('foo');
log('hello');
// > VIDEOJS: foo: hello
```
2018-09-28 16:52:58 -04:00
Pat O'Neill
ebf8d6671c docs: Update JSDoc comments, so core API docs for the videojs function are accurate. (#5385) 2018-09-28 16:21:18 -04:00
Gary Katsevman
c2eb138e66
chore(lang): update translations-needed doc (#5459) 2018-09-28 16:06:32 -04:00
Gary Katsevman
426e210d7d
chore(package): upgrade rollup to 0.66.2 (#5458) 2018-09-28 16:06:21 -04:00
greenkeeper[bot]
e50b19368e chore(package): update husky to version 1.0.1 🚀 (#5448) 2018-09-28 16:06:06 -04:00
greenkeeper[bot]
3d7266025d chore(package): update rollup to version 0.66.0 🚀 (#5439) 2018-09-28 15:08:56 -04:00
greenkeeper[bot]
55f2b15575 chore(package): update klaw-sync to version 6.0.0 🚀 (#5445)
* chore(package): update klaw-sync to version 6.0.0

* chore(package): update lockfile package-lock.json
2018-09-28 15:05:56 -04:00
Gary Katsevman
6bff3ce779
fix(vjsstandard): update to 8.0.2 and fixup linting (#5413) 2018-09-28 14:58:15 -04:00
Gary Katsevman
511a02e8b8 7.2.4 2018-09-25 15:26:41 -04:00
Gary Katsevman
565b75075e chore(package-lock): update to npm 6.4.1 & node 8.12 2018-09-25 15:26:21 -04:00
greenkeeper[bot]
b9a7cc8049 fix(package): update @videojs/http-streaming to version 1.2.6 🚀 (#5444) 2018-09-25 14:44:23 -04:00
Gary Katsevman
e69842ce2e
fix(text track display): update on playerresize and orientationchange (#5447)
On mobile devices, when changing orientation, or if the player gets resized, the captions won't update to reflect the new orientation or player size. However, they do get updated the next time they are redrawn. Instead, we should redraw the captions whenever `orientationchange` and `playerresize` get triggered.
2018-09-25 14:43:41 -04:00
Gary Katsevman
15df4e16b4
fix(text-tracks): cuechange handler not triggering correctly (#5446)
We were only triggering cuechange events if a metadata track started out as not disabled or only when setting the mode to 'showing'

Fixes #5308
2018-09-25 14:42:58 -04:00
Gary Katsevman
74bbc5d4c0 7.2.3 2018-09-13 14:15:27 -04:00
greenkeeper[bot]
b390f2cdc1 chore(package): update grunt-karma to version 3.0.0 🚀 (#5421) 2018-09-12 11:14:36 -04:00
greenkeeper[bot]
819195894c chore(package): update grunt-contrib-clean to version 2.0.0 🚀 (#5429) 2018-09-11 11:27:52 -04:00
greenkeeper[bot]
08cf1be301 chore(package): update grunt-contrib-connect to version 2.0.0 🚀 (#5428) 2018-09-11 11:27:13 -04:00
Brandon Casey
235b18853e fix(ResizeManager): fixup the null check (#5427) 2018-09-11 11:26:15 -04:00
greenkeeper[bot]
cc650f779d chore(package): update grunt-contrib-cssmin to version 3.0.0 🚀 (#5417) 2018-09-07 08:56:54 -07:00
Gary Katsevman
b25f024a04
fix: make sure all attributes are updated before applying to tag (#5416)
Fixes #5309
2018-09-07 08:56:11 -07:00
Alexander
6d6bfd1420 fix: use consistent id for tech, no matter how it is loaded (#5415)
Change the constant used in the techId prop to the camelCased version, this will result on consistent id when loadTech_() is executed.

Fixes #5411
2018-09-07 08:55:02 -07:00
greenkeeper[bot]
2e83888f0f chore(package): update klaw-sync to version 5.0.0 🚀 (#5414) 2018-09-06 11:40:42 -07:00
Owen Edwards
197d81b636 chore(package): Run npm audit fix (but roll back videojs-standard version) (#5386) 2018-09-05 18:05:30 -07:00