Comparar commits
1 Commits
| Autor | SHA1 | Data | |
|---|---|---|---|
| a8f33916e8 |
@@ -6,22 +6,6 @@ _(none)_
|
||||
|
||||
--------------------
|
||||
|
||||
## 5.10.7 (2016-06-27)
|
||||
* @gkatsev pinned node-sass to 3.4 ([view](https://github.com/videojs/video.js/pull/3401))
|
||||
* @mister-ben added try catch to volume and playbackrate checks. Fixes #3315 ([view](https://github.com/videojs/video.js/pull/3320))
|
||||
* @m14t removed unused loadEvent property in ControlBar options ([view](https://github.com/videojs/video.js/pull/3363))
|
||||
* @bklava updated pt-BR language file ([view](https://github.com/videojs/video.js/pull/3373))
|
||||
* @mister-ben updated menus to use default videojs font-family ([view](https://github.com/videojs/video.js/pull/3384))
|
||||
* @vdeshpande fixed chapters getting duplicated each time a track is loaded ([view](https://github.com/videojs/video.js/pull/3354))
|
||||
|
||||
## 5.10.6 (2016-06-20)
|
||||
* @gkatsev fix not fully minified video.min.js file.
|
||||
|
||||
## 5.10.5 (2016-06-07)
|
||||
* @gkatsev pinned dependencies to direct versions ([view](https://github.com/videojs/video.js/pull/3338))
|
||||
* @gkatsev fixed minified vjs in ie8 when initialized with id string ([view](https://github.com/videojs/video.js/pull/3357))
|
||||
* @IJsLauw fixed unhandled exception in deleting poster on ios7 ([view](https://github.com/videojs/video.js/pull/3337))
|
||||
|
||||
## 5.10.4 (2016-05-31)
|
||||
* Patch release to fix dist on npm
|
||||
|
||||
|
||||
@@ -450,7 +450,6 @@ module.exports = function(grunt) {
|
||||
require('load-grunt-tasks')(grunt);
|
||||
grunt.loadNpmTasks('videojs-doc-generator');
|
||||
grunt.loadNpmTasks('chg');
|
||||
grunt.loadNpmTasks('gkatsev-grunt-sass');
|
||||
|
||||
const buildDependents = [
|
||||
'clean:build',
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "video.js",
|
||||
"description": "An HTML5 and Flash video player with a common API and skin for both.",
|
||||
"version": "5.10.7",
|
||||
"version": "5.10.4",
|
||||
"keywords": [
|
||||
"videojs",
|
||||
"html5",
|
||||
|
||||
externo
+38
-33
Diff do arquivo suprimido porque uma ou mais linhas são muito longas
externo
+1
-1
Diff do arquivo suprimido porque uma ou mais linhas são muito longas
externo
+18
-40
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
* @license
|
||||
* Video.js 5.10.7 <http://videojs.com/>
|
||||
* Video.js 5.10.4 <http://videojs.com/>
|
||||
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
|
||||
* Available under Apache License Version 2.0
|
||||
* <https://github.com/videojs/video.js/blob/master/LICENSE>
|
||||
@@ -5063,6 +5063,7 @@ var ControlBar = (function (_Component) {
|
||||
})(_componentJs2['default']);
|
||||
|
||||
ControlBar.prototype.options_ = {
|
||||
loadEvent: 'play',
|
||||
children: ['playToggle', 'volumeMenuButton', 'currentTimeDisplay', 'timeDivider', 'durationDisplay', 'progressControl', 'liveDisplay', 'remainingTimeDisplay', 'customControlSpacer', 'playbackRateMenuButton', 'chaptersButton', 'descriptionsButton', 'subtitlesButton', 'captionsButton', 'audioTrackButton', 'fullscreenToggle']
|
||||
};
|
||||
|
||||
@@ -6902,11 +6903,9 @@ var ChaptersButton = (function (_TextTrackButton) {
|
||||
|
||||
var tracks = this.player_.textTracks() || [];
|
||||
var chaptersTrack = undefined;
|
||||
var items = this.items || [];
|
||||
var items = this.items = [];
|
||||
|
||||
for (var i = tracks.length - 1; i >= 0; i--) {
|
||||
|
||||
// We will always choose the last track as our chaptersTrack
|
||||
for (var i = 0, _length = tracks.length; i < _length; i++) {
|
||||
var track = tracks[i];
|
||||
|
||||
if (track['kind'] === this.kind_) {
|
||||
@@ -6926,14 +6925,6 @@ var ChaptersButton = (function (_TextTrackButton) {
|
||||
});
|
||||
menu.children_.unshift(title);
|
||||
Dom.insertElFirst(title, menu.contentEl());
|
||||
} else {
|
||||
// We will empty out the menu children each time because we want a
|
||||
// fresh new menu child list each time
|
||||
items.forEach(function (item) {
|
||||
return menu.removeChild(item);
|
||||
});
|
||||
// Empty out the ChaptersButton menu items because we no longer need them
|
||||
items = [];
|
||||
}
|
||||
|
||||
if (chaptersTrack && chaptersTrack.cues == null) {
|
||||
@@ -6964,13 +6955,14 @@ var ChaptersButton = (function (_TextTrackButton) {
|
||||
|
||||
menu.addChild(mi);
|
||||
}
|
||||
|
||||
this.addChild(menu);
|
||||
}
|
||||
|
||||
if (items.length > 0) {
|
||||
if (this.items.length > 0) {
|
||||
this.show();
|
||||
}
|
||||
// Assigning the value of items back to this.items for next iteration
|
||||
this.items = items;
|
||||
|
||||
return menu;
|
||||
};
|
||||
|
||||
@@ -10867,11 +10859,7 @@ var Player = (function (_Component) {
|
||||
// In Chrome (15), if you have autoplay + a poster + no controls, the video gets hidden (but audio plays)
|
||||
// This fixes both issues. Need to wait for API, so it updates displays correctly
|
||||
if (this.src() && this.tag && this.options_.autoplay && this.paused()) {
|
||||
try {
|
||||
delete this.tag.poster; // Chrome Fix. Fixed in Chrome v16.
|
||||
} catch (e) {
|
||||
_utilsLogJs2['default']('deleting tag.poster throws in some browsers', e);
|
||||
}
|
||||
delete this.tag.poster; // Chrome Fix. Fixed in Chrome v16.
|
||||
this.play();
|
||||
}
|
||||
};
|
||||
@@ -15855,14 +15843,9 @@ Html5.registerSourceHandler(Html5.nativeSourceHandler);
|
||||
* @return {Boolean}
|
||||
*/
|
||||
Html5.canControlVolume = function () {
|
||||
// IE will error if Windows Media Player not installed #3315
|
||||
try {
|
||||
var volume = Html5.TEST_VID.volume;
|
||||
Html5.TEST_VID.volume = volume / 2 + 0.1;
|
||||
return volume !== Html5.TEST_VID.volume;
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
var volume = Html5.TEST_VID.volume;
|
||||
Html5.TEST_VID.volume = volume / 2 + 0.1;
|
||||
return volume !== Html5.TEST_VID.volume;
|
||||
};
|
||||
|
||||
/*
|
||||
@@ -15876,14 +15859,9 @@ Html5.canControlPlaybackRate = function () {
|
||||
if (browser.IS_ANDROID && browser.IS_CHROME) {
|
||||
return false;
|
||||
}
|
||||
// IE will error if Windows Media Player not installed #3315
|
||||
try {
|
||||
var playbackRate = Html5.TEST_VID.playbackRate;
|
||||
Html5.TEST_VID.playbackRate = playbackRate / 2 + 0.1;
|
||||
return playbackRate !== Html5.TEST_VID.playbackRate;
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
var playbackRate = Html5.TEST_VID.playbackRate;
|
||||
Html5.TEST_VID.playbackRate = playbackRate / 2 + 0.1;
|
||||
return playbackRate !== Html5.TEST_VID.playbackRate;
|
||||
};
|
||||
|
||||
/*
|
||||
@@ -21666,7 +21644,7 @@ if (typeof HTMLVideoElement === 'undefined') {
|
||||
* @mixes videojs
|
||||
* @method videojs
|
||||
*/
|
||||
function videojs(id, options, ready) {
|
||||
var videojs = function videojs(id, options, ready) {
|
||||
var tag = undefined; // Element of ID
|
||||
|
||||
// Allow for element or ID to be passed in
|
||||
@@ -21711,7 +21689,7 @@ function videojs(id, options, ready) {
|
||||
// Element may have a player attr referring to an already created player instance.
|
||||
// If not, set up a new player and return the instance.
|
||||
return tag['player'] || _player2['default'].players[tag.playerId] || new _player2['default'](tag, options, ready);
|
||||
}
|
||||
};
|
||||
|
||||
// Add default styles
|
||||
if (_globalWindow2['default'].VIDEOJS_NO_DYNAMIC_STYLE !== true) {
|
||||
@@ -21734,7 +21712,7 @@ setup.autoSetupTimeout(1, videojs);
|
||||
*
|
||||
* @type {String}
|
||||
*/
|
||||
videojs.VERSION = '5.10.7';
|
||||
videojs.VERSION = '5.10.4';
|
||||
|
||||
/**
|
||||
* The global options object. These are the settings that take effect
|
||||
|
||||
externo
+8
-9
Diff do arquivo suprimido porque uma ou mais linhas são muito longas
externo
+1
-1
Diff do arquivo suprimido porque uma ou mais linhas são muito longas
externo
BIN
Arquivo binário não exibido.
externo
+3
@@ -94,6 +94,9 @@
|
||||
<glyph glyph-name="audio-description"
|
||||
unicode=""
|
||||
horiz-adv-x="1792" d=" M795.5138904615 457.270933L795.5138904615 1221.5248286325C971.84576475 1225.085121904 1107.39330415 1232.12360523 1207.223857 1161.5835220499998C1303.033991 1093.8857027 1377.7922305 962.20560625 1364.3373135 792.9476205000001C1350.102593 613.9029365000001 1219.6655764999998 463.4600215 1050.12389545 448.2843645000001C965.8259268 440.7398275000001 798.21890505 448.2843645000001 798.21890505 448.2843645000001C798.21890505 448.2843645000001 795.2791410655 453.016494 795.5138904615 457.270933M966.1564647 649.0863960000001C1076.16084135 644.6767075 1152.385591 707.3020429999999 1163.8910079999998 807.9351875C1179.2994744999999 942.71878505 1089.73043585 1030.3691748 960.74508635 1020.7227954L960.74508635 658.08043C960.6196169500002 652.9482330000001 962.7606933 650.3134680000001 966.1564647 649.0863960000001 M1343.2299685 457.3517725000002C1389.9059734 444.3690160000001 1404.0840274999998 496.0596970000001 1424.48294065 532.2791494999999C1469.0084255 611.2788500000001 1502.5101322 712.8584189999999 1503.0416912 828.9881705C1503.8147453000001 995.5680973 1438.8404296 1117.7973688000002 1378.4383305 1200.62456881045L1348.652139905 1200.62456881045C1346.6001063899998 1187.06858424 1356.44474056 1175.024791325 1362.18395859 1164.6588891000001C1408.2649952 1081.49431985 1450.96645015 966.7230041 1451.57490975 834.9817034999999C1452.27106325 683.8655425000002 1402.00636065 557.5072264999999 1343.2299685 457.3517725000002 M1488.0379675 457.3517725000002C1534.7139723999999 444.3690160000001 1548.8825828 496.0671625 1569.29093965 532.2791494999999C1613.8164245 611.2788500000001 1647.3113856500001 712.8584189999999 1647.8496902000002 828.9881705C1648.6227442999998 995.5680973 1583.6484286 1117.7973688000002 1523.2463295 1200.62456881045L1493.460138905 1200.62456881045C1491.40810539 1187.06858424 1501.250041305 1175.021805755 1506.9919575899999 1164.6588891000001C1553.0729942 1081.49431985 1595.7757984 966.7230041 1596.3829087499998 834.9817034999999C1597.07906225 683.8655425000002 1546.8143596500001 557.5072264999999 1488.0379675 457.3517725000002 M1631.9130380000001 457.3517725000002C1678.5890429 444.3690160000001 1692.7576533 496.0671625 1713.1660101500001 532.2791494999999C1757.691495 611.2788500000001 1791.1864561500001 712.8584189999999 1791.7247607000002 828.9881705C1792.4978148 995.5680973 1727.5234991000002 1117.7973688000002 1667.1214 1200.62456881045L1637.3352094050001 1200.62456881045C1635.28317589 1187.06858424 1645.1251118050002 1175.02329854 1650.86702809 1164.6588891000001C1696.9480647 1081.49431985 1739.64951965 966.7230041 1740.25797925 834.9817034999999C1740.95413275 683.8655425000002 1690.6894301500001 557.5072264999999 1631.9130380000001 457.3517725000002 M15.66796875 451.481947L254.03034755 451.481947L319.0356932 551.1747990000001L543.6261075 551.6487970000001C543.6261075 551.6487970000001 543.8541115 483.7032095 543.8541115 451.481947L714.4993835 451.481947L714.4993835 1230.9210795L508.643051 1230.9210795C488.8579955 1197.5411595 15.66796875 451.481947 15.66796875 451.481947L15.66796875 451.481947zM550.0048155000001 959.9708615L550.0048155000001 710.916297L408.4199 711.8642895L550.0048155000001 959.9708615L550.0048155000001 959.9708615z" />
|
||||
<glyph glyph-name="audio"
|
||||
unicode=""
|
||||
horiz-adv-x="1792" d=" M896 1717.3333333333333C524.9066666666668 1717.3333333333333 224 1416.4266666666667 224 1045.3333333333333V522.6666666666665C224 399.0933333333333 324.4266666666667 298.6666666666665 448 298.6666666666665H672V896H373.3333333333334V1045.3333333333333C373.3333333333334 1333.92 607.4133333333334 1568 896 1568S1418.6666666666667 1333.92 1418.6666666666667 1045.3333333333333V896H1120V298.6666666666665H1344C1467.5733333333335 298.6666666666665 1568 399.0933333333333 1568 522.6666666666665V1045.3333333333333C1568 1416.4266666666667 1267.0933333333332 1717.3333333333333 896 1717.3333333333333z" />
|
||||
</font>
|
||||
</defs>
|
||||
</svg>
|
||||
|
||||
|
Antes Largura: | Altura: | Tamanho: 25 KiB Depois Largura: | Altura: | Tamanho: 26 KiB |
externo
BIN
Arquivo binário não exibido.
externo
BIN
Arquivo binário não exibido.
externo
+363
-69
@@ -26,7 +26,7 @@ if (typeof window.HTMLVideoElement === 'undefined') {
|
||||
;
|
||||
|
||||
// UMD (Universal Module Definition)
|
||||
// see https://github.com/umdjs/umd/blob/master/returnExports.js
|
||||
// see https://github.com/umdjs/umd/blob/master/templates/returnExports.js
|
||||
(function (root, factory) {
|
||||
'use strict';
|
||||
|
||||
@@ -72,6 +72,7 @@ var array_push = ArrayPrototype.push;
|
||||
var array_unshift = ArrayPrototype.unshift;
|
||||
var array_concat = ArrayPrototype.concat;
|
||||
var call = FunctionPrototype.call;
|
||||
var apply = FunctionPrototype.apply;
|
||||
var max = Math.max;
|
||||
var min = Math.min;
|
||||
|
||||
@@ -84,19 +85,18 @@ var isRegex; /* inlined from https://npmjs.com/is-regex */ var regexExec = RegEx
|
||||
var isString; /* inlined from https://npmjs.com/is-string */ var strValue = String.prototype.valueOf, tryStringObject = function tryStringObject(value) { try { strValue.call(value); return true; } catch (e) { return false; } }, stringClass = '[object String]'; isString = function isString(value) { if (typeof value === 'string') { return true; } if (typeof value !== 'object') { return false; } return hasToStringTag ? tryStringObject(value) : to_string.call(value) === stringClass; };
|
||||
|
||||
/* inlined from http://npmjs.com/define-properties */
|
||||
var supportsDescriptors = $Object.defineProperty && (function () {
|
||||
try {
|
||||
var obj = {};
|
||||
$Object.defineProperty(obj, 'x', { enumerable: false, value: obj });
|
||||
for (var _ in obj) { return false; }
|
||||
return obj.x === obj;
|
||||
} catch (e) { /* this is ES3 */
|
||||
return false;
|
||||
}
|
||||
}());
|
||||
var defineProperties = (function (has) {
|
||||
var supportsDescriptors = $Object.defineProperty && (function () {
|
||||
try {
|
||||
var obj = {};
|
||||
$Object.defineProperty(obj, 'x', { enumerable: false, value: obj });
|
||||
for (var _ in obj) { return false; }
|
||||
return obj.x === obj;
|
||||
} catch (e) { /* this is ES3 */
|
||||
return false;
|
||||
}
|
||||
}());
|
||||
|
||||
// Define configurable, writable and non-enumerable props
|
||||
// Define configurable, writable, and non-enumerable props
|
||||
// if they don't exist.
|
||||
var defineProperty;
|
||||
if (supportsDescriptors) {
|
||||
@@ -179,7 +179,6 @@ var ES = {
|
||||
// http://es5.github.com/#x9.9
|
||||
/* replaceable with https://npmjs.com/package/es-abstract ES5.ToObject */
|
||||
ToObject: function (o) {
|
||||
/* jshint eqnull: true */
|
||||
if (o == null) { // this matches both null and undefined
|
||||
throw new TypeError("can't convert " + o + ' to object');
|
||||
}
|
||||
@@ -337,13 +336,17 @@ defineProperties(FunctionPrototype, {
|
||||
});
|
||||
|
||||
// _Please note: Shortcuts are defined after `Function.prototype.bind` as we
|
||||
// us it in defining shortcuts.
|
||||
// use it in defining shortcuts.
|
||||
var owns = call.bind(ObjectPrototype.hasOwnProperty);
|
||||
var toStr = call.bind(ObjectPrototype.toString);
|
||||
var arraySlice = call.bind(array_slice);
|
||||
var arraySliceApply = apply.bind(array_slice);
|
||||
var strSlice = call.bind(StringPrototype.slice);
|
||||
var strSplit = call.bind(StringPrototype.split);
|
||||
var strIndexOf = call.bind(StringPrototype.indexOf);
|
||||
var push = call.bind(array_push);
|
||||
var pushCall = call.bind(array_push);
|
||||
var isEnum = call.bind(ObjectPrototype.propertyIsEnumerable);
|
||||
var arraySort = call.bind(ArrayPrototype.sort);
|
||||
|
||||
//
|
||||
// Array
|
||||
@@ -397,18 +400,23 @@ var properlyBoxesContext = function properlyBoxed(method) {
|
||||
// Check node 0.6.21 bug where third parameter is not boxed
|
||||
var properlyBoxesNonStrict = true;
|
||||
var properlyBoxesStrict = true;
|
||||
var threwException = false;
|
||||
if (method) {
|
||||
method.call('foo', function (_, __, context) {
|
||||
if (typeof context !== 'object') { properlyBoxesNonStrict = false; }
|
||||
});
|
||||
try {
|
||||
method.call('foo', function (_, __, context) {
|
||||
if (typeof context !== 'object') { properlyBoxesNonStrict = false; }
|
||||
});
|
||||
|
||||
method.call([1], function () {
|
||||
'use strict';
|
||||
method.call([1], function () {
|
||||
'use strict';
|
||||
|
||||
properlyBoxesStrict = typeof this === 'string';
|
||||
}, 'x');
|
||||
properlyBoxesStrict = typeof this === 'string';
|
||||
}, 'x');
|
||||
} catch (e) {
|
||||
threwException = true;
|
||||
}
|
||||
}
|
||||
return !!method && properlyBoxesNonStrict && properlyBoxesStrict;
|
||||
return !!method && !threwException && properlyBoxesNonStrict && properlyBoxesStrict;
|
||||
};
|
||||
|
||||
defineProperties(ArrayPrototype, {
|
||||
@@ -497,7 +505,7 @@ defineProperties(ArrayPrototype, {
|
||||
if (i in self) {
|
||||
value = self[i];
|
||||
if (typeof T === 'undefined' ? callbackfn(value, i, object) : callbackfn.call(T, value, i, object)) {
|
||||
push(result, value);
|
||||
pushCall(result, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -750,9 +758,9 @@ defineProperties(ArrayPrototype, {
|
||||
var args = arguments;
|
||||
this.length = max(ES.ToInteger(this.length), 0);
|
||||
if (arguments.length > 0 && typeof deleteCount !== 'number') {
|
||||
args = array_slice.call(arguments);
|
||||
args = arraySlice(arguments);
|
||||
if (args.length < 2) {
|
||||
push(args, this.length - start);
|
||||
pushCall(args, this.length - start);
|
||||
} else {
|
||||
args[1] = ES.ToInteger(deleteCount);
|
||||
}
|
||||
@@ -799,7 +807,7 @@ defineProperties(ArrayPrototype, {
|
||||
k += 1;
|
||||
}
|
||||
|
||||
var items = array_slice.call(arguments, 2);
|
||||
var items = arraySlice(arguments, 2);
|
||||
var itemCount = items.length;
|
||||
var to;
|
||||
if (itemCount < actualDeleteCount) {
|
||||
@@ -843,13 +851,31 @@ defineProperties(ArrayPrototype, {
|
||||
}
|
||||
}, !spliceWorksWithLargeSparseArrays || !spliceWorksWithSmallSparseArrays);
|
||||
|
||||
var hasJoinUndefinedBug = [1, 2].join(undefined) !== '1,2';
|
||||
var originalJoin = ArrayPrototype.join;
|
||||
defineProperties(ArrayPrototype, {
|
||||
join: function join(separator) {
|
||||
return originalJoin.call(this, typeof separator === 'undefined' ? ',' : separator);
|
||||
}
|
||||
}, hasJoinUndefinedBug);
|
||||
var hasStringJoinBug;
|
||||
try {
|
||||
hasStringJoinBug = Array.prototype.join.call('123', ',') !== '1,2,3';
|
||||
} catch (e) {
|
||||
hasStringJoinBug = true;
|
||||
}
|
||||
if (hasStringJoinBug) {
|
||||
defineProperties(ArrayPrototype, {
|
||||
join: function join(separator) {
|
||||
var sep = typeof separator === 'undefined' ? ',' : separator;
|
||||
return originalJoin.call(isString(this) ? strSplit(this, '') : this, sep);
|
||||
}
|
||||
}, hasStringJoinBug);
|
||||
}
|
||||
|
||||
var hasJoinUndefinedBug = [1, 2].join(undefined) !== '1,2';
|
||||
if (hasJoinUndefinedBug) {
|
||||
defineProperties(ArrayPrototype, {
|
||||
join: function join(separator) {
|
||||
var sep = typeof separator === 'undefined' ? ',' : separator;
|
||||
return originalJoin.call(this, sep);
|
||||
}
|
||||
}, hasJoinUndefinedBug);
|
||||
}
|
||||
|
||||
var pushShim = function push(item) {
|
||||
var O = ES.ToObject(this);
|
||||
@@ -885,6 +911,52 @@ var pushUndefinedIsWeird = (function () {
|
||||
}());
|
||||
defineProperties(ArrayPrototype, { push: pushShim }, pushUndefinedIsWeird);
|
||||
|
||||
// ES5 15.2.3.14
|
||||
// http://es5.github.io/#x15.4.4.10
|
||||
// Fix boxed string bug
|
||||
defineProperties(ArrayPrototype, {
|
||||
slice: function (start, end) {
|
||||
var arr = isString(this) ? strSplit(this, '') : this;
|
||||
return arraySliceApply(arr, arguments);
|
||||
}
|
||||
}, splitString);
|
||||
|
||||
var sortIgnoresNonFunctions = (function () {
|
||||
try {
|
||||
[1, 2].sort(null);
|
||||
[1, 2].sort({});
|
||||
return true;
|
||||
} catch (e) { /**/ }
|
||||
return false;
|
||||
}());
|
||||
var sortThrowsOnRegex = (function () {
|
||||
// this is a problem in Firefox 4, in which `typeof /a/ === 'function'`
|
||||
try {
|
||||
[1, 2].sort(/a/);
|
||||
return false;
|
||||
} catch (e) { /**/ }
|
||||
return true;
|
||||
}());
|
||||
var sortIgnoresUndefined = (function () {
|
||||
// applies in IE 8, for one.
|
||||
try {
|
||||
[1, 2].sort(undefined);
|
||||
return true;
|
||||
} catch (e) { /**/ }
|
||||
return false;
|
||||
}());
|
||||
defineProperties(ArrayPrototype, {
|
||||
sort: function sort(compareFn) {
|
||||
if (typeof compareFn === 'undefined') {
|
||||
return arraySort(this);
|
||||
}
|
||||
if (!isCallable(compareFn)) {
|
||||
throw new TypeError('Array.prototype.sort callback must be a function');
|
||||
}
|
||||
return arraySort(this, compareFn);
|
||||
}
|
||||
}, sortIgnoresNonFunctions || !sortIgnoresUndefined || !sortThrowsOnRegex);
|
||||
|
||||
//
|
||||
// Object
|
||||
// ======
|
||||
@@ -910,7 +982,8 @@ var blacklistedKeys = {
|
||||
$frames: true,
|
||||
$frameElement: true,
|
||||
$webkitIndexedDB: true,
|
||||
$webkitStorageInfo: true
|
||||
$webkitStorageInfo: true,
|
||||
$external: true
|
||||
};
|
||||
var hasAutomationEqualityBug = (function () {
|
||||
/* globals window */
|
||||
@@ -975,14 +1048,14 @@ defineProperties($Object, {
|
||||
var skipProto = hasProtoEnumBug && isFn;
|
||||
if ((isStr && hasStringEnumBug) || isArgs) {
|
||||
for (var i = 0; i < object.length; ++i) {
|
||||
push(theKeys, $String(i));
|
||||
pushCall(theKeys, $String(i));
|
||||
}
|
||||
}
|
||||
|
||||
if (!isArgs) {
|
||||
for (var name in object) {
|
||||
if (!(skipProto && name === 'prototype') && owns(object, name)) {
|
||||
push(theKeys, $String(name));
|
||||
pushCall(theKeys, $String(name));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -992,7 +1065,7 @@ defineProperties($Object, {
|
||||
for (var j = 0; j < dontEnumsLength; j++) {
|
||||
var dontEnum = dontEnums[j];
|
||||
if (!(skipConstructor && dontEnum === 'constructor') && owns(object, dontEnum)) {
|
||||
push(theKeys, dontEnum);
|
||||
pushCall(theKeys, dontEnum);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1012,7 +1085,7 @@ var originalKeys = $Object.keys;
|
||||
defineProperties($Object, {
|
||||
keys: function keys(object) {
|
||||
if (isArguments(object)) {
|
||||
return originalKeys(array_slice.call(object));
|
||||
return originalKeys(arraySlice(object));
|
||||
} else {
|
||||
return originalKeys(object);
|
||||
}
|
||||
@@ -1024,6 +1097,190 @@ defineProperties($Object, {
|
||||
// ====
|
||||
//
|
||||
|
||||
var hasNegativeMonthYearBug = new Date(-3509827329600292).getUTCMonth() !== 0;
|
||||
var aNegativeTestDate = new Date(-1509842289600292);
|
||||
var aPositiveTestDate = new Date(1449662400000);
|
||||
var hasToUTCStringFormatBug = aNegativeTestDate.toUTCString() !== 'Mon, 01 Jan -45875 11:59:59 GMT';
|
||||
var hasToDateStringFormatBug;
|
||||
var hasToStringFormatBug;
|
||||
var timeZoneOffset = aNegativeTestDate.getTimezoneOffset();
|
||||
if (timeZoneOffset < -720) {
|
||||
hasToDateStringFormatBug = aNegativeTestDate.toDateString() !== 'Tue Jan 02 -45875';
|
||||
hasToStringFormatBug = !(/^Thu Dec 10 2015 \d\d:\d\d:\d\d GMT[-\+]\d\d\d\d(?: |$)/).test(aPositiveTestDate.toString());
|
||||
} else {
|
||||
hasToDateStringFormatBug = aNegativeTestDate.toDateString() !== 'Mon Jan 01 -45875';
|
||||
hasToStringFormatBug = !(/^Wed Dec 09 2015 \d\d:\d\d:\d\d GMT[-\+]\d\d\d\d(?: |$)/).test(aPositiveTestDate.toString());
|
||||
}
|
||||
|
||||
var originalGetFullYear = call.bind(Date.prototype.getFullYear);
|
||||
var originalGetMonth = call.bind(Date.prototype.getMonth);
|
||||
var originalGetDate = call.bind(Date.prototype.getDate);
|
||||
var originalGetUTCFullYear = call.bind(Date.prototype.getUTCFullYear);
|
||||
var originalGetUTCMonth = call.bind(Date.prototype.getUTCMonth);
|
||||
var originalGetUTCDate = call.bind(Date.prototype.getUTCDate);
|
||||
var originalGetUTCDay = call.bind(Date.prototype.getUTCDay);
|
||||
var originalGetUTCHours = call.bind(Date.prototype.getUTCHours);
|
||||
var originalGetUTCMinutes = call.bind(Date.prototype.getUTCMinutes);
|
||||
var originalGetUTCSeconds = call.bind(Date.prototype.getUTCSeconds);
|
||||
var originalGetUTCMilliseconds = call.bind(Date.prototype.getUTCMilliseconds);
|
||||
var dayName = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri'];
|
||||
var monthName = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
|
||||
var daysInMonth = function daysInMonth(month, year) {
|
||||
return originalGetDate(new Date(year, month, 0));
|
||||
};
|
||||
|
||||
defineProperties(Date.prototype, {
|
||||
getFullYear: function getFullYear() {
|
||||
if (!this || !(this instanceof Date)) {
|
||||
throw new TypeError('this is not a Date object.');
|
||||
}
|
||||
var year = originalGetFullYear(this);
|
||||
if (year < 0 && originalGetMonth(this) > 11) {
|
||||
return year + 1;
|
||||
}
|
||||
return year;
|
||||
},
|
||||
getMonth: function getMonth() {
|
||||
if (!this || !(this instanceof Date)) {
|
||||
throw new TypeError('this is not a Date object.');
|
||||
}
|
||||
var year = originalGetFullYear(this);
|
||||
var month = originalGetMonth(this);
|
||||
if (year < 0 && month > 11) {
|
||||
return 0;
|
||||
}
|
||||
return month;
|
||||
},
|
||||
getDate: function getDate() {
|
||||
if (!this || !(this instanceof Date)) {
|
||||
throw new TypeError('this is not a Date object.');
|
||||
}
|
||||
var year = originalGetFullYear(this);
|
||||
var month = originalGetMonth(this);
|
||||
var date = originalGetDate(this);
|
||||
if (year < 0 && month > 11) {
|
||||
if (month === 12) {
|
||||
return date;
|
||||
}
|
||||
var days = daysInMonth(0, year + 1);
|
||||
return (days - date) + 1;
|
||||
}
|
||||
return date;
|
||||
},
|
||||
getUTCFullYear: function getUTCFullYear() {
|
||||
if (!this || !(this instanceof Date)) {
|
||||
throw new TypeError('this is not a Date object.');
|
||||
}
|
||||
var year = originalGetUTCFullYear(this);
|
||||
if (year < 0 && originalGetUTCMonth(this) > 11) {
|
||||
return year + 1;
|
||||
}
|
||||
return year;
|
||||
},
|
||||
getUTCMonth: function getUTCMonth() {
|
||||
if (!this || !(this instanceof Date)) {
|
||||
throw new TypeError('this is not a Date object.');
|
||||
}
|
||||
var year = originalGetUTCFullYear(this);
|
||||
var month = originalGetUTCMonth(this);
|
||||
if (year < 0 && month > 11) {
|
||||
return 0;
|
||||
}
|
||||
return month;
|
||||
},
|
||||
getUTCDate: function getUTCDate() {
|
||||
if (!this || !(this instanceof Date)) {
|
||||
throw new TypeError('this is not a Date object.');
|
||||
}
|
||||
var year = originalGetUTCFullYear(this);
|
||||
var month = originalGetUTCMonth(this);
|
||||
var date = originalGetUTCDate(this);
|
||||
if (year < 0 && month > 11) {
|
||||
if (month === 12) {
|
||||
return date;
|
||||
}
|
||||
var days = daysInMonth(0, year + 1);
|
||||
return (days - date) + 1;
|
||||
}
|
||||
return date;
|
||||
}
|
||||
}, hasNegativeMonthYearBug);
|
||||
|
||||
defineProperties(Date.prototype, {
|
||||
toUTCString: function toUTCString() {
|
||||
if (!this || !(this instanceof Date)) {
|
||||
throw new TypeError('this is not a Date object.');
|
||||
}
|
||||
var day = originalGetUTCDay(this);
|
||||
var date = originalGetUTCDate(this);
|
||||
var month = originalGetUTCMonth(this);
|
||||
var year = originalGetUTCFullYear(this);
|
||||
var hour = originalGetUTCHours(this);
|
||||
var minute = originalGetUTCMinutes(this);
|
||||
var second = originalGetUTCSeconds(this);
|
||||
return dayName[day] + ', ' +
|
||||
(date < 10 ? '0' + date : date) + ' ' +
|
||||
monthName[month] + ' ' +
|
||||
year + ' ' +
|
||||
(hour < 10 ? '0' + hour : hour) + ':' +
|
||||
(minute < 10 ? '0' + minute : minute) + ':' +
|
||||
(second < 10 ? '0' + second : second) + ' GMT';
|
||||
}
|
||||
}, hasNegativeMonthYearBug || hasToUTCStringFormatBug);
|
||||
|
||||
// Opera 12 has `,`
|
||||
defineProperties(Date.prototype, {
|
||||
toDateString: function toDateString() {
|
||||
if (!this || !(this instanceof Date)) {
|
||||
throw new TypeError('this is not a Date object.');
|
||||
}
|
||||
var day = this.getDay();
|
||||
var date = this.getDate();
|
||||
var month = this.getMonth();
|
||||
var year = this.getFullYear();
|
||||
return dayName[day] + ' ' +
|
||||
monthName[month] + ' ' +
|
||||
(date < 10 ? '0' + date : date) + ' ' +
|
||||
year;
|
||||
}
|
||||
}, hasNegativeMonthYearBug || hasToDateStringFormatBug);
|
||||
|
||||
// can't use defineProperties here because of toString enumeration issue in IE <= 8
|
||||
if (hasNegativeMonthYearBug || hasToStringFormatBug) {
|
||||
Date.prototype.toString = function toString() {
|
||||
if (!this || !(this instanceof Date)) {
|
||||
throw new TypeError('this is not a Date object.');
|
||||
}
|
||||
var day = this.getDay();
|
||||
var date = this.getDate();
|
||||
var month = this.getMonth();
|
||||
var year = this.getFullYear();
|
||||
var hour = this.getHours();
|
||||
var minute = this.getMinutes();
|
||||
var second = this.getSeconds();
|
||||
var timezoneOffset = this.getTimezoneOffset();
|
||||
var hoursOffset = Math.floor(Math.abs(timezoneOffset) / 60);
|
||||
var minutesOffset = Math.floor(Math.abs(timezoneOffset) % 60);
|
||||
return dayName[day] + ' ' +
|
||||
monthName[month] + ' ' +
|
||||
(date < 10 ? '0' + date : date) + ' ' +
|
||||
year + ' ' +
|
||||
(hour < 10 ? '0' + hour : hour) + ':' +
|
||||
(minute < 10 ? '0' + minute : minute) + ':' +
|
||||
(second < 10 ? '0' + second : second) + ' GMT' +
|
||||
(timezoneOffset > 0 ? '-' : '+') +
|
||||
(hoursOffset < 10 ? '0' + hoursOffset : hoursOffset) +
|
||||
(minutesOffset < 10 ? '0' + minutesOffset : minutesOffset);
|
||||
};
|
||||
if (supportsDescriptors) {
|
||||
$Object.defineProperty(Date.prototype, 'toString', {
|
||||
configurable: true,
|
||||
enumerable: false,
|
||||
writable: true
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// ES5 15.9.5.43
|
||||
// http://es5.github.com/#x15.9.5.43
|
||||
// This function returns a String value represent the instance in time
|
||||
@@ -1038,39 +1295,33 @@ var hasSafari51DateBug = Date.prototype.toISOString && new Date(-1).toISOString(
|
||||
|
||||
defineProperties(Date.prototype, {
|
||||
toISOString: function toISOString() {
|
||||
var result, length, value, year, month;
|
||||
if (!isFinite(this)) {
|
||||
throw new RangeError('Date.prototype.toISOString called on non-finite value.');
|
||||
}
|
||||
|
||||
year = this.getUTCFullYear();
|
||||
var year = originalGetUTCFullYear(this);
|
||||
|
||||
month = this.getUTCMonth();
|
||||
var month = originalGetUTCMonth(this);
|
||||
// see https://github.com/es-shims/es5-shim/issues/111
|
||||
year += Math.floor(month / 12);
|
||||
month = (month % 12 + 12) % 12;
|
||||
|
||||
// the date time string format is specified in 15.9.1.15.
|
||||
result = [month + 1, this.getUTCDate(), this.getUTCHours(), this.getUTCMinutes(), this.getUTCSeconds()];
|
||||
var result = [month + 1, originalGetUTCDate(this), originalGetUTCHours(this), originalGetUTCMinutes(this), originalGetUTCSeconds(this)];
|
||||
year = (
|
||||
(year < 0 ? '-' : (year > 9999 ? '+' : '')) +
|
||||
strSlice('00000' + Math.abs(year), (0 <= year && year <= 9999) ? -4 : -6)
|
||||
);
|
||||
|
||||
length = result.length;
|
||||
while (length--) {
|
||||
value = result[length];
|
||||
// pad months, days, hours, minutes, and seconds to have two
|
||||
// digits.
|
||||
if (value < 10) {
|
||||
result[length] = '0' + value;
|
||||
}
|
||||
for (var i = 0; i < result.length; ++i) {
|
||||
// pad months, days, hours, minutes, and seconds to have two digits.
|
||||
result[i] = strSlice('00' + result[i], -2);
|
||||
}
|
||||
// pad milliseconds to have three digits.
|
||||
return (
|
||||
year + '-' + array_slice.call(result, 0, 2).join('-') +
|
||||
'T' + array_slice.call(result, 2).join(':') + '.' +
|
||||
strSlice('000' + this.getUTCMilliseconds(), -3) + 'Z'
|
||||
year + '-' + arraySlice(result, 0, 2).join('-') +
|
||||
'T' + arraySlice(result, 2).join(':') + '.' +
|
||||
strSlice('000' + originalGetUTCMilliseconds(this), -3) + 'Z'
|
||||
);
|
||||
}
|
||||
}, hasNegativeDateBug || hasSafari51DateBug);
|
||||
@@ -1140,7 +1391,6 @@ if (doesNotParseY2KNewYear || acceptsInvalidDates || !supportsExtendedYears) {
|
||||
/* global Date: true */
|
||||
/* eslint-disable no-undef */
|
||||
var maxSafeUnsigned32Bit = Math.pow(2, 31) - 1;
|
||||
var secondsWithinMaxSafeUnsigned32Bit = Math.floor(maxSafeUnsigned32Bit / 1e3);
|
||||
var hasSafariSignedIntBug = isActualNaN(new Date(1970, 0, 1, 0, 0, 0, maxSafeUnsigned32Bit + 1).getTime());
|
||||
Date = (function (NativeDate) {
|
||||
/* eslint-enable no-undef */
|
||||
@@ -1513,7 +1763,7 @@ if (
|
||||
var maxSafe32BitInt = Math.pow(2, 32) - 1;
|
||||
|
||||
StringPrototype.split = function (separator, limit) {
|
||||
var string = this;
|
||||
var string = String(this);
|
||||
if (typeof separator === 'undefined' && limit === 0) {
|
||||
return [];
|
||||
}
|
||||
@@ -1532,7 +1782,6 @@ if (
|
||||
// Make `global` and avoid `lastIndex` issues by working with a copy
|
||||
separator2, match, lastIndex, lastLength;
|
||||
var separatorCopy = new RegExp(separator.source, flags + 'g');
|
||||
string += ''; // Type-convert
|
||||
if (!compliantExecNpcg) {
|
||||
// Doesn't need flags gy, but they don't hurt
|
||||
separator2 = new RegExp('^' + separatorCopy.source + '$(?!\\s)', flags);
|
||||
@@ -1550,7 +1799,7 @@ if (
|
||||
// `separatorCopy.lastIndex` is not reliable cross-browser
|
||||
lastIndex = match.index + match[0].length;
|
||||
if (lastIndex > lastLastIndex) {
|
||||
push(output, strSlice(string, lastLastIndex, match.index));
|
||||
pushCall(output, strSlice(string, lastLastIndex, match.index));
|
||||
// Fix browsers whose `exec` methods don't consistently return `undefined` for
|
||||
// nonparticipating capturing groups
|
||||
if (!compliantExecNpcg && match.length > 1) {
|
||||
@@ -1565,7 +1814,7 @@ if (
|
||||
/* eslint-enable no-loop-func */
|
||||
}
|
||||
if (match.length > 1 && match.index < string.length) {
|
||||
array_push.apply(output, array_slice.call(match, 1));
|
||||
array_push.apply(output, arraySlice(match, 1));
|
||||
}
|
||||
lastLength = match[0].length;
|
||||
lastLastIndex = lastIndex;
|
||||
@@ -1580,10 +1829,10 @@ if (
|
||||
}
|
||||
if (lastLastIndex === string.length) {
|
||||
if (lastLength || !separatorCopy.test('')) {
|
||||
push(output, '');
|
||||
pushCall(output, '');
|
||||
}
|
||||
} else {
|
||||
push(output, strSlice(string, lastLastIndex));
|
||||
pushCall(output, strSlice(string, lastLastIndex));
|
||||
}
|
||||
return output.length > splitLimit ? strSlice(output, 0, splitLimit) : output;
|
||||
};
|
||||
@@ -1606,7 +1855,7 @@ var str_replace = StringPrototype.replace;
|
||||
var replaceReportsGroupsCorrectly = (function () {
|
||||
var groups = [];
|
||||
'x'.replace(/x(.)?/g, function (match, group) {
|
||||
push(groups, group);
|
||||
pushCall(groups, group);
|
||||
});
|
||||
return groups.length === 1 && typeof groups[0] === 'undefined';
|
||||
}());
|
||||
@@ -1624,7 +1873,7 @@ if (!replaceReportsGroupsCorrectly) {
|
||||
searchValue.lastIndex = 0;
|
||||
var args = searchValue.exec(match) || [];
|
||||
searchValue.lastIndex = originalLastIndex;
|
||||
push(args, arguments[length - 2], arguments[length - 1]);
|
||||
pushCall(args, arguments[length - 2], arguments[length - 1]);
|
||||
return replaceValue.apply(this, args);
|
||||
};
|
||||
return str_replace.call(this, searchValue, wrappedReplaceValue);
|
||||
@@ -1669,6 +1918,7 @@ defineProperties(StringPrototype, {
|
||||
return $String(this).replace(trimBeginRegexp, '').replace(trimEndRegexp, '');
|
||||
}
|
||||
}, hasTrimWhitespaceBug);
|
||||
var trim = call.bind(String.prototype.trim);
|
||||
|
||||
var hasLastIndexBug = StringPrototype.lastIndexOf && 'abcあい'.lastIndexOf('あい', 2) !== -1;
|
||||
defineProperties(StringPrototype, {
|
||||
@@ -1709,15 +1959,26 @@ if (parseInt(ws + '08') !== 8 || parseInt(ws + '0x16') !== 22) {
|
||||
parseInt = (function (origParseInt) {
|
||||
var hexRegex = /^[\-+]?0[xX]/;
|
||||
return function parseInt(str, radix) {
|
||||
var string = $String(str).trim();
|
||||
var string = trim(str);
|
||||
var defaultedRadix = $Number(radix) || (hexRegex.test(string) ? 16 : 10);
|
||||
return origParseInt(string, defaultedRadix);
|
||||
};
|
||||
}(parseInt));
|
||||
}
|
||||
|
||||
// https://es5.github.io/#x15.1.2.3
|
||||
if (1 / parseFloat('-0') !== -Infinity) {
|
||||
/* global parseFloat: true */
|
||||
parseFloat = (function (origParseFloat) {
|
||||
return function parseFloat(string) {
|
||||
var inputString = trim(string);
|
||||
var result = origParseFloat(inputString);
|
||||
return result === 0 && strSlice(inputString, 0, 1) === '-' ? -0 : result;
|
||||
};
|
||||
}(parseFloat));
|
||||
}
|
||||
|
||||
if (String(new RangeError('test')) !== 'RangeError: test') {
|
||||
var originalErrorToString = Error.prototype.toString;
|
||||
var errorToStringShim = function toString() {
|
||||
if (typeof this === 'undefined' || this === null) {
|
||||
throw new TypeError("can't convert " + this + ' to object');
|
||||
@@ -1746,6 +2007,39 @@ if (String(new RangeError('test')) !== 'RangeError: test') {
|
||||
Error.prototype.toString = errorToStringShim;
|
||||
}
|
||||
|
||||
if (supportsDescriptors) {
|
||||
var ensureNonEnumerable = function (obj, prop) {
|
||||
if (isEnum(obj, prop)) {
|
||||
var desc = Object.getOwnPropertyDescriptor(obj, prop);
|
||||
desc.enumerable = false;
|
||||
Object.defineProperty(obj, prop, desc);
|
||||
}
|
||||
};
|
||||
ensureNonEnumerable(Error.prototype, 'message');
|
||||
if (Error.prototype.message !== '') {
|
||||
Error.prototype.message = '';
|
||||
}
|
||||
ensureNonEnumerable(Error.prototype, 'name');
|
||||
}
|
||||
|
||||
if (String(/a/mig) !== '/a/gim') {
|
||||
var regexToString = function toString() {
|
||||
var str = '/' + this.source + '/';
|
||||
if (this.global) {
|
||||
str += 'g';
|
||||
}
|
||||
if (this.ignoreCase) {
|
||||
str += 'i';
|
||||
}
|
||||
if (this.multiline) {
|
||||
str += 'm';
|
||||
}
|
||||
return str;
|
||||
};
|
||||
// can't use defineProperties here because of toString enumeration issue in IE <= 8
|
||||
RegExp.prototype.toString = regexToString;
|
||||
}
|
||||
|
||||
}));
|
||||
|
||||
/*!
|
||||
@@ -1760,7 +2054,7 @@ if (String(new RangeError('test')) !== 'RangeError: test') {
|
||||
;
|
||||
|
||||
// UMD (Universal Module Definition)
|
||||
// see https://github.com/umdjs/umd/blob/master/returnExports.js
|
||||
// see https://github.com/umdjs/umd/blob/master/templates/returnExports.js
|
||||
(function (root, factory) {
|
||||
'use strict';
|
||||
|
||||
@@ -1779,10 +2073,10 @@ if (String(new RangeError('test')) !== 'RangeError: test') {
|
||||
}
|
||||
}(this, function () {
|
||||
|
||||
var call = Function.prototype.call;
|
||||
var call = Function.call;
|
||||
var prototypeOfObject = Object.prototype;
|
||||
var owns = call.bind(prototypeOfObject.hasOwnProperty);
|
||||
var propertyIsEnumerable = call.bind(prototypeOfObject.propertyIsEnumerable);
|
||||
var isEnumerable = call.bind(prototypeOfObject.propertyIsEnumerable);
|
||||
var toStr = call.bind(prototypeOfObject.toString);
|
||||
|
||||
// If JS engine supports accessors creating shortcuts.
|
||||
@@ -1881,7 +2175,7 @@ if (!Object.getOwnPropertyDescriptor || getOwnPropertyDescriptorFallback) {
|
||||
// If object has a property then it's for sure `configurable`, and
|
||||
// probably `enumerable`. Detect enumerability though.
|
||||
descriptor = {
|
||||
enumerable: propertyIsEnumerable(object, property),
|
||||
enumerable: isEnumerable(object, property),
|
||||
configurable: true
|
||||
};
|
||||
|
||||
|
||||
externo
+1
-1
Diff do arquivo suprimido porque uma ou mais linhas são muito longas
externo
+3
-3
@@ -1,6 +1,6 @@
|
||||
videojs.addLanguage("pt-BR",{
|
||||
"Play": "Tocar",
|
||||
"Pause": "Pausar",
|
||||
"Pause": "Pause",
|
||||
"Current Time": "Tempo",
|
||||
"Duration Time": "Duração",
|
||||
"Remaining Time": "Tempo Restante",
|
||||
@@ -18,9 +18,9 @@ videojs.addLanguage("pt-BR",{
|
||||
"Captions": "Anotações",
|
||||
"captions off": "Sem Anotações",
|
||||
"Chapters": "Capítulos",
|
||||
"You aborted the media playback": "Você parou a execução do vídeo.",
|
||||
"You aborted the media playback": "Você parou a execução de vídeo.",
|
||||
"A network error caused the media download to fail part-way.": "Um erro na rede fez o vídeo parar parcialmente.",
|
||||
"The media could not be loaded, either because the server or network failed or because the format is not supported.": "O vídeo não pode ser carregado, ou porque houve um problema com sua rede ou pelo formato do vídeo não ser suportado.",
|
||||
"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "A execução foi interrompida por um problema com o vídeo ou por seu navegador não dar suporte ao seu formato.",
|
||||
"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "A Execução foi interrompida por um problema com o vídeo ou por seu navegador não dar suporte ao seu formato.",
|
||||
"No compatible source was found for this media.": "Não foi encontrada fonte de vídeo compatível."
|
||||
});
|
||||
Arquivo binário não exibido.
externo
+38
-33
Diff do arquivo suprimido porque uma ou mais linhas são muito longas
externo
+1
-1
Diff do arquivo suprimido porque uma ou mais linhas são muito longas
externo
+18
-40
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
* @license
|
||||
* Video.js 5.10.7 <http://videojs.com/>
|
||||
* Video.js 5.10.4 <http://videojs.com/>
|
||||
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
|
||||
* Available under Apache License Version 2.0
|
||||
* <https://github.com/videojs/video.js/blob/master/LICENSE>
|
||||
@@ -5067,6 +5067,7 @@ var ControlBar = (function (_Component) {
|
||||
})(_componentJs2['default']);
|
||||
|
||||
ControlBar.prototype.options_ = {
|
||||
loadEvent: 'play',
|
||||
children: ['playToggle', 'volumeMenuButton', 'currentTimeDisplay', 'timeDivider', 'durationDisplay', 'progressControl', 'liveDisplay', 'remainingTimeDisplay', 'customControlSpacer', 'playbackRateMenuButton', 'chaptersButton', 'descriptionsButton', 'subtitlesButton', 'captionsButton', 'audioTrackButton', 'fullscreenToggle']
|
||||
};
|
||||
|
||||
@@ -6906,11 +6907,9 @@ var ChaptersButton = (function (_TextTrackButton) {
|
||||
|
||||
var tracks = this.player_.textTracks() || [];
|
||||
var chaptersTrack = undefined;
|
||||
var items = this.items || [];
|
||||
var items = this.items = [];
|
||||
|
||||
for (var i = tracks.length - 1; i >= 0; i--) {
|
||||
|
||||
// We will always choose the last track as our chaptersTrack
|
||||
for (var i = 0, _length = tracks.length; i < _length; i++) {
|
||||
var track = tracks[i];
|
||||
|
||||
if (track['kind'] === this.kind_) {
|
||||
@@ -6930,14 +6929,6 @@ var ChaptersButton = (function (_TextTrackButton) {
|
||||
});
|
||||
menu.children_.unshift(title);
|
||||
Dom.insertElFirst(title, menu.contentEl());
|
||||
} else {
|
||||
// We will empty out the menu children each time because we want a
|
||||
// fresh new menu child list each time
|
||||
items.forEach(function (item) {
|
||||
return menu.removeChild(item);
|
||||
});
|
||||
// Empty out the ChaptersButton menu items because we no longer need them
|
||||
items = [];
|
||||
}
|
||||
|
||||
if (chaptersTrack && chaptersTrack.cues == null) {
|
||||
@@ -6968,13 +6959,14 @@ var ChaptersButton = (function (_TextTrackButton) {
|
||||
|
||||
menu.addChild(mi);
|
||||
}
|
||||
|
||||
this.addChild(menu);
|
||||
}
|
||||
|
||||
if (items.length > 0) {
|
||||
if (this.items.length > 0) {
|
||||
this.show();
|
||||
}
|
||||
// Assigning the value of items back to this.items for next iteration
|
||||
this.items = items;
|
||||
|
||||
return menu;
|
||||
};
|
||||
|
||||
@@ -10871,11 +10863,7 @@ var Player = (function (_Component) {
|
||||
// In Chrome (15), if you have autoplay + a poster + no controls, the video gets hidden (but audio plays)
|
||||
// This fixes both issues. Need to wait for API, so it updates displays correctly
|
||||
if (this.src() && this.tag && this.options_.autoplay && this.paused()) {
|
||||
try {
|
||||
delete this.tag.poster; // Chrome Fix. Fixed in Chrome v16.
|
||||
} catch (e) {
|
||||
_utilsLogJs2['default']('deleting tag.poster throws in some browsers', e);
|
||||
}
|
||||
delete this.tag.poster; // Chrome Fix. Fixed in Chrome v16.
|
||||
this.play();
|
||||
}
|
||||
};
|
||||
@@ -15859,14 +15847,9 @@ Html5.registerSourceHandler(Html5.nativeSourceHandler);
|
||||
* @return {Boolean}
|
||||
*/
|
||||
Html5.canControlVolume = function () {
|
||||
// IE will error if Windows Media Player not installed #3315
|
||||
try {
|
||||
var volume = Html5.TEST_VID.volume;
|
||||
Html5.TEST_VID.volume = volume / 2 + 0.1;
|
||||
return volume !== Html5.TEST_VID.volume;
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
var volume = Html5.TEST_VID.volume;
|
||||
Html5.TEST_VID.volume = volume / 2 + 0.1;
|
||||
return volume !== Html5.TEST_VID.volume;
|
||||
};
|
||||
|
||||
/*
|
||||
@@ -15880,14 +15863,9 @@ Html5.canControlPlaybackRate = function () {
|
||||
if (browser.IS_ANDROID && browser.IS_CHROME) {
|
||||
return false;
|
||||
}
|
||||
// IE will error if Windows Media Player not installed #3315
|
||||
try {
|
||||
var playbackRate = Html5.TEST_VID.playbackRate;
|
||||
Html5.TEST_VID.playbackRate = playbackRate / 2 + 0.1;
|
||||
return playbackRate !== Html5.TEST_VID.playbackRate;
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
var playbackRate = Html5.TEST_VID.playbackRate;
|
||||
Html5.TEST_VID.playbackRate = playbackRate / 2 + 0.1;
|
||||
return playbackRate !== Html5.TEST_VID.playbackRate;
|
||||
};
|
||||
|
||||
/*
|
||||
@@ -21670,7 +21648,7 @@ if (typeof HTMLVideoElement === 'undefined') {
|
||||
* @mixes videojs
|
||||
* @method videojs
|
||||
*/
|
||||
function videojs(id, options, ready) {
|
||||
var videojs = function videojs(id, options, ready) {
|
||||
var tag = undefined; // Element of ID
|
||||
|
||||
// Allow for element or ID to be passed in
|
||||
@@ -21715,7 +21693,7 @@ function videojs(id, options, ready) {
|
||||
// Element may have a player attr referring to an already created player instance.
|
||||
// If not, set up a new player and return the instance.
|
||||
return tag['player'] || _player2['default'].players[tag.playerId] || new _player2['default'](tag, options, ready);
|
||||
}
|
||||
};
|
||||
|
||||
// Add default styles
|
||||
if (_globalWindow2['default'].VIDEOJS_NO_DYNAMIC_STYLE !== true) {
|
||||
@@ -21738,7 +21716,7 @@ setup.autoSetupTimeout(1, videojs);
|
||||
*
|
||||
* @type {String}
|
||||
*/
|
||||
videojs.VERSION = '5.10.7';
|
||||
videojs.VERSION = '5.10.4';
|
||||
|
||||
/**
|
||||
* The global options object. These are the settings that take effect
|
||||
|
||||
externo
+6
-6
Diff do arquivo suprimido porque uma ou mais linhas são muito longas
externo
+8
-9
Diff do arquivo suprimido porque uma ou mais linhas são muito longas
externo
+1
-1
Diff do arquivo suprimido porque uma ou mais linhas são muito longas
+3
-3
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"Play": "Tocar",
|
||||
"Pause": "Pausar",
|
||||
"Pause": "Pause",
|
||||
"Current Time": "Tempo",
|
||||
"Duration Time": "Duração",
|
||||
"Remaining Time": "Tempo Restante",
|
||||
@@ -18,9 +18,9 @@
|
||||
"Captions": "Anotações",
|
||||
"captions off": "Sem Anotações",
|
||||
"Chapters": "Capítulos",
|
||||
"You aborted the media playback": "Você parou a execução do vídeo.",
|
||||
"You aborted the media playback": "Você parou a execução de vídeo.",
|
||||
"A network error caused the media download to fail part-way.": "Um erro na rede fez o vídeo parar parcialmente.",
|
||||
"The media could not be loaded, either because the server or network failed or because the format is not supported.": "O vídeo não pode ser carregado, ou porque houve um problema com sua rede ou pelo formato do vídeo não ser suportado.",
|
||||
"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "A execução foi interrompida por um problema com o vídeo ou por seu navegador não dar suporte ao seu formato.",
|
||||
"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "A Execução foi interrompida por um problema com o vídeo ou por seu navegador não dar suporte ao seu formato.",
|
||||
"No compatible source was found for this media.": "Não foi encontrada fonte de vídeo compatível."
|
||||
}
|
||||
|
||||
+9
-9
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "video.js",
|
||||
"description": "An HTML5 and Flash video player with a common API and skin for both.",
|
||||
"version": "5.10.7",
|
||||
"version": "5.10.4",
|
||||
"copyright": "Copyright Brightcove, Inc. <https://www.brightcove.com/>",
|
||||
"license": "Apache-2.0",
|
||||
"keywords": [
|
||||
@@ -23,16 +23,16 @@
|
||||
"main": "./dist/video.js",
|
||||
"style": "./dist/video-js.css",
|
||||
"dependencies": {
|
||||
"global": "4.3.0",
|
||||
"lodash-compat": "3.10.2",
|
||||
"object.assign": "4.0.3",
|
||||
"safe-json-parse": "4.0.0",
|
||||
"global": "^4.3.0",
|
||||
"lodash-compat": "^3.9.3",
|
||||
"object.assign": "^4.0.1",
|
||||
"safe-json-parse": "^4.0.0",
|
||||
"tsml": "1.0.1",
|
||||
"videojs-font": "2.0.0",
|
||||
"videojs-font": "^2.0.0",
|
||||
"videojs-ie8": "1.1.2",
|
||||
"videojs-swf": "5.0.1",
|
||||
"videojs-vtt.js": "0.12.1",
|
||||
"xhr": "2.2.0"
|
||||
"videojs-vtt.js": "^0.12.1",
|
||||
"xhr": "~2.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel": "^5.2.2",
|
||||
@@ -44,7 +44,6 @@
|
||||
"chg": "^0.3.2",
|
||||
"css": "^2.2.0",
|
||||
"es5-shim": "^4.1.3",
|
||||
"gkatsev-grunt-sass": "^1.1.1",
|
||||
"grunt": "^0.4.4",
|
||||
"grunt-aws-s3": "^0.12.1",
|
||||
"grunt-banner": "^0.4.0",
|
||||
@@ -65,6 +64,7 @@
|
||||
"grunt-fastly": "^0.1.3",
|
||||
"grunt-github-releaser": "^0.1.17",
|
||||
"grunt-karma": "^0.8.3",
|
||||
"grunt-sass": "^1.0.0",
|
||||
"grunt-version": "~0.3.0",
|
||||
"grunt-videojs-languages": "0.0.4",
|
||||
"grunt-zip": "0.10.2",
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
display: block;
|
||||
padding: 0; margin: 0;
|
||||
overflow: auto;
|
||||
font-family: $text-font-family;
|
||||
}
|
||||
|
||||
// prevent menus from opening while scrubbing (FF, IE)
|
||||
|
||||
@@ -48,6 +48,7 @@ class ControlBar extends Component {
|
||||
}
|
||||
|
||||
ControlBar.prototype.options_ = {
|
||||
loadEvent: 'play',
|
||||
children: [
|
||||
'playToggle',
|
||||
'volumeMenuButton',
|
||||
|
||||
@@ -75,11 +75,9 @@ class ChaptersButton extends TextTrackButton {
|
||||
createMenu() {
|
||||
let tracks = this.player_.textTracks() || [];
|
||||
let chaptersTrack;
|
||||
let items = this.items || [];
|
||||
let items = this.items = [];
|
||||
|
||||
for (let i = tracks.length - 1; i >= 0; i--) {
|
||||
|
||||
// We will always choose the last track as our chaptersTrack
|
||||
for (let i = 0, length = tracks.length; i < length; i++) {
|
||||
let track = tracks[i];
|
||||
|
||||
if (track['kind'] === this.kind_) {
|
||||
@@ -99,12 +97,6 @@ class ChaptersButton extends TextTrackButton {
|
||||
});
|
||||
menu.children_.unshift(title);
|
||||
Dom.insertElFirst(title, menu.contentEl());
|
||||
} else {
|
||||
// We will empty out the menu children each time because we want a
|
||||
// fresh new menu child list each time
|
||||
items.forEach(item => menu.removeChild(item));
|
||||
// Empty out the ChaptersButton menu items because we no longer need them
|
||||
items = [];
|
||||
}
|
||||
|
||||
if (chaptersTrack && chaptersTrack.cues == null) {
|
||||
@@ -132,15 +124,17 @@ class ChaptersButton extends TextTrackButton {
|
||||
|
||||
menu.addChild(mi);
|
||||
}
|
||||
|
||||
this.addChild(menu);
|
||||
}
|
||||
|
||||
if (items.length > 0) {
|
||||
if (this.items.length > 0) {
|
||||
this.show();
|
||||
}
|
||||
// Assigning the value of items back to this.items for next iteration
|
||||
this.items = items;
|
||||
|
||||
return menu;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
ChaptersButton.prototype.kind_ = 'chapters';
|
||||
|
||||
+1
-6
@@ -773,12 +773,7 @@ class Player extends Component {
|
||||
// In Chrome (15), if you have autoplay + a poster + no controls, the video gets hidden (but audio plays)
|
||||
// This fixes both issues. Need to wait for API, so it updates displays correctly
|
||||
if (this.src() && this.tag && this.options_.autoplay && this.paused()) {
|
||||
try {
|
||||
delete this.tag.poster; // Chrome Fix. Fixed in Chrome v16.
|
||||
}
|
||||
catch (e) {
|
||||
log('deleting tag.poster throws in some browsers', e);
|
||||
}
|
||||
delete this.tag.poster; // Chrome Fix. Fixed in Chrome v16.
|
||||
this.play();
|
||||
}
|
||||
}
|
||||
|
||||
+6
-16
@@ -992,14 +992,9 @@ Html5.registerSourceHandler(Html5.nativeSourceHandler);
|
||||
* @return {Boolean}
|
||||
*/
|
||||
Html5.canControlVolume = function(){
|
||||
// IE will error if Windows Media Player not installed #3315
|
||||
try {
|
||||
var volume = Html5.TEST_VID.volume;
|
||||
Html5.TEST_VID.volume = (volume / 2) + 0.1;
|
||||
return volume !== Html5.TEST_VID.volume;
|
||||
} catch(e) {
|
||||
return false;
|
||||
}
|
||||
var volume = Html5.TEST_VID.volume;
|
||||
Html5.TEST_VID.volume = (volume / 2) + 0.1;
|
||||
return volume !== Html5.TEST_VID.volume;
|
||||
};
|
||||
|
||||
/*
|
||||
@@ -1013,14 +1008,9 @@ Html5.canControlPlaybackRate = function(){
|
||||
if (browser.IS_ANDROID && browser.IS_CHROME) {
|
||||
return false;
|
||||
}
|
||||
// IE will error if Windows Media Player not installed #3315
|
||||
try {
|
||||
var playbackRate = Html5.TEST_VID.playbackRate;
|
||||
Html5.TEST_VID.playbackRate = (playbackRate / 2) + 0.1;
|
||||
return playbackRate !== Html5.TEST_VID.playbackRate;
|
||||
} catch(e) {
|
||||
return false;
|
||||
}
|
||||
var playbackRate = Html5.TEST_VID.playbackRate;
|
||||
Html5.TEST_VID.playbackRate = (playbackRate / 2) + 0.1;
|
||||
return playbackRate !== Html5.TEST_VID.playbackRate;
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
+2
-2
@@ -55,7 +55,7 @@ if (typeof HTMLVideoElement === 'undefined') {
|
||||
* @mixes videojs
|
||||
* @method videojs
|
||||
*/
|
||||
function videojs(id, options, ready){
|
||||
let videojs = function(id, options, ready){
|
||||
let tag; // Element of ID
|
||||
|
||||
// Allow for element or ID to be passed in
|
||||
@@ -99,7 +99,7 @@ function videojs(id, options, ready){
|
||||
// Element may have a player attr referring to an already created player instance.
|
||||
// If not, set up a new player and return the instance.
|
||||
return tag['player'] || Player.players[tag.playerId] || new Player(tag, options, ready);
|
||||
}
|
||||
};
|
||||
|
||||
// Add default styles
|
||||
if (window.VIDEOJS_NO_DYNAMIC_STYLE !== true) {
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário