This commit is contained in:
Sam Potts
2018-05-31 23:41:48 +10:00
parent d70a787af1
commit 969a877a34
16 changed files with 45 additions and 59 deletions
+9
View File
@@ -1,3 +1,12 @@
# v3.3.10
* Fix for buffer display alignment and incorrect BEM classname
* Fix for playback not resuming position after quality swap (fixes #991, thanks @philipgiuliani!)
* Travis integration (thanks @friday!)
* Translate quality badges and quality names (thanks @philipgiuliani!)
* Improve captions handling for streaming (thanks @friday!)
* Call duration update method manually if user config has duration (thanks @friday!)
# v3.3.9 # v3.3.9
Again, more changes from @friday! Again, more changes from @friday!
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -3628,7 +3628,7 @@ var defaults$1 = {
// Sprite (for icons) // Sprite (for icons)
loadSprite: true, loadSprite: true,
iconPrefix: 'plyr', iconPrefix: 'plyr',
iconUrl: 'https://cdn.plyr.io/3.3.9/plyr.svg', iconUrl: 'https://cdn.plyr.io/3.3.10/plyr.svg',
// Blank video (used to prevent errors on source change) // Blank video (used to prevent errors on source change)
blankVideo: 'https://cdn.plyr.io/static/blank.mp4', blankVideo: 'https://cdn.plyr.io/static/blank.mp4',
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+19 -42
View File
@@ -20,7 +20,7 @@ if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
}); });
var _core = createCommonjsModule(function (module) { var _core = createCommonjsModule(function (module) {
var core = module.exports = { version: '2.5.6' }; var core = module.exports = { version: '2.5.3' };
if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
}); });
var _core_1 = _core.version; var _core_1 = _core.version;
@@ -333,18 +333,11 @@ var _arrayIncludes = function (IS_INCLUDES) {
}; };
}; };
var _shared = createCommonjsModule(function (module) {
var SHARED = '__core-js_shared__'; var SHARED = '__core-js_shared__';
var store = _global[SHARED] || (_global[SHARED] = {}); var store = _global[SHARED] || (_global[SHARED] = {});
var _shared = function (key) {
(module.exports = function (key, value) { return store[key] || (store[key] = {});
return store[key] || (store[key] = value !== undefined ? value : {}); };
})('versions', []).push({
version: _core.version,
mode: _library ? 'pure' : 'global',
copyright: '© 2018 Denis Pushkarev (zloirock.ru)'
});
});
var shared = _shared('keys'); var shared = _shared('keys');
@@ -998,7 +991,7 @@ var _iterDefine = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORC
var VALUES_BUG = false; var VALUES_BUG = false;
var proto = Base.prototype; var proto = Base.prototype;
var $native = proto[ITERATOR$2] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]; var $native = proto[ITERATOR$2] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
var $default = $native || getMethod(DEFAULT); var $default = (!BUGGY && $native) || getMethod(DEFAULT);
var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined; var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
var $anyNative = NAME == 'Array' ? proto.entries || $native : $native; var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
var methods, key, IteratorPrototype; var methods, key, IteratorPrototype;
@@ -1009,7 +1002,7 @@ var _iterDefine = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORC
// Set @@toStringTag to native iterators // Set @@toStringTag to native iterators
_setToStringTag(IteratorPrototype, TAG, true); _setToStringTag(IteratorPrototype, TAG, true);
// fix for some old engines // fix for some old engines
if (!_library && typeof IteratorPrototype[ITERATOR$2] != 'function') _hide(IteratorPrototype, ITERATOR$2, returnThis); if (!_library && !_has(IteratorPrototype, ITERATOR$2)) _hide(IteratorPrototype, ITERATOR$2, returnThis);
} }
} }
// fix Array#{values, @@iterator}.name in V8 / FF // fix Array#{values, @@iterator}.name in V8 / FF
@@ -2503,11 +2496,9 @@ function set(target, propertyKey, V /* , receiver */) {
} }
if (_has(ownDesc, 'value')) { if (_has(ownDesc, 'value')) {
if (ownDesc.writable === false || !_isObject(receiver)) return false; if (ownDesc.writable === false || !_isObject(receiver)) return false;
if (existingDescriptor = _objectGopd.f(receiver, propertyKey)) { existingDescriptor = _objectGopd.f(receiver, propertyKey) || _propertyDesc(0);
if (existingDescriptor.get || existingDescriptor.set || existingDescriptor.writable === false) return false; existingDescriptor.value = V;
existingDescriptor.value = V; _objectDp.f(receiver, propertyKey, existingDescriptor);
_objectDp.f(receiver, propertyKey, existingDescriptor);
} else _objectDp.f(receiver, propertyKey, _propertyDesc(0, V));
return true; return true;
} }
return ownDesc.set === undefined ? false : (ownDesc.set.call(receiver, V), true); return ownDesc.set === undefined ? false : (ownDesc.set.call(receiver, V), true);
@@ -2652,8 +2643,7 @@ var _microtask = function () {
}; };
// environments with maybe non-completely correct, but existent Promise // environments with maybe non-completely correct, but existent Promise
} else if (Promise$1 && Promise$1.resolve) { } else if (Promise$1 && Promise$1.resolve) {
// Promise.resolve without an argument throws an error in LG WebOS 2 var promise = Promise$1.resolve();
var promise = Promise$1.resolve(undefined);
notify = function () { notify = function () {
promise.then(flush); promise.then(flush);
}; };
@@ -2710,10 +2700,6 @@ var _perform = function (exec) {
} }
}; };
var navigator$1 = _global.navigator;
var _userAgent = navigator$1 && navigator$1.userAgent || '';
var _promiseResolve = function (C, x) { var _promiseResolve = function (C, x) {
_anObject(C); _anObject(C);
if (_isObject(x) && x.constructor === C) return x; if (_isObject(x) && x.constructor === C) return x;
@@ -2728,12 +2714,9 @@ var microtask = _microtask();
var PROMISE = 'Promise'; var PROMISE = 'Promise';
var TypeError$1 = _global.TypeError; var TypeError$1 = _global.TypeError;
var process$2 = _global.process; var process$2 = _global.process;
var versions = process$2 && process$2.versions;
var v8 = versions && versions.v8 || '';
var $Promise = _global[PROMISE]; var $Promise = _global[PROMISE];
var isNode$1 = _classof(process$2) == 'process'; var isNode$1 = _classof(process$2) == 'process';
var empty = function () { /* empty */ }; var empty = function () { /* empty */ };
@@ -2748,13 +2731,7 @@ var USE_NATIVE = !!function () {
exec(empty, empty); exec(empty, empty);
}; };
// unhandled rejections tracking support, NodeJS Promise without it fails @@species test // unhandled rejections tracking support, NodeJS Promise without it fails @@species test
return (isNode$1 || typeof PromiseRejectionEvent == 'function') return (isNode$1 || typeof PromiseRejectionEvent == 'function') && promise.then(empty) instanceof FakePromise;
&& promise.then(empty) instanceof FakePromise
// v8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
// https://bugs.chromium.org/p/chromium/issues/detail?id=830565
// we can't detect it synchronously, so just check versions
&& v8.indexOf('6.6') !== 0
&& _userAgent.indexOf('Chrome/66') === -1;
} catch (e) { /* empty */ } } catch (e) { /* empty */ }
}(); }();
@@ -2776,7 +2753,7 @@ var notify = function (promise, isReject) {
var resolve = reaction.resolve; var resolve = reaction.resolve;
var reject = reaction.reject; var reject = reaction.reject;
var domain = reaction.domain; var domain = reaction.domain;
var result, then, exited; var result, then;
try { try {
if (handler) { if (handler) {
if (!ok) { if (!ok) {
@@ -2786,11 +2763,8 @@ var notify = function (promise, isReject) {
if (handler === true) result = value; if (handler === true) result = value;
else { else {
if (domain) domain.enter(); if (domain) domain.enter();
result = handler(value); // may throw result = handler(value);
if (domain) { if (domain) domain.exit();
domain.exit();
exited = true;
}
} }
if (result === reaction.promise) { if (result === reaction.promise) {
reject(TypeError$1('Promise-chain cycle')); reject(TypeError$1('Promise-chain cycle'));
@@ -2799,7 +2773,6 @@ var notify = function (promise, isReject) {
} else resolve(result); } else resolve(result);
} else reject(value); } else reject(value);
} catch (e) { } catch (e) {
if (domain && !exited) domain.exit();
reject(e); reject(e);
} }
}; };
@@ -4182,6 +4155,10 @@ var _stringPad = function (that, maxLength, fillString, left) {
return left ? stringFiller + S : S + stringFiller; return left ? stringFiller + S : S + stringFiller;
}; };
var navigator$1 = _global.navigator;
var _userAgent = navigator$1 && navigator$1.userAgent || '';
// https://github.com/tc39/proposal-string-pad-start-end // https://github.com/tc39/proposal-string-pad-start-end
@@ -9034,7 +9011,7 @@ var defaults$1 = {
// Sprite (for icons) // Sprite (for icons)
loadSprite: true, loadSprite: true,
iconPrefix: 'plyr', iconPrefix: 'plyr',
iconUrl: 'https://cdn.plyr.io/3.3.9/plyr.svg', iconUrl: 'https://cdn.plyr.io/3.3.10/plyr.svg',
// Blank video (used to prevent errors on source change) // Blank video (used to prevent errors on source change)
blankVideo: 'https://cdn.plyr.io/static/blank.mp4', blankVideo: 'https://cdn.plyr.io/static/blank.mp4',
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "plyr", "name": "plyr",
"version": "3.3.9", "version": "3.3.10",
"description": "A simple, accessible and customizable HTML5, YouTube and Vimeo media player", "description": "A simple, accessible and customizable HTML5, YouTube and Vimeo media player",
"homepage": "https://plyr.io", "homepage": "https://plyr.io",
"main": "./dist/plyr.js", "main": "./dist/plyr.js",
+4 -4
View File
@@ -128,13 +128,13 @@ See [initialising](#initialising) for more information on advanced setups.
You can use our CDN (provided by [Fastly](https://www.fastly.com/)) for the JavaScript. There's 2 versions; one with and one without [polyfills](#polyfills). My recommendation would be to manage polyfills seperately as part of your application but to make life easier you can use the polyfilled build. You can use our CDN (provided by [Fastly](https://www.fastly.com/)) for the JavaScript. There's 2 versions; one with and one without [polyfills](#polyfills). My recommendation would be to manage polyfills seperately as part of your application but to make life easier you can use the polyfilled build.
```html ```html
<script src="https://cdn.plyr.io/3.3.9/plyr.js"></script> <script src="https://cdn.plyr.io/3.3.10/plyr.js"></script>
``` ```
...or... ...or...
```html ```html
<script src="https://cdn.plyr.io/3.3.9/plyr.polyfilled.js"></script> <script src="https://cdn.plyr.io/3.3.10/plyr.polyfilled.js"></script>
``` ```
### CSS ### CSS
@@ -148,13 +148,13 @@ Include the `plyr.css` stylsheet into your `<head>`
If you want to use our CDN (provided by [Fastly](https://www.fastly.com/)) for the default CSS, you can use the following: If you want to use our CDN (provided by [Fastly](https://www.fastly.com/)) for the default CSS, you can use the following:
```html ```html
<link rel="stylesheet" href="https://cdn.plyr.io/3.3.9/plyr.css"> <link rel="stylesheet" href="https://cdn.plyr.io/3.3.10/plyr.css">
``` ```
### SVG Sprite ### SVG Sprite
The SVG sprite is loaded automatically from our CDN (provided by [Fastly](https://www.fastly.com/)). To change this, see the [options](#options) below. For The SVG sprite is loaded automatically from our CDN (provided by [Fastly](https://www.fastly.com/)). To change this, see the [options](#options) below. For
reference, the CDN hosted SVG sprite can be found at `https://cdn.plyr.io/3.3.9/plyr.svg`. reference, the CDN hosted SVG sprite can be found at `https://cdn.plyr.io/3.3.10/plyr.svg`.
## Ads ## Ads
+1 -1
View File
@@ -56,7 +56,7 @@ const defaults = {
// Sprite (for icons) // Sprite (for icons)
loadSprite: true, loadSprite: true,
iconPrefix: 'plyr', iconPrefix: 'plyr',
iconUrl: 'https://cdn.plyr.io/3.3.9/plyr.svg', iconUrl: 'https://cdn.plyr.io/3.3.10/plyr.svg',
// Blank video (used to prevent errors on source change) // Blank video (used to prevent errors on source change)
blankVideo: 'https://cdn.plyr.io/static/blank.mp4', blankVideo: 'https://cdn.plyr.io/static/blank.mp4',
+1 -1
View File
@@ -1,6 +1,6 @@
// ========================================================================== // ==========================================================================
// Plyr // Plyr
// plyr.js v3.3.9 // plyr.js v3.3.10
// https://github.com/sampotts/plyr // https://github.com/sampotts/plyr
// License: The MIT License (MIT) // License: The MIT License (MIT)
// ========================================================================== // ==========================================================================
+1 -1
View File
@@ -1,6 +1,6 @@
// ========================================================================== // ==========================================================================
// Plyr Polyfilled Build // Plyr Polyfilled Build
// plyr.js v3.3.9 // plyr.js v3.3.10
// https://github.com/sampotts/plyr // https://github.com/sampotts/plyr
// License: The MIT License (MIT) // License: The MIT License (MIT)
// ========================================================================== // ==========================================================================