1
0
mirror of https://github.com/videojs/video.js.git synced 2025-01-04 06:48:49 +02:00
Commit Graph

3238 Commits

Author SHA1 Message Date
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
greenkeeper[bot]
6e6ade03aa chore(package): update rollup to version 0.65.0 🚀 (#5400) 2018-09-04 17:05:13 -07:00
greenkeeper[bot]
335a0c8107 fix(package): update @videojs/http-streaming to version 1.2.5 🚀 (#5399) 2018-09-04 17:04:54 -07:00
Gary Katsevman
96ae3c2aa5
chore(package): update grunt-cli to version 1.3.1 (#5409)
Closes #5383
2018-09-04 16:50:54 -07:00
Adam Eisenreich
19ee7df2fe fix(lang): Fixed typos in cs translation (#5407) 2018-09-04 16:35:33 -07:00
Brandon Casey
3744df1680
test: fix travis ci issues with resize-manager tests (#5390) 2018-08-28 16:24:26 -04:00
Gary Katsevman
4a299a7ffa 7.2.2 2018-08-14 17:12:43 -04:00
Gary Katsevman
8e9d92cc98
fix: add debounced.cancel and use it in ResizeManager (#5378)
It's possible that ResizeManager will trigger its debounce handler but
then get disposed before the handler runs. This can cause tests to fail,
so, instead, we should cancel the debounce when ResizeManager is
disposed.
2018-08-13 16:39:50 -04:00
greenkeeper[bot]
c3098eeadc fix(package): update @videojs/http-streaming to version 1.2.4 🚀 (#5377)
Fixes #5044
2018-08-13 13:55:30 -04:00
Gary Katsevman
e9f754b112 7.2.1 2018-08-13 12:09:56 -04:00
Brandon Casey
58405fdf78 fix: always return a promise from play, if supported (#5227)
If Promise is available or if Promise is polyfilled, then we'll return a new Promise from `play()` that will get fulfilled with the value returned from the `play()` method. This means that on IE11, this promise will get resolved when we call `play()` even if play doesn't succeed. We will have a follow-on PR to polyfill this behavior and resolve or reject the promise for browsers like IE11 that don't return a promise from `play()`.
2018-08-10 16:27:05 -04:00
greenkeeper[bot]
6893091f84 chore(package): update karma to version 3.0.0 🚀 (#5370)
Karma 3.0.0 drops support for node 4.
2018-08-10 16:24:03 -04:00
Brandon Casey
6f072d8e2f fix: call component dispose in resize manager to fix leak (#5369)
Because we add Touch Activity in the parent class and those don't actually get removed in Resize Manager we leak on every dispose. Calling super.dispose() cleans them up because we remove our list of handlers via a call to DomData.removeData

Fixes #5339
2018-08-10 16:21:13 -04:00
Gary Katsevman
db4b89434a
fix(package): update @videojs/http-streaming to version 1.2.3 (#5368)
Closes #5365
2018-08-10 15:13:55 -04:00
Gary Katsevman
9c00267728
chore(https): update a lot of links to be https (#5372) 2018-08-10 15:13:32 -04:00
Gary Katsevman
9cb1ba5ae9
fix(sourceset): ignore blob urls when updating source cache (#5371)
It's possible for us to get a blob url for sourceset, but when we do, we
shouldn't update the source caches with that information.

blob urls can arise when playback is done via Media Source Extension (MSE) such as m3u8 sources with @videojs/http-streaming (VHS).
2018-08-10 15:13:21 -04:00