language stringclasses 1
value | owner stringlengths 2 15 | repo stringlengths 2 21 | sha stringlengths 45 45 | message stringlengths 7 36.3k | path stringlengths 1 199 | patch stringlengths 15 102k | is_multipart bool 2
classes |
|---|---|---|---|---|---|---|---|
Other | videojs | video.js | f5fd94f61012af2269a5528746c7d62a7b435467.json | fix: handle esc key properly inside of the CloseButton (#6050) | src/js/close-button.js | @@ -3,6 +3,7 @@
*/
import Button from './button';
import Component from './component';
+import keycode from 'keycode';
/**
* The `CloseButton` is a `{@link Button}` that fires a `close` event when
@@ -63,6 +64,28 @@ class CloseButton extends Button {
*/
this.trigger({type: 'close', bubbles: false});... | true |
Other | videojs | video.js | f5fd94f61012af2269a5528746c7d62a7b435467.json | fix: handle esc key properly inside of the CloseButton (#6050) | test/unit/close-button.test.js | @@ -3,6 +3,12 @@ import CloseButton from '../../src/js/close-button';
import sinon from 'sinon';
import TestHelpers from './test-helpers';
+const getMockEscapeEvent = () => ({
+ which: 27,
+ preventDefault() {},
+ stopPropagation() {}
+});
+
QUnit.module('CloseButton', {
beforeEach() {
@@ -49,3 +55,12 @@ Q... | true |
Other | videojs | video.js | c61f3d3e49d0d63bb92e2236b5ccb7ed973b90c3.json | feat: allow displaying of multiple text tracks at once (#5817)
This allows the user to display multiple tracks when
`allowMultipleShowingTracks` is passed to the `TextTrackDisplay`.
Currently, multiple tracks must be shown programmatically and cannot be
done via the subtitles menus.
In addition, this adds two new cla... | sandbox/double-sub-video.html.example | @@ -0,0 +1,60 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="utf-8" />
+ <title>Video.js Text Descriptions, Chapters & Captions Example</title>
+
+ <!-- Load the source files -->
+ <link href="../dist/video-js.css" rel="stylesheet" type="text/css">
+ <script src="../dist/video.js"></script>
+
+... | true |
Other | videojs | video.js | c61f3d3e49d0d63bb92e2236b5ccb7ed973b90c3.json | feat: allow displaying of multiple text tracks at once (#5817)
This allows the user to display multiple tracks when
`allowMultipleShowingTracks` is passed to the `TextTrackDisplay`.
Currently, multiple tracks must be shown programmatically and cannot be
done via the subtitles menus.
In addition, this adds two new cla... | src/js/tracks/text-track-display.js | @@ -3,6 +3,7 @@
*/
import Component from '../component';
import * as Fn from '../utils/fn.js';
+import * as Dom from '../utils/dom.js';
import window from 'global/window';
const darkGray = '#222';
@@ -240,10 +241,26 @@ class TextTrackDisplay extends Component {
*/
updateDisplay() {
const tracks = th... | true |
Other | videojs | video.js | 2c7644f91e69de7251b3ee55e58c8316f06b8284.json | fix(play-toggle): call event.stopPropagation in the click handler (#5803)
The play button stops working when recent versions of Google's Polymer is in use on the page because of the way Polymer synthesizes 'tap' events on non-touch devices. The Polymer tap code thinks the click event was ignored unless the DOM event's... | src/js/control-bar/play-toggle.js | @@ -61,6 +61,7 @@ class PlayToggle extends Button {
} else {
this.player_.pause();
}
+ event.stopPropagation();
}
/** | false |
Other | videojs | video.js | 97b66a913082b63c12b1db46c262ea47b7d89db7.json | fix(lang): update German translations (#6058) | docs/translations-needed.md | @@ -316,9 +316,7 @@ This default value is hardcoded as a default to the localize method in the SeekB
| | Beginning of dialog window. Escape will cancel and close the window. |
| | End of dialog window. ... | true |
Other | videojs | video.js | 97b66a913082b63c12b1db46c262ea47b7d89db7.json | fix(lang): update German translations (#6058) | lang/de.json | @@ -80,5 +80,9 @@
"Video Player": "Video-Player",
"Progress Bar": "Forschrittsbalken",
"progress bar timing: currentTime={1} duration={2}": "{1} von {2}",
- "Volume Level": "Lautstärkestufe"
+ "Volume Level": "Lautstärkestufe",
+ "{1} is loading.": "{1} wird geladen.",
+ "Seek to live, currently behind liv... | true |
Other | videojs | video.js | 2878c1d0d48e02204c69d37afb7eb608d22a7039.json | feat(events): add any function (#5977)
This new events function allows you to listen to a list of events and know that only one handler will ever be called for the group. With just one event, it'll function similarly to `.one`.
Examples:
Single event
```
const player = videojs('some-player-id');
player.any('a',... | src/js/event-target.js | @@ -110,7 +110,7 @@ EventTarget.prototype.removeEventListener = EventTarget.prototype.off;
* The function to be called once for each event name.
*/
EventTarget.prototype.one = function(type, fn) {
- // Remove the addEventListener alialing Events.on
+ // Remove the addEventListener aliasing Events.on
//... | true |
Other | videojs | video.js | 2878c1d0d48e02204c69d37afb7eb608d22a7039.json | feat(events): add any function (#5977)
This new events function allows you to listen to a list of events and know that only one handler will ever be called for the group. With just one event, it'll function similarly to `.one`.
Examples:
Single event
```
const player = videojs('some-player-id');
player.any('a',... | src/js/mixins/evented.js | @@ -242,7 +242,7 @@ const EventedMixin = {
/**
* Add a listener to an event (or events) on this object or another evented
- * object. The listener will only be called once and then removed.
+ * object. The listener will be called once per event and then removed.
*
* @param {string|Array|Element|Ob... | true |
Other | videojs | video.js | 2878c1d0d48e02204c69d37afb7eb608d22a7039.json | feat(events): add any function (#5977)
This new events function allows you to listen to a list of events and know that only one handler will ever be called for the group. With just one event, it'll function similarly to `.one`.
Examples:
Single event
```
const player = videojs('some-player-id');
player.any('a',... | src/js/utils/events.js | @@ -476,3 +476,29 @@ export function one(elem, type, fn) {
func.guid = fn.guid = fn.guid || Guid.newGUID();
on(elem, type, func);
}
+
+/**
+ * Trigger a listener only once and then turn if off for all
+ * configured events
+ *
+ * @param {Element|Object} elem
+ * Element or object to bind to.
+ *
+ * @par... | true |
Other | videojs | video.js | 2878c1d0d48e02204c69d37afb7eb608d22a7039.json | feat(events): add any function (#5977)
This new events function allows you to listen to a list of events and know that only one handler will ever be called for the group. With just one event, it'll function similarly to `.one`.
Examples:
Single event
```
const player = videojs('some-player-id');
player.any('a',... | test/unit/events.test.js | @@ -347,3 +347,39 @@ QUnit.test('retrigger with an object should use the old element as target', func
Events.off(el1, 'click');
Events.off(el2, 'click');
});
+
+QUnit.test('should listen only once for any', function(assert) {
+ const el = document.createElement('div');
+ let triggered = 0;
+ const listener = ... | true |
Other | videojs | video.js | 2878c1d0d48e02204c69d37afb7eb608d22a7039.json | feat(events): add any function (#5977)
This new events function allows you to listen to a list of events and know that only one handler will ever be called for the group. With just one event, it'll function similarly to `.one`.
Examples:
Single event
```
const player = videojs('some-player-id');
player.any('a',... | test/unit/mixins/evented.test.js | @@ -61,11 +61,11 @@ QUnit.test('evented() with custom element', function(assert) {
);
});
-QUnit.test('on() and one() errors', function(assert) {
+QUnit.test('on(), one(), and any() errors', function(assert) {
const targeta = this.targets.a = evented({});
const targetb = this.targets.b = evented({});
- [... | true |
Other | videojs | video.js | 74fde943fd2d4f04dc5cd790d8089a1ddcd78678.json | chore(package): update rollup to version 1.15.1 (#6042)
Fixes #6041. | package-lock.json | @@ -5309,7 +5309,8 @@
"ansi-regex": {
"version": "2.1.1",
"bundled": true,
- "dev": true
+ "dev": true,
+ "optional": true
},
"aproba": {
"version": "1.2.0",
@@ -5330,12 +5331,14 @@
"balanced-match": {
"version": ... | true |
Other | videojs | video.js | 74fde943fd2d4f04dc5cd790d8089a1ddcd78678.json | chore(package): update rollup to version 1.15.1 (#6042)
Fixes #6041. | package.json | @@ -137,7 +137,7 @@
"remark-toc": "^5.1.1",
"remark-validate-links": "^8.0.2",
"replace": "^1.1.0",
- "rollup": "^1.14.6",
+ "rollup": "^1.15.1",
"rollup-plugin-alias": "^1.5.2",
"rollup-plugin-babel": "^4.0.3",
"rollup-plugin-commonjs": "^9.3.4", | true |
Other | videojs | video.js | fded30f8f8969b1beb780b9d93ee0da0f5755ce6.json | fix(fs): feature detect el.matches() for IE11 (#6007) | src/js/player.js | @@ -1994,8 +1994,16 @@ class Player extends Component {
*/
documentFullscreenChange_(e) {
const fsApi = FullscreenApi;
+ const el = this.el();
+ let isFs = document[fsApi.fullscreenElement] === el;
- this.isFullscreen(document[fsApi.fullscreenElement] === this.el() || this.el().matches(':' + fsAp... | false |
Other | videojs | video.js | 1eb47f06902d5762d39169f69dad635657fc6325.json | chore: add a sandbox page for testing autoplay values. (#5933) | index.html | @@ -23,6 +23,7 @@ <h2>Navigation</h2>
<li><a href="sandbox/vertical-volume.html">Vertical Volume Demo</a></li>
<li><a href="sandbox/language.html">Laungage Demo</a></li>
<li><a href="sandbox/hls.html">Hls Demo</a></li>
+ <li><a href="sandbox/autoplay-tests.html">Autoplay Tests</a></li>
</ul>
<... | true |
Other | videojs | video.js | 1eb47f06902d5762d39169f69dad635657fc6325.json | chore: add a sandbox page for testing autoplay values. (#5933) | sandbox/autoplay-tests.html.example | @@ -0,0 +1,146 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="utf-8" />
+ <title>Video.js Sandbox</title>
+ <link href="../dist/video-js.css" rel="stylesheet" type="text/css">
+ <script src="../node_modules/es6-shim/es6-shim.min.js"></script>
+ <script src="../dist/video.js"></script>
+<style>p{mar... | true |
Other | videojs | video.js | 629594ece5ed2229143ca1f1b62c07aa0824b35e.json | fix: use performance.now() when possible (#5870) | src/js/component.js | @@ -1128,7 +1128,7 @@ class Component {
pageY: event.touches[0].pageY
};
// Record start time so we can detect a tap vs. "touch and hold"
- touchStart = new Date().getTime();
+ touchStart = window.performance.now();
// Reset couldBeTap tracking
couldBeTap = t... | true |
Other | videojs | video.js | 629594ece5ed2229143ca1f1b62c07aa0824b35e.json | fix: use performance.now() when possible (#5870) | src/js/utils/dom-data.js | @@ -3,6 +3,7 @@
* @module dom-data
*/
import * as Guid from './guid.js';
+import window from 'global/window';
/**
* Element Data Store.
@@ -23,7 +24,7 @@ export const elData = {};
* @constant
* @private
*/
-const elIdAttr = 'vdata' + (new Date()).getTime();
+const elIdAttr = 'vdata' + Math.floor(window.... | true |
Other | videojs | video.js | 629594ece5ed2229143ca1f1b62c07aa0824b35e.json | fix: use performance.now() when possible (#5870) | src/js/utils/fn.js | @@ -61,10 +61,10 @@ export const bind = function(context, fn, uid) {
* @return {Function}
*/
export const throttle = function(fn, wait) {
- let last = Date.now();
+ let last = window.performance.now();
const throttled = function(...args) {
- const now = Date.now();
+ const now = window.performance.n... | true |
Other | videojs | video.js | 98e86ea235b719eb13763c4ed4f214d1d80afbb3.json | fix(package): update @videojs/http-streaming to version 1.10.1 (#5951)
Closes #5934 | package-lock.json | @@ -982,19 +982,28 @@
}
},
"@videojs/http-streaming": {
- "version": "1.9.3",
- "resolved": "https://registry.npmjs.org/@videojs/http-streaming/-/http-streaming-1.9.3.tgz",
- "integrity": "sha512-gNdqyvhxTU67optzxiywHXi/z2+Ju0b6hNth0V7BsL7YAH+R1StIKmmp6SsfFZQfrNW5ykYFoR95M/AT5cg9Ug==",
+... | true |
Other | videojs | video.js | 98e86ea235b719eb13763c4ed4f214d1d80afbb3.json | fix(package): update @videojs/http-streaming to version 1.10.1 (#5951)
Closes #5934 | package.json | @@ -79,7 +79,7 @@
},
"dependencies": {
"@babel/runtime": "^7.2.0",
- "@videojs/http-streaming": "1.9.3",
+ "@videojs/http-streaming": "1.10.1",
"global": "4.3.2",
"keycode": "^2.2.0",
"safe-json-parse": "4.0.0", | true |
Other | videojs | video.js | cd073417edb99fd544469bc2318e3103c6fde1fc.json | lang: fix typo in de translation (#5920) | lang/de.json | @@ -54,7 +54,7 @@
"Window": "Fenster",
"Transparent": "Durchsichtig",
"Semi-Transparent": "Halbdurchsichtig",
- "Opaque": "Undurchsictig",
+ "Opaque": "Undurchsichtig",
"Font Size": "Schriftgröße",
"Text Edge Style": "Textkantenstil",
"None": "Kein", | false |
Other | videojs | video.js | b2eae7bdbf29e1f63dccadb367ed5ae3b885b062.json | docs(ModalDialog): add missing documentation for pauseOnOpen (#5908) | src/js/modal-dialog.js | @@ -44,6 +44,10 @@ class ModalDialog extends Component {
* @param {string} [options.label]
* A text label for the modal, primarily for accessibility.
*
+ * @param {boolean} [options.pauseOnOpen=true]
+ * If `true`, playback will will be paused if playing when
+ * the modal opens, ... | false |
Other | videojs | video.js | 4c277fd0f6436d72160c44749f127d69e3a86610.json | docs: add an example Vue integration.md (#5899)
* Create vue.md
Instructions for Vue integration (based on React example).
* Add link to Vue guide | docs/guides/player-workflows.md | @@ -19,6 +19,7 @@ This document outlines many considerations for using Video.js for advanced playe
* [React](#react)
* [Ember](#ember)
* [Angular](#angular)
+ * [Vue](#vue)
## Accessing a player that has already been created on a page
@@ -371,3 +372,7 @@ See [ReactJS integration example](/docs/guides/rea... | true |
Other | videojs | video.js | 4c277fd0f6436d72160c44749f127d69e3a86610.json | docs: add an example Vue integration.md (#5899)
* Create vue.md
Instructions for Vue integration (based on React example).
* Add link to Vue guide | docs/guides/vue.md | @@ -0,0 +1,83 @@
+# Video.js and Vue integration
+
+Here's a basic Vue player implementation.
+
+It just instantiates the Video.js player on `mounted` and destroys it on `beforeDestroy`.
+
+```vue
+<template>
+ <div>
+ <video ref="videoPlayer" class="video-js"></video>
+ </div>
+</template>
+
+<script>
+im... | true |
Other | videojs | video.js | 8e43cff122ec2241b21523eda4e39634b2c272c5.json | chore: add a sandbox for HLS (#5897) | index.html | @@ -22,6 +22,7 @@ <h2>Navigation</h2>
<li><a href="sandbox/liveui.html">LiveUI Demo</a></li>
<li><a href="sandbox/vertical-volume.html">Vertical Volume Demo</a></li>
<li><a href="sandbox/language.html">Laungage Demo</a></li>
+ <li><a href="sandbox/hls.html">Hls Demo</a></li>
</ul>
<h2>Simple D... | true |
Other | videojs | video.js | 8e43cff122ec2241b21523eda4e39634b2c272c5.json | chore: add a sandbox for HLS (#5897) | sandbox/hls.html.example | @@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="utf-8" />
+ <title>Video.js Sandbox</title>
+ <link href="../dist/video-js.css" rel="stylesheet" type="text/css">
+ <script src="../dist/video.js"></script>
+</head>
+<body>
+ <div style="background-color:#eee; border: 1px solid #777; pad... | true |
Other | videojs | video.js | 142cc678cb32ded17835915e08c763af7aae1385.json | 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 | src/js/resize-manager.js | @@ -71,7 +71,18 @@ class ResizeManager extends Component {
return;
}
- Events.on(this.el_.contentWindow, 'resize', this.debouncedHandler_);
+ const debouncedHandler_ = this.debouncedHandler_;
+ let unloadListener_ = this.unloadListener_ = function() {
+ Events.off(thi... | true |
Other | videojs | video.js | 142cc678cb32ded17835915e08c763af7aae1385.json | 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 | src/js/tracks/audio-track-list.js | @@ -72,22 +72,34 @@ class AudioTrackList extends TrackList {
return;
}
+ if (!this.enabledChange_) {
+ this.enabledChange_ = () => {
+ // when we are disabling other tracks (since we don't support
+ // more than one track at a time) we will set changing_
+ // to true so that w... | true |
Other | videojs | video.js | 142cc678cb32ded17835915e08c763af7aae1385.json | 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 | src/js/tracks/text-track-list.js | @@ -2,7 +2,6 @@
* @file text-track-list.js
*/
import TrackList from './track-list';
-import * as Fn from '../utils/fn.js';
/**
* The current list of {@link TextTrack} for a media file.
@@ -23,20 +22,36 @@ class TextTrackList extends TrackList {
addTrack(track) {
super.addTrack(track);
+ if (!this... | true |
Other | videojs | video.js | 142cc678cb32ded17835915e08c763af7aae1385.json | 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 | src/js/tracks/video-track-list.js | @@ -87,19 +87,31 @@ class VideoTrackList extends TrackList {
return;
}
+ if (!this.selectedChange_) {
+ this.selectedChange_ = () => {
+ if (this.changing_) {
+ return;
+ }
+ this.changing_ = true;
+ disableOthers(this, track);
+ this.changing_ = false;
... | true |
Other | videojs | video.js | 142cc678cb32ded17835915e08c763af7aae1385.json | 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 | test/unit/tracks/text-track-list-converter.test.js | @@ -140,6 +140,9 @@ if (Html5.supportsNativeTextTracks()) {
c.jsonToTextTracks(cleanup(c.textTracksToJson(tech)), tech);
assert.equal(addRemotes, 2, 'we added two text tracks');
+
+ tt.removeTrack(nativeTrack.track);
+ tt.removeTrack(emulatedTrack);
});
}
| true |
Other | videojs | video.js | 142cc678cb32ded17835915e08c763af7aae1385.json | 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 | test/unit/tracks/text-tracks.test.js | @@ -272,12 +272,11 @@ if (Html5.supportsNativeTextTracks()) {
assert.equal(emulatedTt.length, tt.length, 'we have matching tracks length');
assert.equal(emulatedTt.length, 1, 'we have one text track');
- emulatedTt.off('addtrack', addtrack);
el.removeChild(track);
};
- emulatedTt.o... | true |
Other | videojs | video.js | 142cc678cb32ded17835915e08c763af7aae1385.json | 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 | test/unit/utils/dom-data.test.js | @@ -2,6 +2,7 @@
import document from 'global/document';
import * as DomData from '../../../src/js/utils/dom-data';
import videojs from '../../../src/js/video.js';
+import window from 'global/window';
QUnit.module('dom-data');
@@ -32,11 +33,6 @@ QUnit.done(function(details) {
return;
}
- // TODO: fix ... | true |
Other | videojs | video.js | 8532182b6025158e586e795a5aadb67358bc2a88.json | fix(lang): improve Chinese translations (#5834) | lang/zh-CN.json | @@ -41,9 +41,8 @@
"Audio Player": "音频播放器",
"Video Player": "视频播放器",
"Replay": "重播",
- "Progress Bar": "进度小节",
+ "Progress Bar": "进度条",
"Volume Level": "音量",
- "Close Modal Dialog": "关闭弹窗",
"subtitles settings": "字幕设定",
"descriptions settings": "描述设定",
"Text": "文字",
@@ -75,7 +74,7 @@
"Casual":... | true |
Other | videojs | video.js | 8532182b6025158e586e795a5aadb67358bc2a88.json | fix(lang): improve Chinese translations (#5834) | lang/zh-TW.json | @@ -43,7 +43,6 @@
"Replay": "重播",
"Progress Bar": "進度小節",
"Volume Level": "音量",
- "Close Modal Dialog": "關閉彈窗",
"subtitles settings": "字幕設定",
"descriptions settings": "描述設定",
"Text": "文字", | true |
Other | videojs | video.js | f01d6f4e23412b868cbf5b65b9bc2128d9680924.json | perf: fix more memory leaks (#5860) | src/js/menu/menu.js | @@ -54,8 +54,8 @@ class Menu extends Component {
return;
}
- component.on('blur', this.boundHandleBlur_);
- component.on(['tap', 'click'], this.boundHandleTapClick_);
+ this.on(component, 'blur', this.boundHandleBlur_);
+ this.on(component, ['tap', 'click'], this.boundHandleTapClick_);
}
... | true |
Other | videojs | video.js | f01d6f4e23412b868cbf5b65b9bc2128d9680924.json | perf: fix more memory leaks (#5860) | src/js/player.js | @@ -425,6 +425,15 @@ class Player extends Component {
this.autoplay(this.options_.autoplay);
}
+ // check plugins
+ if (options.plugins) {
+ Object.keys(options.plugins).forEach((name) => {
+ if (typeof this[name] !== 'function') {
+ throw new Error(`plugin "${name}" does not ex... | true |
Other | videojs | video.js | f01d6f4e23412b868cbf5b65b9bc2128d9680924.json | perf: fix more memory leaks (#5860) | src/js/tech/tech.js | @@ -1261,7 +1261,7 @@ Tech.withSourceHandlers = function(_Tech) {
}
this.sourceHandler_ = sh.handleSource(source, this, this.options_);
- this.on('dispose', this.disposeSourceHandler);
+ this.one('dispose', this.disposeSourceHandler);
};
/** | true |
Other | videojs | video.js | f01d6f4e23412b868cbf5b65b9bc2128d9680924.json | perf: fix more memory leaks (#5860) | src/js/tracks/html-track-element-list.js | @@ -95,8 +95,14 @@ class HtmlTrackElementList {
removeTrackElement_(trackElement) {
for (let i = 0, length = this.trackElements_.length; i < length; i++) {
if (trackElement === this.trackElements_[i]) {
- this.trackElements_.splice(i, 1);
+ if (this.trackElements_[i].track && typeof this.tr... | true |
Other | videojs | video.js | f01d6f4e23412b868cbf5b65b9bc2128d9680924.json | perf: fix more memory leaks (#5860) | src/js/tracks/text-track.js | @@ -91,14 +91,21 @@ const loadTrack = function(src, track) {
// NOTE: this is only used for the alt/video.novtt.js build
if (typeof window.WebVTT !== 'function') {
if (track.tech_) {
- const loadHandler = () => parseCues(responseBody, track);
-
- track.tech_.on('vttjsloaded', loadHandler)... | true |
Other | videojs | video.js | 6eb9fd3dfbdf054e944dfafc0f999ad49cfb9759.json | fix(resize-manager): call super.dispose() in dispose method (#5853) | src/js/resize-manager.js | @@ -132,6 +132,7 @@ class ResizeManager extends Component {
this.resizeObserver = null;
this.debouncedHandler_ = null;
this.loadListener_ = null;
+ super.dispose();
}
} | false |
Other | videojs | video.js | 4169ddd9b7cc11f8275432cd9b73cb65d6f4dece.json | fix: use ownerDocument.body.contains for IE11 (#5872)
Issue #5831 made the not-in-DOM warning work with elements from other
documents. This works in modern browsers but IE11 doesn't include a
contains method on the document. Instead, we should check to see if the
body contains the element. | src/js/video.js | @@ -142,13 +142,13 @@ function videojs(id, options, ready) {
throw new TypeError('The element or ID supplied is not valid. (videojs)');
}
- // document.contains(el) will only check if el is contained within that one document.
+ // document.body.contains(el) will only check if el is contained within that one... | false |
Other | videojs | video.js | de9fb587616dcff6a82a87fb7b0b783dc37f03eb.json | chore(package): update patch-package to version 6.0.2 (#5792)
Closes #5769 | package-lock.json | @@ -864,7 +864,7 @@
},
"chalk": {
"version": "1.1.3",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",
+ "resolved": "http://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",
"integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=",
"dev": true,... | true |
Other | videojs | video.js | de9fb587616dcff6a82a87fb7b0b783dc37f03eb.json | chore(package): update patch-package to version 6.0.2 (#5792)
Closes #5769 | package.json | @@ -125,7 +125,7 @@
"node-sass": "^4.10.0",
"npm-merge-driver-install": "^1.1.1",
"npm-run-all": "^4.1.5",
- "patch-package": "^5.1.1",
+ "patch-package": "^6.0.2",
"postcss-cli": "^6.0.1",
"proxyquireify": "^3.2.1",
"qunit": "~2.9.1", | true |
Other | videojs | video.js | a72d861a9599221408ecbf42c55f09dfe829d127.json | fix: add inactivityTimeout to reset cache method (#5788) | src/js/player.js | @@ -2066,6 +2066,7 @@ class Player extends Component {
// we set it to zero here to ensure that if we do start actually caching
// it, we reset it along with everything else.
currentTime: 0,
+ inactivityTimeout: this.options_.inactivityTimeout,
duration: NaN,
lastVolume: 1,
... | false |
Other | videojs | video.js | a359b6a462cec27e403197c702800aa6a79a3a5c.json | fix icon pos (#5785) | src/css/_private-variables.scss | @@ -13,6 +13,8 @@ $secondary-background-transparency: 0.5 !default;
$text-font-family: Arial, Helvetica, sans-serif !default;
// Using the '--' naming for component-specific styles
+$big-play-button--border-size: 0.06666em !default;
$big-play-button--width: 3em !default;
-$big-play-button--height: 1.5em !default;
... | true |
Other | videojs | video.js | a359b6a462cec27e403197c702800aa6a79a3a5c.json | fix icon pos (#5785) | src/css/components/_big-play.scss | @@ -1,6 +1,6 @@
.video-js .vjs-big-play-button {
font-size: 3em;
- line-height: $big-play-button--height;
+ line-height: $big-play-button--line-height;
height: $big-play-button--height;
width: $big-play-button--width; // Firefox bug: For some reason without width the icon wouldn't show up. Switched to using... | true |
Other | videojs | video.js | 259ce71ee707ce93f4868ce0db8ee7405d76ab44.json | fix: remove event handlers when menu item is removed (#5748) | src/js/menu/menu.js | @@ -36,6 +36,60 @@ class Menu extends Component {
this.focusedChild_ = -1;
this.on('keydown', this.handleKeyPress);
+
+ // All the menu item instances share the same blur handler provided by the menu container.
+ this.boundHandleBlur_ = Fn.bind(this, this.handleBlur);
+ this.boundHandleTapClick_ = ... | true |
Other | videojs | video.js | 259ce71ee707ce93f4868ce0db8ee7405d76ab44.json | fix: remove event handlers when menu item is removed (#5748) | test/unit/menu.test.js | @@ -1,8 +1,12 @@
/* eslint-env qunit */
+import * as DomData from '../../src/js/utils/dom-data';
import MenuButton from '../../src/js/menu/menu-button.js';
+import Menu from '../../src/js/menu/menu.js';
+import CaptionSettingsMenuItem from '../../src/js/control-bar/text-track-controls/caption-settings-menu-item';
im... | true |
Other | videojs | video.js | 1c0fa32b3a866b17ae51fca6b67d81c37e0a1973.json | fix(fs): fix double fullscreenchange event (#5756)
This reverts the previous fix (2bc90a1)
and also simplifies handling. Seems like this works a lot better while
also ensuring that the vjs-fullscreen class is still on the player.
Fixes #5685, fixes #5745 | src/js/fullscreen-api.js | @@ -64,7 +64,7 @@ const apiMap = [
const specApi = apiMap[0];
let browserApi;
-let prefixedAPI = true;
+let prefixedAPI = false;
// determine the supported set of functions
for (let i = 0; i < apiMap.length; i++) {
@@ -81,7 +81,7 @@ if (browserApi) {
FullscreenApi[specApi[i]] = browserApi[i];
}
- pre... | true |
Other | videojs | video.js | 1c0fa32b3a866b17ae51fca6b67d81c37e0a1973.json | fix(fs): fix double fullscreenchange event (#5756)
This reverts the previous fix (2bc90a1)
and also simplifies handling. Seems like this works a lot better while
also ensuring that the vjs-fullscreen class is still on the player.
Fixes #5685, fixes #5745 | src/js/player.js | @@ -519,15 +519,6 @@ class Player extends Component {
this.reportUserActivity();
this.one('play', this.listenForUserActivity_);
-
- if (FullscreenApi.fullscreenchange) {
- this.on(FullscreenApi.fullscreenchange, this.handleFullscreenChange_);
-
- if (IE_VERSION || browser.IS_FIREFOX && prefixed... | true |
Other | videojs | video.js | 2f0834f43f596211c4d81013d218d86b48d076ca.json | fix(menu-button): make menu button title a component (#5722)
Fixes #3612, fixes #5759 | src/js/menu/menu-button.js | @@ -108,16 +108,17 @@ class MenuButton extends Component {
// Add a title list item to the top
if (this.options_.title) {
- const title = Dom.createEl('li', {
+ const titleEl = Dom.createEl('li', {
className: 'vjs-menu-title',
innerHTML: toTitleCase(this.options_.title),
... | false |
Other | videojs | video.js | 4b11a4e2b51569f2f5398f279afab27fb5d27aae.json | docs: use https links (#5749) | COLLABORATOR_GUIDE.md | @@ -463,7 +463,7 @@ This collaborator guide was heavily inspired by [node.js's guide](https://github
[conventions]: https://github.com/videojs/conventional-changelog-videojs/blob/master/convention.md
-[vjs npm]: http://npmjs.com/org/videojs
+[vjs npm]: https://www.npmjs.com/org/videojs
[npm org]: https://docs.n... | true |
Other | videojs | video.js | 4b11a4e2b51569f2f5398f279afab27fb5d27aae.json | docs: use https links (#5749) | CONTRIBUTING.md | @@ -68,7 +68,7 @@ A good bug report should be as detailed as possible, so that others won't have t
### Requesting a Feature
-1. [Check the plugin list](http://videojs.com/plugins/) for any plugins that may already support the feature.
+1. [Check the plugin list](https://videojs.com/plugins/) for any plugins that m... | true |
Other | videojs | video.js | 4b11a4e2b51569f2f5398f279afab27fb5d27aae.json | docs: use https links (#5749) | README.md | @@ -37,7 +37,7 @@ In older versions of Video.js (6 and earlier), in the `vjs.zencdn.net` CDN-hoste
<script>window.HELP_IMPROVE_VIDEOJS = false;</script>
```
-Alternatively, you can include Video.js by getting it from [npm](http://videojs.com/getting-started/#download-npm), downloading from [GitHub releases](https:/... | true |
Other | videojs | video.js | 4b11a4e2b51569f2f5398f279afab27fb5d27aae.json | docs: use https links (#5749) | docs/examples/elephantsdream/index.html | @@ -33,7 +33,7 @@
<track kind="chapters" src="chapters.en.vtt" srclang="en" label="English">
- <p class="vjs-no-js">To view this video please enable JavaScript, and consider upgrading to a web browser that <a href="http://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a></p>
+ <p... | true |
Other | videojs | video.js | 4b11a4e2b51569f2f5398f279afab27fb5d27aae.json | docs: use https links (#5749) | docs/examples/simple-embed/index.html | @@ -15,7 +15,7 @@
<source src="http://vjs.zencdn.net/v/oceans.ogv" type="video/ogg">
<track kind="captions" src="../shared/example-captions.vtt" srclang="en" label="English">
<track kind="subtitles" src="../shared/example-captions.vtt" srclang="en" label="English">
- <p class="vjs-no-js">To view this ... | true |
Other | videojs | video.js | 175f77325346af9ec5fa7f090eba8be2076a54e2.json | feat: reset player ui on Player#reset (#5684)
Fixes #4683 | src/js/control-bar/time-controls/remaining-time-display.js | @@ -60,7 +60,7 @@ class RemainingTimeDisplay extends TimeDisplay {
* @listens Player#durationchange
*/
updateContent(event) {
- if (!this.player_.duration()) {
+ if (typeof this.player_.duration() !== 'number') {
return;
}
| true |
Other | videojs | video.js | 175f77325346af9ec5fa7f090eba8be2076a54e2.json | feat: reset player ui on Player#reset (#5684)
Fixes #4683 | src/js/player.js | @@ -2996,11 +2996,47 @@ class Player extends Component {
this.poster('');
this.loadTech_(this.options_.techOrder[0], null);
this.techCall_('reset');
+ this.resetControlBarUI_();
if (isEvented(this)) {
this.trigger('playerreset');
}
}
+ /**
+ * Reset Control Bar's UI by calling... | true |
Other | videojs | video.js | 175f77325346af9ec5fa7f090eba8be2076a54e2.json | feat: reset player ui on Player#reset (#5684)
Fixes #4683 | test/unit/player.test.js | @@ -1444,6 +1444,7 @@ QUnit.test('player#reset loads the Html5 tech and then techCalls reset', functio
techCall_(method) {
techCallMethod = method;
},
+ resetControlBarUI_() {},
poster() {}
};
@@ -1471,6 +1472,7 @@ QUnit.test('player#reset loads the first item in the techOrder and then tec... | true |
Other | videojs | video.js | 175f77325346af9ec5fa7f090eba8be2076a54e2.json | feat: reset player ui on Player#reset (#5684)
Fixes #4683 | test/unit/reset-ui.test.js | @@ -0,0 +1,55 @@
+/* eslint-env qunit */
+import TestHelpers from './test-helpers.js';
+QUnit.module('player reset-ui');
+
+QUnit.test('Calling resetProgressBar player method should place progress bar at 0% width', function(assert) {
+ const player = TestHelpers.makePlayer();
+
+ player.currentTime(20);
+ player.tri... | true |
Other | videojs | video.js | 3e3387fbc6ebea4c1a069cb4f0a65f6b79b9af10.json | chore(package): update rollup to version 1.0.1 (#5727)
Closes #5715 | package-lock.json | @@ -989,9 +989,9 @@
"dev": true
},
"@types/node": {
- "version": "10.12.15",
- "resolved": "https://registry.npmjs.org/@types/node/-/node-10.12.15.tgz",
- "integrity": "sha512-9kROxduaN98QghwwHmxXO2Xz3MaWf+I1sLVAA6KJDF5xix+IyXVhds0MAfdNwtcpSrzhaTsNB0/jnL86fgUhqA==",
+ "version": "10... | true |
Other | videojs | video.js | 3e3387fbc6ebea4c1a069cb4f0a65f6b79b9af10.json | chore(package): update rollup to version 1.0.1 (#5727)
Closes #5715 | package.json | @@ -133,7 +133,7 @@
"remark-toc": "^5.1.1",
"remark-validate-links": "^7.1.2",
"replace": "^1.0.0",
- "rollup": "^0.68.0",
+ "rollup": "^1.0.1",
"rollup-plugin-alias": "^1.4.0",
"rollup-plugin-babel": "^4.0.3",
"rollup-plugin-commonjs": "^9.2.0", | true |
Other | videojs | video.js | 30d0b9812ea009bb42b9479151cea9e6452d167d.json | chore(package): update babel to version 7.2.2 (#5697)
Closes #5689 | package-lock.json | @@ -32,18 +32,18 @@
}
},
"@babel/core": {
- "version": "7.2.0",
- "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.2.0.tgz",
- "integrity": "sha512-7pvAdC4B+iKjFFp9Ztj0QgBndJ++qaMeonT185wAqUnhipw8idm9Rv1UMyBuKtYjfl6ORNkgEgcsYLfHX/GpLw==",
+ "version": "7.2.2",
+ "re... | true |
Other | videojs | video.js | 30d0b9812ea009bb42b9479151cea9e6452d167d.json | chore(package): update babel to version 7.2.2 (#5697)
Closes #5689 | package.json | @@ -88,8 +88,8 @@
},
"devDependencies": {
"@babel/cli": "^7.2.0",
- "@babel/core": "^7.2.0",
- "@babel/node": "^7.2.0",
+ "@babel/core": "^7.2.2",
+ "@babel/node": "^7.2.2",
"@babel/plugin-transform-runtime": "^7.2.0",
"@babel/preset-env": "^7.2.0",
"@babel/register": "^7.0.0", | true |
Other | videojs | video.js | c1475819b2e2983ece6e0c42ae7a29daaf4ae51b.json | docs(liveui): Add a guide for the live ui and live api (#5677)
Add documentation of the new line ui feature. | docs/guides/live.md | @@ -0,0 +1,106 @@
+# The live user interface and API in Video.js
+> Note the the "old" live user interface is currently the default, see the section on [the new user interface](#the-new-user-interface) for information on setting that up.
+
+
+## The default live user interface
+The default user interface hides the `Pro... | false |
Other | videojs | video.js | 70a71ae81e5026faf38fc0d675521d66847d8411.json | fix(a11y): fix hidden Control Text in Progress bar (Fixes #5251) (#5655)
- Update the Control Text in the load-progress-bar during loading, remove unnecessary Control Text from the play-progress-bar, and hide the time-tooltip feature from Assistive Technology using ARIA.
- Add a span around the vjs-control-text-loade... | src/js/control-bar/progress-control/load-progress-bar.js | @@ -35,7 +35,7 @@ class LoadProgressBar extends Component {
createEl() {
return super.createEl('div', {
className: 'vjs-load-progress',
- innerHTML: `<span class="vjs-control-text"><span>${this.localize('Loaded')}</span>: 0%</span>`
+ innerHTML: `<span class="vjs-control-text"><span>${this.loca... | true |
Other | videojs | video.js | 70a71ae81e5026faf38fc0d675521d66847d8411.json | fix(a11y): fix hidden Control Text in Progress bar (Fixes #5251) (#5655)
- Update the Control Text in the load-progress-bar during loading, remove unnecessary Control Text from the play-progress-bar, and hide the time-tooltip feature from Assistive Technology using ARIA.
- Add a span around the vjs-control-text-loade... | src/js/control-bar/progress-control/play-progress-bar.js | @@ -22,8 +22,9 @@ class PlayProgressBar extends Component {
*/
createEl() {
return super.createEl('div', {
- className: 'vjs-play-progress vjs-slider-bar',
- innerHTML: `<span class="vjs-control-text"><span>${this.localize('Progress')}</span>: 0%</span>`
+ className: 'vjs-play-progress vjs-sl... | true |
Other | videojs | video.js | 70a71ae81e5026faf38fc0d675521d66847d8411.json | fix(a11y): fix hidden Control Text in Progress bar (Fixes #5251) (#5655)
- Update the Control Text in the load-progress-bar during loading, remove unnecessary Control Text from the play-progress-bar, and hide the time-tooltip feature from Assistive Technology using ARIA.
- Add a span around the vjs-control-text-loade... | src/js/control-bar/progress-control/time-tooltip.js | @@ -21,6 +21,8 @@ class TimeTooltip extends Component {
createEl() {
return super.createEl('div', {
className: 'vjs-time-tooltip'
+ }, {
+ 'aria-hidden': 'true'
});
}
| true |
Other | videojs | video.js | 62f9e78cf298a9cfbf1ad8245de61455098de04e.json | docs: remove grunt and update usage of build scripts (#5656) | COLLABORATOR_GUIDE.md | @@ -19,8 +19,8 @@
* [GitHub personal access token](#github-personal-access-token)
* [Deciding what type of version release](#deciding-what-type-of-version-release)
* [Doing a release](#doing-a-release)
- * [Video.js 6](#videojs-6)
- * [Video.js 5](#videojs-5)
+ * [Current Video.js](#current-videojs)... | true |
Other | videojs | video.js | 62f9e78cf298a9cfbf1ad8245de61455098de04e.json | docs: remove grunt and update usage of build scripts (#5656) | CONTRIBUTING.md | @@ -97,19 +97,6 @@ To contibute code you'll need to be able to build a copy of Video.js and run tes
* Node.js
Video.js uses Node for build and test automation. Node is available for Windows, Mac OS X, Linux, and SunOS, as well as source code if that doesn't scare you. [Download and install Node.js](http://nodejs.or... | true |
Other | videojs | video.js | 62f9e78cf298a9cfbf1ad8245de61455098de04e.json | docs: remove grunt and update usage of build scripts (#5656) | docs/guides/components.md | @@ -16,6 +16,7 @@ The architecture of the Video.js player is centered around components. The `Play
* [Using trigger](#using-trigger)
* [Default Component Tree](#default-component-tree)
* [Specific Component Details](#specific-component-details)
+ * [Play Toggle](#play-toggle)
* [Volume Panel](#volume-panel)
... | true |
Other | videojs | video.js | 62f9e78cf298a9cfbf1ad8245de61455098de04e.json | docs: remove grunt and update usage of build scripts (#5656) | docs/guides/languages.md | @@ -60,9 +60,9 @@ Each file's name should be the [standard language code][lang-codes] that is most
If there is a [missing translation](/docs/translations-needed.md), mistake, or room for improvement in an existing translation, don't hesitate to open a pull request!
1. Edit the relevant JSON file and make the necess... | true |
Other | videojs | video.js | 62f9e78cf298a9cfbf1ad8245de61455098de04e.json | docs: remove grunt and update usage of build scripts (#5656) | docs/guides/layout.md | @@ -114,15 +114,15 @@ Responsive mode is independent of fluid mode or fill mode - it only deals with t
A player in responsive mode will add and remove classes based on its size breakpoints. The default breakpoints, classes, and sizes are outlined below:
-Name | Class | Min. Width | Max. Width
--... | true |
Other | videojs | video.js | 62f9e78cf298a9cfbf1ad8245de61455098de04e.json | docs: remove grunt and update usage of build scripts (#5656) | docs/guides/options.md | @@ -21,6 +21,7 @@
* [Video.js-specific Options](#videojs-specific-options)
* [aspectRatio](#aspectratio)
* [autoSetup](#autosetup)
+ * [breakpoints](#breakpoints)
* [children](#children)
* [fluid](#fluid)
* [inactivityTimeout](#inactivitytimeout)
@@ -30,6 +31,7 @@
* [notSupportedMessage](#notsupport... | true |
Other | videojs | video.js | 62f9e78cf298a9cfbf1ad8245de61455098de04e.json | docs: remove grunt and update usage of build scripts (#5656) | docs/guides/text-tracks.md | @@ -21,7 +21,7 @@ Text tracks are a feature of HTML5 for displaying time-triggered text to the end
* [Text Track Precedence](#text-track-precedence)
* [API](#api)
* [Remote Text Tracks](#remote-text-tracks)
- * [Text Tracks](#text-tracks-1)
+ * [Text Tracks](#text-tracks)
## A Note on "Remote" Text Tracks
@... | true |
Other | videojs | video.js | 62f9e78cf298a9cfbf1ad8245de61455098de04e.json | docs: remove grunt and update usage of build scripts (#5656) | docs/translations-needed.md | @@ -13,6 +13,7 @@ This default value is hardcoded as a default to the localize method in the SeekB
## Status of translations
<!-- START langtable -->
+
| Language file | Missing translations |
| ----------------------- | --------------------... | true |
Other | videojs | video.js | 62f9e78cf298a9cfbf1ad8245de61455098de04e.json | docs: remove grunt and update usage of build scripts (#5656) | index.html | @@ -15,10 +15,13 @@ <h2>Navigation</h2>
<li><a href="sandbox/icons.html">Icons Demo</a></li>
<li><a href="sandbox/focus-visible.html">Focus Visible Demo</a></li>
<li><a href="sandbox/flash.html">Flash Demo</a></li>
- <li><a href="sandbox/fake-live.html">Fake Live Demo</a></li>
<li><a href="sandbo... | true |
Other | videojs | video.js | 62f9e78cf298a9cfbf1ad8245de61455098de04e.json | docs: remove grunt and update usage of build scripts (#5656) | package.json | @@ -157,7 +157,6 @@
},
"vjsstandard": {
"ignore": [
- "**/Gruntfile.js",
"**/es5/**",
"**/build/**",
"!build/rollup.js", | true |
Other | videojs | video.js | 62f9e78cf298a9cfbf1ad8245de61455098de04e.json | docs: remove grunt and update usage of build scripts (#5656) | sandbox/combined-tracks.html.example | @@ -16,10 +16,9 @@
</head>
<body>
<div style="background-color:#eee; border: 1px solid #777; padding: 10px; margin-bottom: 20px; font-size: .8em; line-height: 1.5em; font-family: Verdana, sans-serif;">
- <p>You can use /sandbox/ for writing and testing your own code. Nothing in /sandbox/ will get checked into t... | true |
Other | videojs | video.js | 62f9e78cf298a9cfbf1ad8245de61455098de04e.json | docs: remove grunt and update usage of build scripts (#5656) | sandbox/flash.html.example | @@ -17,9 +17,8 @@
</head>
<body>
<div style="background-color:#eee; border: 1px solid #777; padding: 10px; margin-bottom: 20px; font-size: .8em; line-height: 1.5em; font-family: Verdana, sans-serif;">
- <p>You can use /sandbox/ for writing and testing your own code. Nothing in /sandbox/ will get checked into th... | true |
Other | videojs | video.js | 62f9e78cf298a9cfbf1ad8245de61455098de04e.json | docs: remove grunt and update usage of build scripts (#5656) | sandbox/focus-visible.html.example | @@ -16,8 +16,8 @@
</head>
<body>
<div style="background-color:#eee; border: 1px solid #777; padding: 10px; margin-bottom: 20px; font-size: .8em; line-height: 1.5em; font-family: Verdana, sans-serif;">
- <p>You can use /sandbox/ for writing and testing your own code. Nothing in /sandbox/ will get checked into th... | true |
Other | videojs | video.js | 62f9e78cf298a9cfbf1ad8245de61455098de04e.json | docs: remove grunt and update usage of build scripts (#5656) | sandbox/index.html.example | @@ -8,9 +8,8 @@
</head>
<body>
<div style="background-color:#eee; border: 1px solid #777; padding: 10px; margin-bottom: 20px; font-size: .8em; line-height: 1.5em; font-family: Verdana, sans-serif;">
- <p>You can use /sandbox/ for writing and testing your own code. Nothing in /sandbox/ will get checked into the ... | true |
Other | videojs | video.js | 62f9e78cf298a9cfbf1ad8245de61455098de04e.json | docs: remove grunt and update usage of build scripts (#5656) | sandbox/live.html.example | @@ -8,10 +8,9 @@
</head>
<body>
<div style="background-color:#eee; border: 1px solid #777; padding: 10px; margin-bottom: 20px; font-size: .8em; line-height: 1.5em; font-family: Verdana, sans-serif;">
- <p>You can use /sandbox/ for writing and testing your own code. Nothing in /sandbox/ will get checked into the... | true |
Other | videojs | video.js | 62f9e78cf298a9cfbf1ad8245de61455098de04e.json | docs: remove grunt and update usage of build scripts (#5656) | sandbox/liveui.html.example | @@ -8,10 +8,9 @@
</head>
<body>
<div style="background-color:#eee; border: 1px solid #777; padding: 10px; margin-bottom: 20px; font-size: .8em; line-height: 1.5em; font-family: Verdana, sans-serif;">
- <p>You can use /sandbox/ for writing and testing your own code. Nothing in /sandbox/ will get checked into the... | true |
Other | videojs | video.js | 62f9e78cf298a9cfbf1ad8245de61455098de04e.json | docs: remove grunt and update usage of build scripts (#5656) | sandbox/vertical-volume.html.example | @@ -8,10 +8,9 @@
</head>
<body>
<div style="background-color:#eee; border: 1px solid #777; padding: 10px; margin-bottom: 20px; font-size: .8em; line-height: 1.5em; font-family: Verdana, sans-serif;">
- <p>You can use /sandbox/ for writing and testing your own code. Nothing in /sandbox/ will get checked into the... | true |
Other | videojs | video.js | 19f346503c63e5450aa3e92d3a91d49eaa8ee0eb.json | chore(package): update autoprefixer to version 9.4.2 (#5647) | package-lock.json | @@ -1506,25 +1506,17 @@
"dev": true
},
"autoprefixer": {
- "version": "9.4.0",
- "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-9.4.0.tgz",
- "integrity": "sha512-gv1a1rzOyxmB2JuyXDLVNWyyUl1uelaKyxO1OP3UNWk7jAP+EhAT9rZdcDBH0C+ZEeTL56qNR4j2TjRZL68bXA==",
+ "versi... | true |
Other | videojs | video.js | 19f346503c63e5450aa3e92d3a91d49eaa8ee0eb.json | chore(package): update autoprefixer to version 9.4.2 (#5647) | package.json | @@ -94,7 +94,7 @@
"@babel/preset-env": "^7.2.0",
"@babel/register": "^7.0.0",
"access-sniff": "^3.2.0",
- "autoprefixer": "^9.4.0",
+ "autoprefixer": "^9.4.2",
"babelify": "^10.0.0",
"bestzip": "^2.1.2",
"bluebird": "^3.5.3", | true |
Other | videojs | video.js | d72786fc0ca66bea63680f5c84e0d8573d998057.json | chore: remove grunt move to npm scripts (#5592) | Gruntfile.js | @@ -1,7 +0,0 @@
-require('@babel/register');
-
-// Need to `require` a separate Grunt file so we can use ES6 syntax via
-// Babel's require hook.
-module.exports = function(grunt) {
- require('./build/grunt.js')(grunt);
-}; | true |
Other | videojs | video.js | d72786fc0ca66bea63680f5c84e0d8573d998057.json | chore: remove grunt move to npm scripts (#5592) | build/bin/prerelease | @@ -1,36 +0,0 @@
-#!/bin/bash
-
-# exit after any line errors
-set -e
-
-# exit if this is a version commit
-# otherwise we cause an inifite loop when package version
-# bumps get pushed back to master
-if [[ $CI_MESSAGE = v[0-9]* ]]; then
- echo "Version commit found. Exiting."
- exit 0
-fi
-
-# exit if this is just... | true |
Other | videojs | video.js | d72786fc0ca66bea63680f5c84e0d8573d998057.json | chore: remove grunt move to npm scripts (#5592) | build/bin/version | @@ -1,5 +0,0 @@
-#!/usr/bin/env node
-
-var version = require('../../package.json').version;
-
-console.log(version); | true |
Other | videojs | video.js | d72786fc0ca66bea63680f5c84e0d8573d998057.json | chore: remove grunt move to npm scripts (#5592) | build/grunt.js | @@ -1,214 +0,0 @@
-import isDocsOnly from './docs-only.js';
-
-module.exports = function(grunt) {
- require('time-grunt')(grunt);
-
- const pkg = grunt.file.readJSON('package.json');
- const verParts = pkg.version.split('.');
- const version = {
- full: pkg.version,
- major: verParts[0],
- minor: verParts[... | true |
Other | videojs | video.js | d72786fc0ca66bea63680f5c84e0d8573d998057.json | chore: remove grunt move to npm scripts (#5592) | build/sandbox.js | @@ -0,0 +1,28 @@
+const fs = require('fs');
+const path = require('path');
+const klawSync = require('klaw-sync');
+
+const files = klawSync('sandbox/').filter((file) => path.extname(file.path) === '.example');
+
+const changes = files.map(function(file) {
+ const p = path.parse(file.path);
+ const nonExample = path.... | true |
Other | videojs | video.js | d72786fc0ca66bea63680f5c84e0d8573d998057.json | chore: remove grunt move to npm scripts (#5592) | build/tasks/cdn-links.js | @@ -1,13 +0,0 @@
-module.exports = function(grunt) {
- grunt.registerTask('cdn-links', 'Update the version of CDN links in docs', function(){
- let doc = grunt.file.read('docs/guides/setup.md');
- let version = require('../../package.json').version;
-
- // remove the patch version to point to the latest patch... | true |
Other | videojs | video.js | d72786fc0ca66bea63680f5c84e0d8573d998057.json | chore: remove grunt move to npm scripts (#5592) | build/tasks/languages.js | @@ -1,35 +0,0 @@
-module.exports = function(grunt) {
- grunt.registerTask('check-translations', 'Check that translations are up to date', function(){
- const source = require('../../lang/en.json');
- const table = require('markdown-table');
- let doc = grunt.file.read('docs/translations-needed.md');
- cons... | true |
Other | videojs | video.js | d72786fc0ca66bea63680f5c84e0d8573d998057.json | chore: remove grunt move to npm scripts (#5592) | build/tasks/sandbox.js | @@ -1,33 +0,0 @@
-const fs = require('fs');
-const path = require('path');
-const klawSync = require('klaw-sync');
-
-module.exports = function(grunt) {
- grunt.registerTask('sandbox', 'copy over sandbox example files if necessary', function() {
- const files = klawSync('sandbox/').filter((file) => path.extname(fil... | true |
Other | videojs | video.js | d72786fc0ca66bea63680f5c84e0d8573d998057.json | chore: remove grunt move to npm scripts (#5592) | build/tasks/style-injection.js | @@ -1,11 +0,0 @@
-module.exports = function(grunt) {
- grunt.registerTask('addStyleInjection', 'Adding base style injection', function() {
- let minifiedCss = grunt.file.read('build/files/video-js.min.css');
- // We need to escape any strings
- minifiedCss = minifiedCss.replace(/'/g, '\\\'');
-
- let combi... | true |
Other | videojs | video.js | d72786fc0ca66bea63680f5c84e0d8573d998057.json | chore: remove grunt move to npm scripts (#5592) | build/tasks/test-local.js | @@ -1,26 +0,0 @@
-module.exports = function(grunt) {
- // You can specify which browsers to build with by using grunt-style arguments
- // or separating them with a comma:
- // grunt test:chrome:firefox # grunt-style
- // grunt test:chrome,firefox # comma-separated
- grunt.registerTask('test-local', function... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.