Comparar commits

..

1 Commits

Autor SHA1 Mensagem Data
Gary Katsevman 06be327ebf v5.12.3 dist 2016-10-06 14:20:12 -04:00
13 arquivos alterados com 49 adições e 134 exclusões
-20
Ver Arquivo
@@ -1,20 +1,3 @@
<a name="5.12.4"></a>
## [5.12.4](https://github.com/videojs/video.js/compare/v5.12.3...v5.12.4) (2016-10-18)
### Bug Fixes
* logging failing on browsers that don't always have console ([#3686](https://github.com/videojs/video.js/issues/3686)) ([e932061](https://github.com/videojs/video.js/commit/e932061))
* Restore timeupdate/loadedmetadata listeners for duration display ([#3682](https://github.com/videojs/video.js/issues/3682)) ([44ec0e4](https://github.com/videojs/video.js/commit/44ec0e4))
### Chores
* **grunt:** fix getting changelog by switching to npm-run ([#3687](https://github.com/videojs/video.js/issues/3687)) ([8845bd3](https://github.com/videojs/video.js/commit/8845bd3)), closes [#3683](https://github.com/videojs/video.js/issues/3683)
### Documentation
* **options.md:** Remove Bad Apostrophe ([#3677](https://github.com/videojs/video.js/issues/3677)) ([16c8559](https://github.com/videojs/video.js/commit/16c8559))
* **tech.md:** Add a note on Flash permissions in sandboxed environments ([#3684](https://github.com/videojs/video.js/issues/3684)) ([66922a8](https://github.com/videojs/video.js/commit/66922a8))
<a name="5.12.3"></a>
## [5.12.3](https://github.com/videojs/video.js/compare/v5.10.7...v5.12.3) (2016-10-06)
@@ -80,9 +63,6 @@
* @gkatsev added tests for webpack and browserify bundling and node.js requiring ([view](https://github.com/videojs/video.js/pull/3558))
* @rlchung fixed tests that weren't disposing players when they finished ([view](https://github.com/videojs/video.js/pull/3524))
## 5.11.8 (2016-10-17)
* @misteroneill restore timeupdate/loadedmetadata listeners for duration display ([view](https://github.com/videojs/video.js/pull/3682))
## 5.11.7 (2016-09-28)
* @gkatsev checked throwIfWhitespace first in hasElClass ([view](https://github.com/videojs/video.js/pull/3640))
* @misteroneill pinned grunt-contrib-uglify to ~0.11 to pin uglify to ~2.6 ([view](https://github.com/videojs/video.js/pull/3634))
+2 -5
Ver Arquivo
@@ -1,6 +1,6 @@
import {gruntCustomizer, gruntOptionsMaker} from './options-customizer.js';
import chg from 'chg';
import npmRun from 'npm-run';
import nodeCli from 'shelljs-nodecli';
module.exports = function(grunt) {
require('time-grunt')(grunt);
@@ -32,10 +32,7 @@ module.exports = function(grunt) {
release: {
tag_name: 'v'+ version.full,
name: version.full,
body: npmRun.execSync('conventional-changelog -p videojs', {
silent: true,
encoding: 'utf8'
})
body: nodeCli.exec('conventional-changelog', '-p videojs', {silent: true}).output
},
},
files: {
+1 -1
Ver Arquivo
@@ -1,7 +1,7 @@
{
"name": "video.js",
"description": "An HTML5 and Flash video player with a common API and skin for both.",
"version": "5.12.4",
"version": "5.12.3",
"keywords": [
"videojs",
"html5",
+11 -22
Ver Arquivo
@@ -1,6 +1,6 @@
/**
* @license
* Video.js 5.12.4 <http://videojs.com/>
* Video.js 5.12.3 <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>
@@ -5226,12 +5226,6 @@ var DurationDisplay = function (_Component) {
var _this = _possibleConstructorReturn(this, _Component.call(this, player, options));
_this.on(player, 'durationchange', _this.updateContent);
// Also listen for timeupdate and loadedmetadata because removing those
// listeners could have broken dependent applications/libraries. These
// can likely be removed for 6.0.
_this.on(player, 'timeupdate', _this.updateContent);
_this.on(player, 'loadedmetadata', _this.updateContent);
return _this;
}
@@ -18789,6 +18783,14 @@ var logByType = exports.logByType = function logByType(type, args) {
var stringify = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : !!_browser.IE_VERSION && _browser.IE_VERSION < 11;
// If there's no console then don't try to output messages, but they will
// still be stored in `log.history`.
//
// Was setting these once outside of this function, but containing them
// in the function makes it easier to test cases where console doesn't exist
// when the module is executed.
var fn = _window2['default'].console && _window2['default'].console[type] || function () {};
if (type !== 'log') {
// add the type to the front of the message when it's not "log"
@@ -18801,19 +18803,6 @@ var logByType = exports.logByType = function logByType(type, args) {
// add console prefix after adding to history
args.unshift('VIDEOJS:');
// If there's no console then don't try to output messages, but they will
// still be stored in `log.history`.
//
// Was setting these once outside of this function, but containing them
// in the function makes it easier to test cases where console doesn't exist
// when the module is executed.
var fn = _window2['default'].console && _window2['default'].console[type];
// Bail out if there's no console.
if (!fn) {
return;
}
// IEs previous to 11 log objects uselessly as "[object Object]"; so, JSONify
// objects and arrays for those less-capable browsers.
if (stringify) {
@@ -18837,7 +18826,7 @@ var logByType = exports.logByType = function logByType(type, args) {
if (!fn.apply) {
fn(args);
} else {
fn[Array.isArray(args) ? 'apply' : 'call'](_window2['default'].console, args);
fn[Array.isArray(args) ? 'apply' : 'call'](console, args);
}
};
@@ -19422,7 +19411,7 @@ setup.autoSetupTimeout(1, videojs);
*
* @type {String}
*/
videojs.VERSION = '5.12.4';
videojs.VERSION = '5.12.3';
/**
* The global options object. These are the settings that take effect
+6 -19
Ver Arquivo
@@ -1,6 +1,6 @@
/**
* @license
* Video.js 5.12.4 <http://videojs.com/>
* Video.js 5.12.3 <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>
@@ -1369,11 +1369,7 @@ innerHTML:'<span class="vjs-control-text">Current Time </span>0:00'},{
// tell screen readers not to automatically read the time as it changes
"aria-live":"off"}),b.appendChild(this.contentEl_),b},b.prototype.updateContent=function(){
// Allows for smooth scrubbing, when player can't keep up.
var a=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),b=this.localize("Current Time"),c=(0,n["default"])(a,this.player_.duration());c!==this.formattedTime_&&(this.formattedTime_=c,this.contentEl_.innerHTML='<span class="vjs-control-text">'+b+"</span> "+c)},b}(j["default"]);j["default"].registerComponent("CurrentTimeDisplay",o),c["default"]=o},{5:5,80:80,83:83}],33:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var i=a(5),j=e(i),k=a(80),l=d(k),m=a(83),n=e(m),o=function(a){function b(c,d){f(this,b);var e=g(this,a.call(this,c,d));
// Also listen for timeupdate and loadedmetadata because removing those
// listeners could have broken dependent applications/libraries. These
// can likely be removed for 6.0.
return e.on(c,"durationchange",e.updateContent),e.on(c,"timeupdate",e.updateContent),e.on(c,"loadedmetadata",e.updateContent),e}/**
var a=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),b=this.localize("Current Time"),c=(0,n["default"])(a,this.player_.duration());c!==this.formattedTime_&&(this.formattedTime_=c,this.contentEl_.innerHTML='<span class="vjs-control-text">'+b+"</span> "+c)},b}(j["default"]);j["default"].registerComponent("CurrentTimeDisplay",o),c["default"]=o},{5:5,80:80,83:83}],33:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var i=a(5),j=e(i),k=a(80),l=d(k),m=a(83),n=e(m),o=function(a){function b(c,d){f(this,b);var e=g(this,a.call(this,c,d));return e.on(c,"durationchange",e.updateContent),e}/**
* Create the component's DOM element
*
* @return {Element}
@@ -5487,22 +5483,13 @@ function d(){return e++}c.__esModule=!0,c.newGUID=d;/**
* @type {Number}
* @private
*/
var e=1},{}],85:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}c.__esModule=!0,c.logByType=void 0;var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},f=a(93),g=d(f),h=a(78),i=void 0,j=c.logByType=function(a,b){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:!!h.IE_VERSION&&h.IE_VERSION<11;"log"!==a&&
var e=1},{}],85:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}c.__esModule=!0,c.logByType=void 0;var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},f=a(93),g=d(f),h=a(78),i=void 0,j=c.logByType=function(a,b){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:!!h.IE_VERSION&&h.IE_VERSION<11,d=g["default"].console&&g["default"].console[a]||function(){};"log"!==a&&
// add the type to the front of the message when it's not "log"
b.unshift(a.toUpperCase()+":"),
// add to history
i.history.push(b),
// add console prefix after adding to history
b.unshift("VIDEOJS:");
// If there's no console then don't try to output messages, but they will
// still be stored in `log.history`.
//
// Was setting these once outside of this function, but containing them
// in the function makes it easier to test cases where console doesn't exist
// when the module is executed.
var d=g["default"].console&&g["default"].console[a];
// Bail out if there's no console.
d&&(
b.unshift("VIDEOJS:"),
// IEs previous to 11 log objects uselessly as "[object Object]"; so, JSONify
// objects and arrays for those less-capable browsers.
c&&(b=b.map(function(a){if(a&&"object"===("undefined"==typeof a?"undefined":e(a))||Array.isArray(a))try{return JSON.stringify(a)}catch(b){return String(a)}
@@ -5511,7 +5498,7 @@ c&&(b=b.map(function(a){if(a&&"object"===("undefined"==typeof a?"undefined":e(a)
return String(a)}).join(" ")),
// Old IE versions do not allow .apply() for console methods (they are
// reported as objects rather than functions).
d.apply?d[Array.isArray(b)?"apply":"call"](g["default"].console,b):d(b))};/**
d.apply?d[Array.isArray(b)?"apply":"call"](console,b):d(b)};/**
* Log plain debug messages
*
* @function log
@@ -5647,7 +5634,7 @@ n.autoSetupTimeout(1,g),/*
*
* @type {String}
*/
g.VERSION="5.12.4",/**
g.VERSION="5.12.3",/**
* The global options object. These are the settings that take effect
* if no overrides are specified when the player is created.
*
Arquivo binário não exibido.
+11 -22
Ver Arquivo
@@ -1,6 +1,6 @@
/**
* @license
* Video.js 5.12.4 <http://videojs.com/>
* Video.js 5.12.3 <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>
@@ -5230,12 +5230,6 @@ var DurationDisplay = function (_Component) {
var _this = _possibleConstructorReturn(this, _Component.call(this, player, options));
_this.on(player, 'durationchange', _this.updateContent);
// Also listen for timeupdate and loadedmetadata because removing those
// listeners could have broken dependent applications/libraries. These
// can likely be removed for 6.0.
_this.on(player, 'timeupdate', _this.updateContent);
_this.on(player, 'loadedmetadata', _this.updateContent);
return _this;
}
@@ -18793,6 +18787,14 @@ var logByType = exports.logByType = function logByType(type, args) {
var stringify = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : !!_browser.IE_VERSION && _browser.IE_VERSION < 11;
// If there's no console then don't try to output messages, but they will
// still be stored in `log.history`.
//
// Was setting these once outside of this function, but containing them
// in the function makes it easier to test cases where console doesn't exist
// when the module is executed.
var fn = _window2['default'].console && _window2['default'].console[type] || function () {};
if (type !== 'log') {
// add the type to the front of the message when it's not "log"
@@ -18805,19 +18807,6 @@ var logByType = exports.logByType = function logByType(type, args) {
// add console prefix after adding to history
args.unshift('VIDEOJS:');
// If there's no console then don't try to output messages, but they will
// still be stored in `log.history`.
//
// Was setting these once outside of this function, but containing them
// in the function makes it easier to test cases where console doesn't exist
// when the module is executed.
var fn = _window2['default'].console && _window2['default'].console[type];
// Bail out if there's no console.
if (!fn) {
return;
}
// IEs previous to 11 log objects uselessly as "[object Object]"; so, JSONify
// objects and arrays for those less-capable browsers.
if (stringify) {
@@ -18841,7 +18830,7 @@ var logByType = exports.logByType = function logByType(type, args) {
if (!fn.apply) {
fn(args);
} else {
fn[Array.isArray(args) ? 'apply' : 'call'](_window2['default'].console, args);
fn[Array.isArray(args) ? 'apply' : 'call'](console, args);
}
};
@@ -19426,7 +19415,7 @@ setup.autoSetupTimeout(1, videojs);
*
* @type {String}
*/
videojs.VERSION = '5.12.4';
videojs.VERSION = '5.12.3';
/**
* The global options object. These are the settings that take effect
+6 -19
Ver Arquivo
@@ -1,6 +1,6 @@
/**
* @license
* Video.js 5.12.4 <http://videojs.com/>
* Video.js 5.12.3 <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>
@@ -1373,11 +1373,7 @@ innerHTML:'<span class="vjs-control-text">Current Time </span>0:00'},{
// tell screen readers not to automatically read the time as it changes
"aria-live":"off"}),b.appendChild(this.contentEl_),b},b.prototype.updateContent=function(){
// Allows for smooth scrubbing, when player can't keep up.
var a=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),b=this.localize("Current Time"),c=(0,n["default"])(a,this.player_.duration());c!==this.formattedTime_&&(this.formattedTime_=c,this.contentEl_.innerHTML='<span class="vjs-control-text">'+b+"</span> "+c)},b}(j["default"]);j["default"].registerComponent("CurrentTimeDisplay",o),c["default"]=o},{5:5,80:80,83:83}],33:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var i=a(5),j=e(i),k=a(80),l=d(k),m=a(83),n=e(m),o=function(a){function b(c,d){f(this,b);var e=g(this,a.call(this,c,d));
// Also listen for timeupdate and loadedmetadata because removing those
// listeners could have broken dependent applications/libraries. These
// can likely be removed for 6.0.
return e.on(c,"durationchange",e.updateContent),e.on(c,"timeupdate",e.updateContent),e.on(c,"loadedmetadata",e.updateContent),e}/**
var a=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),b=this.localize("Current Time"),c=(0,n["default"])(a,this.player_.duration());c!==this.formattedTime_&&(this.formattedTime_=c,this.contentEl_.innerHTML='<span class="vjs-control-text">'+b+"</span> "+c)},b}(j["default"]);j["default"].registerComponent("CurrentTimeDisplay",o),c["default"]=o},{5:5,80:80,83:83}],33:[function(a,b,c){"use strict";function d(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}c.__esModule=!0;var i=a(5),j=e(i),k=a(80),l=d(k),m=a(83),n=e(m),o=function(a){function b(c,d){f(this,b);var e=g(this,a.call(this,c,d));return e.on(c,"durationchange",e.updateContent),e}/**
* Create the component's DOM element
*
* @return {Element}
@@ -5491,22 +5487,13 @@ function d(){return e++}c.__esModule=!0,c.newGUID=d;/**
* @type {Number}
* @private
*/
var e=1},{}],85:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}c.__esModule=!0,c.logByType=void 0;var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},f=a(93),g=d(f),h=a(78),i=void 0,j=c.logByType=function(a,b){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:!!h.IE_VERSION&&h.IE_VERSION<11;"log"!==a&&
var e=1},{}],85:[function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}c.__esModule=!0,c.logByType=void 0;var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},f=a(93),g=d(f),h=a(78),i=void 0,j=c.logByType=function(a,b){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:!!h.IE_VERSION&&h.IE_VERSION<11,d=g["default"].console&&g["default"].console[a]||function(){};"log"!==a&&
// add the type to the front of the message when it's not "log"
b.unshift(a.toUpperCase()+":"),
// add to history
i.history.push(b),
// add console prefix after adding to history
b.unshift("VIDEOJS:");
// If there's no console then don't try to output messages, but they will
// still be stored in `log.history`.
//
// Was setting these once outside of this function, but containing them
// in the function makes it easier to test cases where console doesn't exist
// when the module is executed.
var d=g["default"].console&&g["default"].console[a];
// Bail out if there's no console.
d&&(
b.unshift("VIDEOJS:"),
// IEs previous to 11 log objects uselessly as "[object Object]"; so, JSONify
// objects and arrays for those less-capable browsers.
c&&(b=b.map(function(a){if(a&&"object"===("undefined"==typeof a?"undefined":e(a))||Array.isArray(a))try{return JSON.stringify(a)}catch(b){return String(a)}
@@ -5515,7 +5502,7 @@ c&&(b=b.map(function(a){if(a&&"object"===("undefined"==typeof a?"undefined":e(a)
return String(a)}).join(" ")),
// Old IE versions do not allow .apply() for console methods (they are
// reported as objects rather than functions).
d.apply?d[Array.isArray(b)?"apply":"call"](g["default"].console,b):d(b))};/**
d.apply?d[Array.isArray(b)?"apply":"call"](console,b):d(b)};/**
* Log plain debug messages
*
* @function log
@@ -5651,7 +5638,7 @@ n.autoSetupTimeout(1,g),/*
*
* @type {String}
*/
g.VERSION="5.12.4",/**
g.VERSION="5.12.3",/**
* The global options object. These are the settings that take effect
* if no overrides are specified when the player is created.
*
+1 -1
Ver Arquivo
@@ -54,7 +54,7 @@ or
### autoplay ###
If autoplay is true, the video will start playing as soon as page is loaded (without any interaction from the user).
NOT SUPPORTED BY APPLE iOS DEVICES. Apple blocks the autoplay functionality in an effort to protect its customers from unwillingly using a lot of their (often expensive) monthly data plans. A user touch/click is required to start the video in this case.
NOT SUPPORTED BY APPLE iOS DEVICES. Apple blocks the autoplay functionality in an effort to protect it's customers from unwillingly using a lot of their (often expensive) monthly data plans. A user touch/click is required to start the video in this case.
```html
<video autoplay ...>
or
-3
Ver Arquivo
@@ -100,6 +100,3 @@ You may optionally use the last `/` as the separator between connection and stre
<source src="rtmp://your.streaming.provider.net/cfx/st/mp4:video.mp4" type="rtmp/mp4">
All four RTMP protocols are valid in the `src` (RTMP, RTMPT, RTMPE, and RTMPS).
### A note on sandboxing and security
In some environments, such as Electron and NW.js apps, stricter policies are enforced, and `.swf` files wont be able to communicate with the outside world out of the box. To stream media, you have to add them to a special manifest of trusted files. [nw-flash-trust](https://github.com/szwacz/nw-flash-trust) makes this job easy.
+2 -2
Ver Arquivo
@@ -1,7 +1,7 @@
{
"name": "video.js",
"description": "An HTML5 and Flash video player with a common API and skin for both.",
"version": "5.12.4",
"version": "5.12.3",
"main": "./es5/video.js",
"style": "./dist/video-js.css",
"copyright": "Copyright Brightcove, Inc. <https://www.brightcove.com/>",
@@ -98,9 +98,9 @@
"karma-sinon": "^1.0.5",
"load-grunt-tasks": "^3.1.0",
"markdown-table": "^1.0.0",
"npm-run": "^4.1.0",
"proxyquireify": "^3.0.0",
"qunitjs": "^1.23.1",
"shelljs-nodecli": "^0.1.1",
"sinon": "^1.16.1",
"time-grunt": "^1.1.1",
"uglify-js": "~2.7.3",
@@ -19,12 +19,6 @@ class DurationDisplay extends Component {
super(player, options);
this.on(player, 'durationchange', this.updateContent);
// Also listen for timeupdate and loadedmetadata because removing those
// listeners could have broken dependent applications/libraries. These
// can likely be removed for 6.0.
this.on(player, 'timeupdate', this.updateContent);
this.on(player, 'loadedmetadata', this.updateContent);
}
/**
+9 -14
Ver Arquivo
@@ -19,6 +19,14 @@ let log;
*/
export const logByType = (type, args, stringify = !!IE_VERSION && IE_VERSION < 11) => {
// If there's no console then don't try to output messages, but they will
// still be stored in `log.history`.
//
// Was setting these once outside of this function, but containing them
// in the function makes it easier to test cases where console doesn't exist
// when the module is executed.
const fn = window.console && window.console[type] || function() {};
if (type !== 'log') {
// add the type to the front of the message when it's not "log"
@@ -31,19 +39,6 @@ export const logByType = (type, args, stringify = !!IE_VERSION && IE_VERSION < 1
// add console prefix after adding to history
args.unshift('VIDEOJS:');
// If there's no console then don't try to output messages, but they will
// still be stored in `log.history`.
//
// Was setting these once outside of this function, but containing them
// in the function makes it easier to test cases where console doesn't exist
// when the module is executed.
const fn = window.console && window.console[type];
// Bail out if there's no console.
if (!fn) {
return;
}
// IEs previous to 11 log objects uselessly as "[object Object]"; so, JSONify
// objects and arrays for those less-capable browsers.
if (stringify) {
@@ -67,7 +62,7 @@ export const logByType = (type, args, stringify = !!IE_VERSION && IE_VERSION < 1
if (!fn.apply) {
fn(args);
} else {
fn[Array.isArray(args) ? 'apply' : 'call'](window.console, args);
fn[Array.isArray(args) ? 'apply' : 'call'](console, args);
}
};