From 5d908cc303d6a36a2ec5cb2ed8a62cc1e7ca79eb Mon Sep 17 00:00:00 2001 From: alexkonst Date: Thu, 19 Apr 2018 14:01:26 +0300 Subject: [PATCH] MEDIA-1298 Changed hls.js import --- dist/HLSSource.js | 2 +- example/build/bundle.js | 16 ++++++++-------- package.json | 2 +- src/new/HLSSource.js | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/dist/HLSSource.js b/dist/HLSSource.js index e8764ae..57acdf6 100644 --- a/dist/HLSSource.js +++ b/dist/HLSSource.js @@ -14,7 +14,7 @@ var _propTypes = require('prop-types'); var _propTypes2 = _interopRequireDefault(_propTypes); -require('!script-loader!hls.js'); +require('!script-loader!hls.js/dist/hls.min.js'); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } diff --git a/example/build/bundle.js b/example/build/bundle.js index cb09cb0..757f468 100644 --- a/example/build/bundle.js +++ b/example/build/bundle.js @@ -1,19 +1,19 @@ -!function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=584)}([function(e,t,n){var r=n(4),a=n(32),i=n(21),o=n(22),s=n(28),l=function(e,t,n){var u,c,d,f,p=e&l.F,h=e&l.G,g=e&l.S,m=e&l.P,v=e&l.B,y=h?r:g?r[t]||(r[t]={}):(r[t]||{}).prototype,b=h?a:a[t]||(a[t]={}),T=b.prototype||(b.prototype={});h&&(n=t);for(u in n)c=!p&&y&&void 0!==y[u],d=(c?y:n)[u],f=v&&c?s(d,r):m&&"function"==typeof d?s(Function.call,d):d,y&&o(y,u,d,e&l.U),b[u]!=d&&i(b,u,f),m&&T[u]!=d&&(T[u]=d)};r.core=a,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){"use strict";e.exports=n(65)},function(e,t,n){var r=n(7);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){e.exports=n(459)()},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){"use strict";function r(e,t,n,r,i,o,s,l){if(a(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,o,s,l],d=0;u=new Error(t.replace(/%s/g,function(){return c[d++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}var a=function(e){};e.exports=r},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){"use strict";function r(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r0?a(r(e),9007199254740991):0}},function(e,t,n){"use strict";function r(e,t){return 1===e.nodeType&&e.getAttribute(h)===String(t)||8===e.nodeType&&e.nodeValue===" react-text: "+t+" "||8===e.nodeType&&e.nodeValue===" react-empty: "+t+" "}function a(e){for(var t;t=e._renderedComponent;)e=t;return e}function i(e,t){var n=a(e);n._hostNode=t,t[m]=n}function o(e){var t=e._hostNode;t&&(delete t[m],e._hostNode=null)}function s(e,t){if(!(e._flags&g.hasCachedChildNodes)){var n=e._renderedChildren,o=t.firstChild;e:for(var s in n)if(n.hasOwnProperty(s)){var l=n[s],u=a(l)._domID;if(0!==u){for(;null!==o;o=o.nextSibling)if(r(o,u)){i(l,o);continue e}d("32",u)}}e._flags|=g.hasCachedChildNodes}}function l(e){if(e[m])return e[m];for(var t=[];!e[m];){if(t.push(e),!e.parentNode)return null;e=e.parentNode}for(var n,r;e&&(r=e[m]);e=t.pop())n=r,t.length&&s(r,e);return n}function u(e){var t=l(e);return null!=t&&t._hostNode===e?t:null}function c(e){if(void 0===e._hostNode&&d("33"),e._hostNode)return e._hostNode;for(var t=[];!e._hostNode;)t.push(e),e._hostParent||d("34"),e=e._hostParent;for(;t.length;e=t.pop())s(e,e._hostNode);return e._hostNode}var d=n(8),f=n(63),p=n(188),h=(n(5),f.ID_ATTRIBUTE_NAME),g=p,m="__reactInternalInstance$"+Math.random().toString(36).slice(2),v={getClosestInstanceFromNode:l,getInstanceFromNode:u,getNodeFromInstance:c,precacheChildNodes:s,precacheNode:i,uncacheNode:o};e.exports=v},function(e,t,n){var r=n(33);e.exports=function(e){return Object(r(e))}},function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}/* +!function(){"use strict";function n(){for(var t=[],e=0;e0?i(r(t),9007199254740991):0}},function(t,e,n){"use strict";function r(t,e){return 1===t.nodeType&&t.getAttribute(p)===String(e)||8===t.nodeType&&t.nodeValue===" react-text: "+e+" "||8===t.nodeType&&t.nodeValue===" react-empty: "+e+" "}function i(t){for(var e;e=t._renderedComponent;)t=e;return t}function o(t,e){var n=i(t);n._hostNode=e,e[g]=n}function a(t){var e=t._hostNode;e&&(delete e[g],t._hostNode=null)}function s(t,e){if(!(t._flags&v.hasCachedChildNodes)){var n=t._renderedChildren,a=e.firstChild;t:for(var s in n)if(n.hasOwnProperty(s)){var u=n[s],l=i(u)._domID;if(0!==l){for(;null!==a;a=a.nextSibling)if(r(a,l)){o(u,a);continue t}f("32",l)}}t._flags|=v.hasCachedChildNodes}}function u(t){if(t[g])return t[g];for(var e=[];!t[g];){if(e.push(t),!t.parentNode)return null;t=t.parentNode}for(var n,r;t&&(r=t[g]);t=e.pop())n=r,e.length&&s(r,t);return n}function l(t){var e=u(t);return null!=e&&e._hostNode===t?e:null}function c(t){if(void 0===t._hostNode&&f("33"),t._hostNode)return t._hostNode;for(var e=[];!t._hostNode;)e.push(t),t._hostParent||f("34"),t=t._hostParent;for(;e.length;t=e.pop())s(t,t._hostNode);return t._hostNode}var f=n(8),d=n(63),h=n(188),p=(n(5),d.ID_ATTRIBUTE_NAME),v=h,g="__reactInternalInstance$"+Math.random().toString(36).slice(2),m={getClosestInstanceFromNode:u,getInstanceFromNode:l,getNodeFromInstance:c,precacheChildNodes:s,precacheNode:o,uncacheNode:a};t.exports=m},function(t,e,n){var r=n(33);t.exports=function(t){return Object(r(t))}},function(t,e,n){"use strict";function r(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}/* object-assign (c) Sindre Sorhus @license MIT */ -var a=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,l=r(e),u=1;u"+a+""};e.exports=function(e,t){var n={};n[e]=t(s),r(r.P+r.F*a(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",n)}},function(e,t,n){var r=n(70),a=n(52),i=n(26),o=n(36),s=n(20),l=n(157),u=Object.getOwnPropertyDescriptor;t.f=n(12)?u:function(e,t){if(e=i(e),t=o(t,!0),l)try{return u(e,t)}catch(e){}if(s(e,t))return a(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(20),a=n(16),i=n(115)("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=a(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},function(e,t,n){var r=n(69),a=n(33);e.exports=function(e){return r(a(e))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(18);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,a){return e.call(t,n,r,a)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){"use strict";var r=n(6);e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,n){"use strict";var r=null;e.exports={debugTool:r}},function(e,t,n){var r=n(28),a=n(69),i=n(16),o=n(14),s=n(100);e.exports=function(e,t){var n=1==e,l=2==e,u=3==e,c=4==e,d=6==e,f=5==e||d,p=t||s;return function(t,s,h){for(var g,m,v=i(t),y=a(v),b=r(s,h,3),T=o(y.length),S=0,_=n?p(t,T):l?p(t,0):void 0;T>S;S++)if((f||S in y)&&(g=y[S],m=b(g,S,v),e))if(n)_[S]=m;else if(m)switch(e){case 3:return!0;case 5:return g;case 6:return S;case 2:_.push(g)}else if(c)return!1;return d?-1:u||c?c:_}}},function(e,t){var n=e.exports={version:"2.5.1"};"number"==typeof __e&&(__e=n)},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(0),a=n(32),i=n(6);e.exports=function(e,t){var n=(a.Object||{})[e]||Object[e],o={};o[e]=t(n),r(r.S+r.F*i(function(){n(1)}),"Object",o)}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(7);e.exports=function(e,t){if(!r(e))return e;var n,a;if(t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;if("function"==typeof(n=e.valueOf)&&!r(a=n.call(e)))return a;if(!t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){"use strict";function r(){P.ReactReconcileTransaction&&_||c("123")}function a(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=f.getPooled(),this.reconcileTransaction=P.ReactReconcileTransaction.getPooled(!0)}function i(e,t,n,a,i,o){return r(),_.batchedUpdates(e,t,n,a,i,o)}function o(e,t){return e._mountOrder-t._mountOrder}function s(e){var t=e.dirtyComponentsLength;t!==y.length&&c("124",t,y.length),y.sort(o),b++;for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=Math.floor(e%60),r=Math.floor(e/60%60),a=Math.floor(e/3600),i=Math.floor(t/60%60),o=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(a=r=n="-"),a=a>0||o>0?a+":":"",r=((a||i>=10)&&r<10?"0"+r:r)+":",n=n<10?"0"+n:n,a+r+n}function a(e){return!(!e.props||!e.props.isVideoChild)||("source"===e.type||"track"===e.type)}function i(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,a=u.default.Children.toArray(t),i=s({},n);return a.filter(function(e){return!e.props.disabled}).concat(e.filter(function(e){return!a.find(function(t){return t.type===e.type})})).map(function(t){var n=e.find(function(e){return e.type===t.type});delete i.order;var r=n?n.props:{},a=s({},i,r,t.props);return u.default.cloneElement(t,a,t.props.children)}).sort(function(e,t){return(e.props.order||r)-(t.props.order||r)})}function o(e,t){console.warn("WARNING: "+e+" will be deprecated soon! Please use "+t+" instead.")}Object.defineProperty(t,"__esModule",{value:!0}),t.mediaProperties=void 0;var s=Object.assign||function(e){for(var t=1;tn;)a[n]=t[n++];return a},Ae=function(e,t,n){j(e,t,{get:function(){return this._d[n]}})},De=function(e){var t,n,r,a,i,o,s=_(e),l=arguments.length,c=l>1?arguments[1]:void 0,d=void 0!==c,f=k(s);if(void 0!=f&&!x(f)){for(o=f.call(s),r=[],t=0;!(i=o.next()).done;t++)r.push(i.value);s=r}for(d&&l>2&&(c=u(c,arguments[2],2)),t=0,n=g(s.length),a=Ee(this,n);n>t;t++)a[t]=d?c(s[t],t):s[t];return a},Me=function(){for(var e=0,t=arguments.length,n=Ee(this,t);t>e;)n[e]=arguments[e++];return n},Le=!!K&&i(function(){pe.call(new K(1))}),Ie=function(){return pe.apply(Le?de.call(Ce(this)):Ce(this),arguments)},Re={copyWithin:function(e,t){return B.call(Ce(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return Z(Ce(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return F.apply(Ce(this),arguments)},filter:function(e){return ke(this,Q(Ce(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return J(Ce(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(Ce(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){Y(Ce(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ne(Ce(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return te(Ce(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return ue.apply(Ce(this),arguments)},lastIndexOf:function(e){return oe.apply(Ce(this),arguments)},map:function(e){return Se(Ce(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return se.apply(Ce(this),arguments)},reduceRight:function(e){return le.apply(Ce(this),arguments)},reverse:function(){for(var e,t=this,n=Ce(t).length,r=Math.floor(n/2),a=0;a1?arguments[1]:void 0)},sort:function(e){return ce.call(Ce(this),e)},subarray:function(e,t){var n=Ce(this),r=n.length,a=v(e,r);return new(L(n,n[ve]))(n.buffer,n.byteOffset+a*n.BYTES_PER_ELEMENT,g((void 0===t?r:v(t,r))-a))}},Oe=function(e,t){return ke(this,de.call(Ce(this),e,t))},Ne=function(e){Ce(this);var t=we(arguments[1],1),n=this.length,r=_(e),a=g(r.length),i=0;if(a+t>n)throw V("Wrong length!");for(;i255?255:255&r),a.v[p](n*t+a.o,r,_e)},A=function(e,t){j(e,t,{get:function(){return k(this,t)},set:function(e){return P(this,t,e)},enumerable:!0})};b?(h=n(function(e,n,r,a){c(e,h,u,"_d");var i,o,s,l,d=0,p=0;if(S(n)){if(!(n instanceof z||"ArrayBuffer"==(l=T(n))||"SharedArrayBuffer"==l))return be in n?Pe(h,n):De.call(h,n);i=n,p=we(r,t);var v=n.byteLength;if(void 0===a){if(v%t)throw V("Wrong length!");if((o=v-p)<0)throw V("Wrong length!")}else if((o=g(a)*t)+p>v)throw V("Wrong length!");s=o/t}else s=m(n),o=s*t,i=new z(o);for(f(e,"_d",{b:i,o:p,l:o,e:s,v:new X(i)});db;b++)if((m=t?y(o(h=e[b])[0],h[1]):y(e[b]))===u||m===c)return m}else for(g=v.call(e);!(h=g.next()).done;)if((m=a(g,y,h.value,t))===u||m===c)return m};t.BREAK=u,t.RETURN=c},function(e,t){e.exports=!1},function(e,t,n){var r=n(2),a=n(166),i=n(103),o=n(115)("IE_PROTO"),s=function(){},l=function(){var e,t=n(102)("iframe"),r=i.length;for(t.style.display="none",n(105).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("