diff --git a/changelog.md b/changelog.md index f3284a08..8b3d2a4d 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,10 @@ +## v3.5.5 + +- YouTube fix for when there are other embeds on the page (thanks @aFarkas) +- Separated demo dependencies into their own package.json +- Fix for Edge controls flexbox issue when resizing the player (thanks Nick Hawk via Slack) +- More aspect ratio fixes + ## v3.5.4 - Added: Set download URL via new setter diff --git a/demo/dist/demo.js b/demo/dist/demo.js index 1a19f4cb..010fc138 100644 --- a/demo/dist/demo.js +++ b/demo/dist/demo.js @@ -19037,10 +19037,9 @@ typeof navigator === "object" && (function () { meta.set(track, { default: track.mode === 'showing' }); // Turn off native caption rendering to avoid double captions + // eslint-disable-next-line no-param-reassign - Object.assign(track, { - mode: 'hidden' - }); // Add event listener for cue changes + track.mode = 'hidden'; // Add event listener for cue changes on.call(_this, track, 'cuechange', function () { return captions.updateCues.call(_this); diff --git a/demo/dist/demo.min.js b/demo/dist/demo.min.js index 8ccd6af9..5bb51c29 100644 --- a/demo/dist/demo.min.js +++ b/demo/dist/demo.min.js @@ -1,2 +1,2 @@ -"object"==typeof navigator&&function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e,t){return e(t={exports:{}},t.exports),t.exports}var n,r,i,o="object",a=function(e){return e&&e.Math==Math&&e},s=a(typeof globalThis==o&&globalThis)||a(typeof window==o&&window)||a(typeof self==o&&self)||a(typeof e==o&&e)||Function("return this")(),c=function(e){try{return!!e()}catch(e){return!0}},l=!c(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),u={}.propertyIsEnumerable,f=Object.getOwnPropertyDescriptor,h={f:f&&!u.call({1:2},1)?function(e){var t=f(this,e);return!!t&&t.enumerable}:u},d=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},p={}.toString,g=function(e){return p.call(e).slice(8,-1)},m="".split,v=c(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==g(e)?m.call(e,""):Object(e)}:Object,y=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},b=function(e){return v(y(e))},w=function(e){return"object"==typeof e?null!==e:"function"==typeof e},k=function(e,t){if(!w(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!w(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!w(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!w(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},E={}.hasOwnProperty,S=function(e,t){return E.call(e,t)},_=s.document,T=w(_)&&w(_.createElement),A=function(e){return T?_.createElement(e):{}},x=!l&&!c(function(){return 7!=Object.defineProperty(A("div"),"a",{get:function(){return 7}}).a}),O=Object.getOwnPropertyDescriptor,P={f:l?O:function(e,t){if(e=b(e),t=k(t,!0),x)try{return O(e,t)}catch(e){}if(S(e,t))return d(!h.f.call(e,t),e[t])}},C=function(e){if(!w(e))throw TypeError(String(e)+" is not an object");return e},L=Object.defineProperty,I={f:l?L:function(e,t,n){if(C(e),t=k(t,!0),C(n),x)try{return L(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},j=l?function(e,t,n){return I.f(e,t,d(1,n))}:function(e,t,n){return e[t]=n,e},R=function(e,t){try{j(s,e,t)}catch(n){s[e]=t}return t},M=t(function(e){var t=s["__core-js_shared__"]||R("__core-js_shared__",{});(e.exports=function(e,n){return t[e]||(t[e]=void 0!==n?n:{})})("versions",[]).push({version:"3.1.3",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),N=M("native-function-to-string",Function.toString),U=s.WeakMap,F="function"==typeof U&&/native code/.test(N.call(U)),D=0,B=Math.random(),q=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++D+B).toString(36))},H=M("keys"),V=function(e){return H[e]||(H[e]=q(e))},z={},W=s.WeakMap;if(F){var $=new W,K=$.get,Y=$.has,G=$.set;n=function(e,t){return G.call($,e,t),t},r=function(e){return K.call($,e)||{}},i=function(e){return Y.call($,e)}}else{var X=V("state");z[X]=!0,n=function(e,t){return j(e,X,t),t},r=function(e){return S(e,X)?e[X]:{}},i=function(e){return S(e,X)}}var J={set:n,get:r,has:i,enforce:function(e){return i(e)?r(e):n(e,{})},getterFor:function(e){return function(t){var n;if(!w(t)||(n=r(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},Q=t(function(e){var t=J.get,n=J.enforce,r=String(N).split("toString");M("inspectSource",function(e){return N.call(e)}),(e.exports=function(e,t,i,o){var a=!!o&&!!o.unsafe,c=!!o&&!!o.enumerable,l=!!o&&!!o.noTargetGet;"function"==typeof i&&("string"!=typeof t||S(i,"name")||j(i,"name",t),n(i).source=r.join("string"==typeof t?t:"")),e!==s?(a?!l&&e[t]&&(c=!0):delete e[t],c?e[t]=i:j(e,t,i)):c?e[t]=i:R(t,i)})(Function.prototype,"toString",function(){return"function"==typeof this&&t(this).source||N.call(this)})}),Z=Math.ceil,ee=Math.floor,te=function(e){return isNaN(e=+e)?0:(e>0?ee:Z)(e)},ne=Math.min,re=function(e){return e>0?ne(te(e),9007199254740991):0},ie=Math.max,oe=Math.min,ae=function(e,t){var n=te(e);return n<0?ie(n+t,0):oe(n,t)},se=function(e){return function(t,n,r){var i,o=b(t),a=re(o.length),s=ae(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},ce=se(!1),le=function(e,t){var n,r=b(e),i=0,o=[];for(n in r)!S(z,n)&&S(r,n)&&o.push(n);for(;t.length>i;)S(r,n=t[i++])&&(~ce(o,n)||o.push(n));return o},ue=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],fe=ue.concat("length","prototype"),he={f:Object.getOwnPropertyNames||function(e){return le(e,fe)}},de={f:Object.getOwnPropertySymbols},pe=s.Reflect,ge=pe&&pe.ownKeys||function(e){var t=he.f(C(e)),n=de.f;return n?t.concat(n(e)):t},me=function(e,t){for(var n=ge(t),r=I.f,i=P.f,o=0;o1?arguments[1]:void 0,l=void 0!==c,u=0,f=Ve(o);if(l&&(c=xe(c,s>2?arguments[2]:void 0,2)),null==f||a==Array&&Ue(f))for(n=new a(t=re(o.length));t>u;u++)Fe(n,u,l?c(o[u],u):o[u]);else for(i=f.call(o),n=new a;!(r=i.next()).done;u++)Fe(n,u,l?Pe(i,c,[r.value,u],!0):r.value);return n.length=u,n},We=je("iterator"),$e=!1;try{var Ke=0,Ye={next:function(){return{done:!!Ke++}},return:function(){$e=!0}};Ye[We]=function(){return this},Array.from(Ye,function(){throw 2})}catch(e){}var Ge=function(e,t){if(!t&&!$e)return!1;var n=!1;try{var r={};r[We]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},Xe=!Ge(function(e){Array.from(e)});Te({target:"Array",stat:!0,forced:Xe},{from:ze});var Je=Object.keys||function(e){return le(e,ue)},Qe=l?Object.defineProperties:function(e,t){C(e);for(var n,r=Je(t),i=r.length,o=0;i>o;)I.f(e,n=r[o++],t[n]);return e},Ze=s.document,et=Ze&&Ze.documentElement,tt=V("IE_PROTO"),nt=function(){},rt=function(){var e,t=A("iframe"),n=ue.length;for(t.style.display="none",et.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write("