From ce5bcfce8595069f2f379f7d2497a8d67be8a52b Mon Sep 17 00:00:00 2001 From: sgy Date: Mon, 5 Feb 2018 15:24:56 +0800 Subject: [PATCH] build --- lib/index.es.mjs | 14 +++----------- lib/index.js | 14 +++----------- lib/index.min.js | 2 +- 3 files changed, 7 insertions(+), 23 deletions(-) diff --git a/lib/index.es.mjs b/lib/index.es.mjs index d92aea8..9652696 100644 --- a/lib/index.es.mjs +++ b/lib/index.es.mjs @@ -8536,7 +8536,7 @@ var Flv = function (_CustEvent) { }, { key: 'version', get: function get() { - return "1.4.9"; + return "1.4.10"; } /** @@ -10244,13 +10244,6 @@ var WebSocketLoader = function (_CustEvent) { } _createClass(WebSocketLoader, [{ - key: 'destroy', - value: function destroy() { - if (this._ws) { - this.abort(); - } - } - }, { key: 'open', value: function open(range, keyframePoint) { try { @@ -10269,14 +10262,13 @@ var WebSocketLoader = function (_CustEvent) { } } }, { - key: 'abort', - value: function abort() { + key: 'pause', + value: function pause() { var ws = this._ws; if (ws && (ws.readyState === 0 || ws.readyState === 1)) { this._requestAbort = true; ws.close(); } - this._ws = null; } }, { diff --git a/lib/index.js b/lib/index.js index 54bf789..b5f722b 100644 --- a/lib/index.js +++ b/lib/index.js @@ -8488,7 +8488,7 @@ var Flv = function (_CustEvent) { }, { key: 'version', get: function get() { - return "1.4.9"; + return "1.4.10"; } /** @@ -10196,13 +10196,6 @@ var WebSocketLoader = function (_CustEvent) { } _createClass(WebSocketLoader, [{ - key: 'destroy', - value: function destroy() { - if (this._ws) { - this.abort(); - } - } - }, { key: 'open', value: function open(range, keyframePoint) { try { @@ -10221,14 +10214,13 @@ var WebSocketLoader = function (_CustEvent) { } } }, { - key: 'abort', - value: function abort() { + key: 'pause', + value: function pause() { var ws = this._ws; if (ws && (ws.readyState === 0 || ws.readyState === 1)) { this._requestAbort = true; ws.close(); } - this._ws = null; } }, { diff --git a/lib/index.min.js b/lib/index.min.js index 943fd91..d6f3a8f 100644 --- a/lib/index.min.js +++ b/lib/index.min.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.chimeeKernelFlv=t():e.chimeeKernelFlv=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,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=72)}([function(e,t){var n=e.exports={version:"2.5.1"};"number"==typeof __e&&(__e=n)},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){var r=n(1),i=n(0),o=n(15),a=n(8),s=function(e,t,n){var u,c,f,l=e&s.F,d=e&s.G,h=e&s.S,p=e&s.P,v=e&s.B,m=e&s.W,y=d?i:i[t]||(i[t]={}),g=y.prototype,b=d?r:h?r[t]:(r[t]||{}).prototype;d&&(n=t);for(u in n)(c=!l&&b&&void 0!==b[u])&&u in y||(f=c?b[u]:n[u],y[u]=d&&"function"!=typeof b[u]?n[u]:v&&c?o(f,r):m&&b[u]==f?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(f):p&&"function"==typeof f?o(Function.call,f):f,p&&((y.virtual||(y.virtual={}))[u]=f,e&s.R&&g&&!g[u]&&a(g,u,f)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t,n){var r=n(35)("wks"),i=n(24),o=n(1).Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},function(e,t,n){"use strict";function r(e,t){var n=e.__evt_id;n||(Object.defineProperty(e,"__evt_id",{writable:!0,enumerable:!1,configurable:!0}),n=e.__evt_id=++g.count);var r=n+"_"+t,i=g[r];return i||(i=g[r]=[]),i}function i(e,t,n){var i=m()(null);i.type=t,i.target=e,n&&p()(i,Object(y.r)(n)?n:{data:n}),r(e,t).forEach(function(t){(t[1]||t[0]).apply(e,[i])})}function o(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments[4];Object(y.l)(i)&&!o&&(o=i,i=void 0);var s=[n,void 0,i];i&&!o&&(o=function(){a(e,t,n,i);for(var r=arguments.length,o=Array(r),s=0;s3&&void 0!==arguments[3]&&arguments[3],o=r(e,t);if(n||i){var a=-1,s=void 0;return o.find(function(e,t){if((!n||e[0]===n)&&(!i||e[2]))return a=t,s=e[1],!0}),-1!==a&&o.splice(a,1),s}o.length=0}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"emitEventCache",function(){return i}),n.d(t,"addEventCache",function(){return o}),n.d(t,"removeEventCache",function(){return a}),n.d(t,"CustEvent",function(){return b});var s=n(20),u=n.n(s),c=n(40),f=n.n(c),l=n(41),d=n.n(l),h=n(56),p=n.n(h),v=n(57),m=n.n(v),y=n(13),g=m()(null);g.count=0;var b=function(){function e(t,n){var r=this;if(f()(this,e),Object.defineProperty(this,"__target",{writable:!0,enumerable:!1,configurable:!0}),this.__target=this,t){if("object"!==(void 0===t?"undefined":u()(t)))throw new Error("CusEvent target are not object");this.__target=t,n&&["on","once","off","emit"].forEach(function(e){t[e]=r[e]})}}return d()(e,[{key:"on",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return o(this.__target,e,t,n),this}},{key:"once",value:function(e,t){return this.on(e,t,!0)}},{key:"off",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return a(this.__target,e,t,n),this}},{key:"emit",value:function(e,t){return i(this.__target,e,{data:t}),this}}]),e}()},function(e,t,n){var r=n(6),i=n(48),o=n(31),a=Object.defineProperty;t.f=n(7)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(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}},function(e,t,n){var r=n(9);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){e.exports=!n(10)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(5),i=n(16);e.exports=n(7)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(51),i=n(21);e.exports=function(e){return r(i(e))}},function(e,t,n){"use strict";function r(e){return void 0!==e}function i(e){return void 0===e||null===e}function o(e){return Array.isArray(e)}function a(e){return"function"==typeof e}function s(e){return Object(e)===e&&"[object Object]"===String(e)&&!a(e)&&!o(e)}function u(e){return"number"==typeof e}function c(e){return!o(e)&&e-P()(e)+1>=0}function f(e){return j()(e)}function l(e){return o(e)?0===e.length:s(e)?0===L()(e).length:!e}function d(e){return e instanceof Event||(e&&e.originalEvent)instanceof Event}function h(e){return e instanceof Blob}function p(e){return h(e)&&m(e.name)}function v(e){return"[object Date]"===Object.prototype.toString.call(e)}function m(e){return"string"==typeof e||e instanceof String}function y(e){return"boolean"==typeof e}function g(e){return!!e&&("object"===(void 0===e?"undefined":T()(e))||"function"==typeof e)&&"function"==typeof e.then}function b(e){return i(e)||y(e)||m(e)||u(e)}function _(e){return m(e)&&!!e.match(/^((https?|ftp|rtsp|mms):\/\/)(([0-9a-z_!~*'().&=+$%-]+: )?[0-9a-z_!~*'().&=+$%-]+@)?(([0-9]{1,3}\.){3}[0-9]{1,3}|([0-9a-z_!~*'()-]+\.)*([0-9a-z][0-9a-z-]{0,61})?[0-9a-z]\.[a-z]{2,6}|localhost)(:[0-9]{1,4})?((\/?)|(\/[0-9a-z_!~*'().;?:@&=+$,%#-]+)+\/?)$/i)}function w(e){return!!("object"===("undefined"==typeof Node?"undefined":T()(Node))?e instanceof Node:e&&"object"===(void 0===e?"undefined":T()(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName)}function S(e){return!!("object"===("undefined"==typeof HTMLElement?"undefined":T()(HTMLElement))?e instanceof HTMLElement:e&&"object"===(void 0===e?"undefined":T()(e))&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName)}function k(e,t){return!(!w(e)||!w(t))&&t.parentNode===e}function x(e,t){if(!w(e)||!w(t))return!1;for(;t.parentNode;)if((t=t.parentNode)===e)return!0;return!1}function O(e){return/<[^>]+?>/.test(e)}function E(e){return e instanceof Error}function A(e){return e instanceof RegExp}n.d(t,"a",function(){return r}),n.d(t,"y",function(){return i}),n.d(t,"b",function(){return o}),n.d(t,"l",function(){return a}),n.d(t,"r",function(){return s}),n.d(t,"p",function(){return u}),n.d(t,"q",function(){return c}),n.d(t,"n",function(){return f}),n.d(t,"h",function(){return l}),n.d(t,"j",function(){return d}),n.d(t,"c",function(){return h}),n.d(t,"k",function(){return p}),n.d(t,"f",function(){return v}),n.d(t,"w",function(){return m}),n.d(t,"d",function(){return y}),n.d(t,"u",function(){return g}),n.d(t,"t",function(){return b}),n.d(t,"x",function(){return _}),n.d(t,"o",function(){return w}),n.d(t,"g",function(){return S}),n.d(t,"e",function(){return k}),n.d(t,"s",function(){return x}),n.d(t,"m",function(){return O}),n.d(t,"i",function(){return E}),n.d(t,"v",function(){return A});var R=n(20),T=n.n(R),M=n(42),L=n.n(M),C=n(107),j=n.n(C),B=n(111),P=n.n(B)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.ERRORNO={NET_ERROR:100,CODEC_ERROR:101,CANNOT_SEEK:102,ENDOFSTREAM_ERROR:103,MEDIASOURCE_ERROR:104,SOURCEBUFFER_ERROR:105,SBABORT_ERROR:106,APPENDBUFFER_ERROR:107}},function(e,t,n){var r=n(23);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,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){e.exports={}},function(e,t,n){var r=n(50),i=n(36);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(75),o=r(i),a=n(86),s=r(a),u="function"==typeof s.default&&"symbol"==typeof o.default?function(e){return typeof e}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":typeof e};t.default="function"==typeof s.default&&"symbol"===u(o.default)?function(e){return void 0===e?"undefined":u(e)}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":void 0===e?"undefined":u(e)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports=!0},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(5).f,i=n(11),o=n(3)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){var r=n(21);e.exports=function(e){return Object(r(e))}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){"use strict";var r=n(77)(!0);n(47)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},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(9),i=n(1).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,n){var r=n(9);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(6),i=n(79),o=n(36),a=n(34)("IE_PROTO"),s=function(){},u=function(){var e,t=n(30)("iframe"),r=o.length;for(t.style.display="none",n(52).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("