aliyun-aliplayer 2.26.1-beta.2 → 2.26.1-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/aliplayer-ac-min.js +2 -2
- package/build/aliplayer-flash-min.js +2 -2
- package/build/aliplayer-h5-min.js +2 -2
- package/build/aliplayer-min.js +2 -2
- package/build/aliplayer-worker-min.js +1 -1
- package/build/hls/aliplayer-remuxer-polyfill.js +1 -0
- package/build/lang/en-us.json +3 -2
- package/build/lang/zh-cn.json +2 -1
- package/package.json +3 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! aliyun-aliplayer - v2.26.1-beta.
|
|
1
|
+
/*! aliyun-aliplayer - v2.26.1-beta.4 - 2024-09-13 18.00.07 */
|
|
2
2
|
!function(t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Aliplayer=t()}(function(){return function r(o,i,c){function a(e,t){if(!i[e]){if(!o[e]){var n="function"==typeof require&&require;if(!t&&n)return n(e,!0);if(s)return s(e,!0);throw(t=new Error("Cannot find module '"+e+"'")).code="MODULE_NOT_FOUND",t}n=i[e]={exports:{}},o[e][0].call(n.exports,function(t){return a(o[e][1][t]||t)},n,n.exports,r,o,i,c)}return i[e].exports}for(var s="function"==typeof require&&require,t=0;t<c.length;t++)a(c[t]);return a}({1:[function(B,n,r){!function(W,I){!function(){var t,e;t=this,e=function(){"use strict";function s(t){return"function"==typeof t}var n=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},r=0,e=void 0,o=void 0,c=function(t,e){l[r]=t,l[r+1]=e,2===(r+=2)&&(o?o(h):q())};var t="undefined"!=typeof window?window:void 0,i=t||{},i=i.MutationObserver||i.WebKitMutationObserver,a="undefined"==typeof self&&void 0!==W&&"[object process]"==={}.toString.call(W),u="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function f(){var t=setTimeout;return function(){return t(h,1)}}var l=new Array(1e3);function h(){for(var t=0;t<r;t+=2)(0,l[t])(l[t+1]),l[t]=void 0,l[t+1]=void 0;r=0}function p(){try{var t=Function("return this")().require("vertx");return void 0!==(e=t.runOnLoop||t.runOnContext)?function(){e(h)}:f()}catch(t){return f()}}var d,v,y,q=void 0;function m(t,e){var n,r=this,o=new this.constructor(b),i=(void 0===o[w]&&M(o),r._state);return i?(n=arguments[i-1],c(function(){return S(i,o,n,r._result)})):k(r,o,t,e),o}function g(t){var e;return t&&"object"==typeof t&&t.constructor===this?t:(O(e=new this(b),t),e)}var q=a?function(){return W.nextTick(h)}:i?(v=0,a=new i(h),y=document.createTextNode(""),a.observe(y,{characterData:!0}),function(){y.data=v=++v%2}):u?((d=new MessageChannel).port1.onmessage=h,function(){return d.port2.postMessage(0)}):(void 0===t&&"function"==typeof B?p:f)(),w=Math.random().toString(36).substring(2);function b(){}var _=void 0,x=1,E=2;function G(t,r,o){c(function(e){var n=!1,t=function(t,e,n,r){try{t.call(e,n,r)}catch(t){return t}}(o,r,function(t){n||(n=!0,(r!==t?O:j)(e,t))},function(t){n||(n=!0,T(e,t))},e._label);!n&&t&&(n=!0,T(e,t))},t)}function L(t,e,n){var r,o;e.constructor===t.constructor&&n===m&&e.constructor.resolve===g?(r=t,(o=e)._state===x?j(r,o._result):o._state===E?T(r,o._result):k(o,void 0,function(t){return O(r,t)},function(t){return T(r,t)})):void 0!==n&&s(n)?G(t,e,n):j(t,e)}function O(e,t){if(e===t)T(e,new TypeError("You cannot resolve a promise with itself"));else if(n=typeof t,null===t||"object"!=n&&"function"!=n)j(e,t);else{n=void 0;try{n=t.then}catch(t){return void T(e,t)}L(e,t,n)}var n}function U(t){t._onerror&&t._onerror(t._result),A(t)}function j(t,e){t._state===_&&(t._result=e,t._state=x,0!==t._subscribers.length)&&c(A,t)}function T(t,e){t._state===_&&(t._state=E,t._result=e,c(U,t))}function k(t,e,n,r){var o=t._subscribers,i=o.length;t._onerror=null,o[i]=e,o[i+x]=n,o[i+E]=r,0===i&&t._state&&c(A,t)}function A(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r,o=void 0,i=t._result,c=0;c<e.length;c+=3)r=e[c],o=e[c+n],r?S(n,r,o,i):o(i);t._subscribers.length=0}}function S(t,e,n,r){var o=s(n),i=void 0,c=void 0,a=!0;if(o){try{i=n(r)}catch(t){a=!1,c=t}if(e===i)return void T(e,new TypeError("A promises callback cannot return that same promise."))}else i=r;e._state===_&&(o&&a?O(e,i):!1===a?T(e,c):t===x?j(e,i):t===E&&T(e,i))}var P=0;function M(t){t[w]=P++,t._state=void 0,t._result=void 0,t._subscribers=[]}N.prototype._enumerate=function(t){for(var e=0;this._state===_&&e<t.length;e++)this._eachEntry(t[e],e)},N.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===g){var o,i=void 0,c=void 0,a=!1;try{i=e.then}catch(t){a=!0,c=t}i===m&&e._state!==_?this._settledAt(e._state,t,e._result):"function"!=typeof i?(this._remaining--,this._result[t]=e):n===F?(o=new n(b),a?T(o,c):L(o,e,i),this._willSettleAt(o,t)):this._willSettleAt(new n(function(t){return t(e)}),t)}else this._willSettleAt(r(e),t)},N.prototype._settledAt=function(t,e,n){var r=this.promise;r._state===_&&(this._remaining--,t===E?T(r,n):this._result[e]=n),0===this._remaining&&j(r,this._result)},N.prototype._willSettleAt=function(t,e){var n=this;k(t,void 0,function(t){return n._settledAt(x,e,t)},function(t){return n._settledAt(E,e,t)})};var Y=N;function N(t,e){this._instanceConstructor=t,this.promise=new t(b),this.promise[w]||M(this.promise),n(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0!==this.length&&(this.length=this.length||0,this._enumerate(e),0!==this._remaining)||j(this.promise,this._result)):T(this.promise,new Error("Array Methods must be provided an Array"))}C.prototype.catch=function(t){return this.then(null,t)},C.prototype.finally=function(e){var n=this.constructor;return s(e)?this.then(function(t){return n.resolve(e()).then(function(){return t})},function(t){return n.resolve(e()).then(function(){throw t})}):this.then(e,e)};var F=C;function C(t){if(this[w]=P++,this._result=this._state=void 0,this._subscribers=[],b!==t){if("function"!=typeof t)throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(!(this instanceof C))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");var e=this;try{t(function(t){O(e,t)},function(t){T(e,t)})}catch(t){T(e,t)}}}return F.prototype.then=m,F.all=function(t){return new Y(this,t).promise},F.race=function(o){var i=this;return n(o)?new i(function(t,e){for(var n=o.length,r=0;r<n;r++)i.resolve(o[r]).then(t,e)}):new i(function(t,e){return e(new TypeError("You must pass an array to race."))})},F.resolve=g,F.reject=function(t){var e=new this(b);return T(e,t),e},F._setScheduler=function(t){o=t},F._setAsap=function(t){c=t},F._asap=c,F.polyfill=function(){var t=void 0;if(void 0!==I)t=I;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var e=t.Promise;if(e){var n=null;try{n=Object.prototype.toString.call(e.resolve())}catch(t){}if("[object Promise]"===n&&!e.cast)return}t.Promise=F},F.Promise=F},"object"==typeof r&&void 0!==n?n.exports=e():t.ES6Promise=e()}.call(this)}.call(this,B("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:2}],2:[function(t,e,n){var r,o,e=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function c(){throw new Error("clearTimeout has not been defined")}try{r="function"==typeof setTimeout?setTimeout:i}catch(t){r=i}try{o="function"==typeof clearTimeout?clearTimeout:c}catch(t){o=c}function a(e){if(r===setTimeout)return setTimeout(e,0);if((r===i||!r)&&setTimeout)return(r=setTimeout)(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}var s,u=[],f=!1,l=-1;function h(){f&&s&&(f=!1,s.length?u=s.concat(u):l=-1,u.length)&&p()}function p(){if(!f){for(var t=a(h),e=(f=!0,u.length);e;){for(s=u,u=[];++l<e;)s&&s[l].run();l=-1,e=u.length}s=null,f=!1,!function(e){if(o===clearTimeout)return clearTimeout(e);if((o===c||!o)&&clearTimeout)return(o=clearTimeout)(e);try{o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function v(){}e.nextTick=function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];u.push(new d(t,e)),1!==u.length||f||a(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={},e.on=v,e.addListener=v,e.once=v,e.off=v,e.removeListener=v,e.removeAllListeners=v,e.emit=v,e.prependListener=v,e.prependOnceListener=v,e.listeners=function(t){return[]},e.binding=function(t){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(t){throw new Error("process.chdir is not supported")},e.umask=function(){return 0}},{}],3:[function(t,e,n){function L(){"use strict";L=function(){return c};var c={},t=Object.prototype,s=t.hasOwnProperty,u=Object.defineProperty||function(t,e,n){t[e]=n.value},e="function"==typeof Symbol?Symbol:{},r=e.iterator||"@@iterator",n=e.asyncIterator||"@@asyncIterator",o=e.toStringTag||"@@toStringTag";function i(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{i({},"")}catch(t){i=function(t,e,n){return t[e]=n}}function a(t,e,n,r){var o,i,c,a,e=e&&e.prototype instanceof h?e:h,e=Object.create(e.prototype),r=new _(r||[]);return u(e,"_invoke",{value:(o=t,i=n,c=r,a="suspendedStart",function(t,e){if("executing"===a)throw new Error("Generator is already running");if("completed"===a){if("throw"===t)throw e;return E()}for(c.method=t,c.arg=e;;){var n=c.delegate;if(n){n=function t(e,n){var r=e.iterator[n.method];if(void 0===r){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=void 0,t(e,n),"throw"===n.method))return l;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}r=f(r,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,l;r=r.arg;return r?r.done?(n[e.resultName]=r.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,l):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,l)}(n,c);if(n){if(n===l)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===a)throw a="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);a="executing";n=f(o,i,c);if("normal"===n.type){if(a=c.done?"completed":"suspendedYield",n.arg===l)continue;return{value:n.arg,done:c.done}}"throw"===n.type&&(a="completed",c.method="throw",c.arg=n.arg)}})}),e}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}c.wrap=a;var l={};function h(){}function p(){}function d(){}var e={},v=(i(e,r,function(){return this}),Object.getPrototypeOf),v=v&&v(v(x([]))),y=(v&&v!==t&&s.call(v,r)&&(e=v),d.prototype=h.prototype=Object.create(e));function m(t){["next","throw","return"].forEach(function(e){i(t,e,function(t){return this._invoke(e,t)})})}function g(c,a){var e;u(this,"_invoke",{value:function(n,r){function t(){return new a(function(t,e){!function e(t,n,r,o){var i,t=f(c[t],c,n);if("throw"!==t.type)return(n=(i=t.arg).value)&&"object"==typeof n&&s.call(n,"__await")?a.resolve(n.__await).then(function(t){e("next",t,r,o)},function(t){e("throw",t,r,o)}):a.resolve(n).then(function(t){i.value=t,r(i)},function(t){return e("throw",t,r,o)});o(t.arg)}(n,r,t,e)})}return e=e?e.then(t,t):t()}})}function w(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function x(e){if(e){var n,t=e[r];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return n=-1,(t=function t(){for(;++n<e.length;)if(s.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t}).next=t}return{next:E}}function E(){return{value:void 0,done:!0}}return u(y,"constructor",{value:p.prototype=d,configurable:!0}),u(d,"constructor",{value:p,configurable:!0}),p.displayName=i(d,o,"GeneratorFunction"),c.isGeneratorFunction=function(t){t="function"==typeof t&&t.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},c.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,i(t,o,"GeneratorFunction")),t.prototype=Object.create(y),t},c.awrap=function(t){return{__await:t}},m(g.prototype),i(g.prototype,n,function(){return this}),c.AsyncIterator=g,c.async=function(t,e,n,r,o){void 0===o&&(o=Promise);var i=new g(a(t,e,n,r),o);return c.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},m(y),i(y,o,"Generator"),i(y,r,function(){return this}),i(y,"toString",function(){return"[object Generator]"}),c.keys=function(t){var e,n=Object(t),r=[];for(e in n)r.push(e);return r.reverse(),function t(){for(;r.length;){var e=r.pop();if(e in n)return t.value=e,t.done=!1,t}return t.done=!0,t}},c.values=x,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(b),!t)for(var e in this)"t"===e.charAt(0)&&s.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var r=this;function t(t,e){return i.type="throw",i.arg=n,r.next=t,e&&(r.method="next",r.arg=void 0),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var o=this.tryEntries[e],i=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var c=s.call(o,"catchLoc"),a=s.call(o,"finallyLoc");if(c&&a){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return t(o.catchLoc,!0)}else{if(!a)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&s.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}var i=(o=o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc?null:o)?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,l):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),l}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n,r,o=this.tryEntries[e];if(o.tryLoc===t)return"throw"===(n=o.completion).type&&(r=n.arg,b(o)),r}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:x(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},c}function s(t,e,n,r,o,i,c){try{var a=t[i](c),s=a.value}catch(t){return void n(t)}a.done?e(s):Promise.resolve(s).then(r,o)}function u(a){return function(){var t=this,c=arguments;return new Promise(function(e,n){var r=a.apply(t,c);function o(t){s(r,e,n,o,i,"next",t)}function i(t){s(r,e,n,o,i,"throw",t)}o(void 0)})}}var f="undefined"==typeof Promise?t("es6-promise").Promise:Promise,l="__aliplayerMessage__",c="setup",a="setupAck",h="dispose",p="encSegment",d="decSegment",v="abortSegment",r=0,y=1,m="fragment",g="playlist",o="other",i="unknown",w=null,b={},_={},x=r;function E(){w=null,Object.keys(b).forEach(function(t){b[t].controller.abort(),b[t].reject("Fetch aborted.")}),b={},_={},x=r}function O(t,e,n){var r="";try{r=/[0-9]+\.ts/.exec(e.url)[0]}catch(t){}console.log(("send"===n?"[SW -> Main]":"[Main -> SW]")+"["+t+"]",r,e)}self.addEventListener("install",function(t){self.skipWaiting()}),self.addEventListener("activate",function(){var e=u(L().mark(function t(e){return L().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e.waitUntil(clients.claim());case 1:case"end":return t.stop()}},t)}));return function(t){return e.apply(this,arguments)}}()),self.addEventListener("fetch",function(t){if("navigate"===t.request.mode)E();else if(x!==r){var e,c=t.request.url,a=-1===(e=c).indexOf("_s=enc")?o:-1<e.indexOf(".ts")?m:-1<e.indexOf(".m3u8")?g:i;if(a!==o){if(a===i)return console.warn("Unknown request type",c);try{/[0-9]+\.ts/.exec(c)[0]}catch(t){}t.respondWith(u(L().mark(function t(){return L().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new f(function(){var n=u(L().mark(function t(n,e){var o,i;return L().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:t.next=2;var r=c;return new f(function(){var e=u(L().mark(function t(e){var n;return L().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(0<Object.keys(b).length&&!b[r])return w||console.error("no player client!"),t.next=5,clients.get(w);t.next=7;break;case 5:n=t.sent,Object.keys(b).forEach(function(){var e=u(L().mark(function t(e){return L().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:b[e].controller.abort(),b[e].reject(),n.postMessage({scope:l,name:v,payload:{url:e}}),O(v,{url:e},"send");case 4:case"end":return t.stop()}},t)}));return function(t){return e.apply(this,arguments)}}());case 7:e();case 8:case"end":return t.stop()}},t)}));return function(t){return e.apply(this,arguments)}}());case 2:o=new AbortController,a===m&&(b[c]={resolve:n,reject:e,controller:o}),performance.now(),fetch(c.replace("_s=enc",""),{signal:o.signal}).then(function(t){if(i=new Headers(t.headers),b[c])b[c].headers=i;else if(-1<c.indexOf(".ts"))return void console.warn("fragment request is missed",c);if(200===t.status)return a===g?t.text():t.arrayBuffer();n(t)}).then(function(e){var t;e&&(a===g?(_[c]=e,t=function(t,e){e=e.replace(/#EXT-X-KEY:.*\n?/g,"");var r,t=t.match(/^(.*)\/[^\/]*$/);if(t)return r=t[1],e=e.replace(/(#EXTINF:[^\n]+\n)([^\n]+)/g,function(t,e,n){return""+e+r+"/"+n+(-1<n.indexOf("?")?"&":"?")+"_s=enc"});console.warn("no match base url found.")}(c,e),i.set("Content-Length",new Blob([t]).size),n(new Response(t,{status:200,headers:i}))):(w||console.error("no player client!"),clients.get(w).then(function(t){t.postMessage({scope:l,name:p,payload:{buffer:e,url:c,playlistUrl:function(t){var e,n=function(t){var e;try{e=/\/([^/?]+)(\?|$)/.exec(t)[1]}catch(t){}return e}(t);n||console.warn("no fragUrlBase");return Object.keys(_).some(function(t){return-1<_[t].indexOf(n)&&(e=t,!0)}),e}(c)}},[e]),O(p,{url:c},"send")})))}).catch(function(t){console.log("fetch error from remote",t),e(t),delete b[c]});case 6:case"end":return t.stop()}},t)}));return function(t,e){return n.apply(this,arguments)}}()));case 1:case"end":return t.stop()}},t)}))())}}}),self.addEventListener("message",function(t){var e=t.data;if((i=e)&&i.scope===l){var n,r,o,i=e.name;switch(O(i,e.payload),i){case c:w=t.source.id,x=y,clients.get(w).then(function(t){t.postMessage({scope:l,name:a,payload:{version:"2.26.1"}})});break;case h:E();break;case d:e.payload&&(n=e.payload,r=b[n.url])&&(delete b[n.url],(o=r.headers).set("Content-Length",n.buffer.byteLength),r.resolve(new Response(n.buffer,{status:200,headers:o})),O(d,n,"send"))}}})},{"es6-promise":1}]},{},[3])(3)});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var CheapPolyfill;(()=>{var t={102:(t,n,e)=>{"use strict";e.d(n,{A:()=>i});var r=e(576);const o={add:function(t,n,e){const r=t[n];return t[n]=r+e,r},compareExchange:function(t,n,e,r){const o=t[n];return o===e&&(t[n]=r),o},exchange:function(t,n,e){const r=t[n];return t[n]=e,r},isLockFree:function(t){return!0},load:function(t,n){return t[n]},and:function(t,n,e){const r=t[n];return t[n]=r&e,r},or:function(t,n,e){const r=t[n];return t[n]=r|e,r},store:function(t,n,e){const r=t[n];return t[n]=e,r},sub:function(t,n,e){const r=t[n];return t[n]=r-e,r},wait:function(t,n,e,r){return"ok"},notify:function(t,n,e){return 1},xor:function(t,n,e){const r=t[n];return t[n]=r^e,r}};function i(){r.TK.Atomics||(r.TK.Atomics=o)}},976:(t,n,e)=>{"use strict";e.d(n,{A:()=>c});var r=e(356),o=e(574),i=e(576),u=e(672);function a(t){const n={int:new Int32Array(t),uint:new Uint32Array(t),buffer:t,length:t.byteLength>>>3,byteLength:t.byteLength,byteOffset:0};return new Proxy(n,{get:function(t,n,e){if(u.Yj(n)&&u.ai(+n)){const e=+n<<1,o=t.uint[e],i=t.int[e+1],u=BigInt(Math.floor((0,r.A)(o,Math.abs(i))));return i>=0?u:-u}return t[n]},set:function(t,n,e,r){if(u.Yj(n)&&u.ai(+n)){let[r,i]=(0,o.A)(Math.abs(Number(e)));e<0&&(i=-i);const u=+n<<1;t.uint[u]=r,t.int[u+1]=i}else t[n]=e;return!0}})}function f(t){const n={view:new Uint32Array(t),buffer:t,length:t.byteLength>>>3,byteLength:t.byteLength,byteOffset:0};return new Proxy(n,{get:function(t,n,e){if(u.Yj(n)&&u.ai(+n)){const e=+n<<1,o=t.view[e],i=t.view[e+1];return BigInt(Math.floor((0,r.A)(o,i)))}return t[n]},set:function(t,n,e,r){if(u.Yj(n)&&u.ai(+n)){let[r,i]=(0,o.A)(e);const u=+n<<1;t.view[u]=r,t.view[u+1]=i}else t[n]=e;return!0}})}function c(){i.TK.BigInt||(i.TK.BigInt=Number),i.TK.BigInt64Array||(i.TK.BigInt64Array=a),i.TK.BigUint64Array||(i.TK.BigUint64Array=f),i.TK.DataView.prototype.getBigInt64||(i.TK.DataView.prototype.getBigInt64=function(t,n){let e=0,o=0;e=this.getUint32(t+(n?0:4),n),o=this.getInt32(t+(n?4:0),n);const i=BigInt(Math.floor((0,r.A)(e,Math.abs(o))));return o>=0?i:-i}),i.TK.DataView.prototype.setBigInt64||(i.TK.DataView.prototype.setBigInt64=function(t,n,e){let[r,i]=(0,o.A)(Math.abs(Number(n)));n<0&&(i=-i),this.setUint32(t+(e?0:4),r,e),this.setInt32(t+(e?4:0),i,e)}),i.TK.DataView.prototype.getBigUint64||(i.TK.DataView.prototype.getBigUint64=function(t,n){let e=0,o=0;return e=this.getUint32(t+(n?0:4),n),o=this.getUint32(t+(n?4:0),n),BigInt(Math.floor((0,r.A)(e,o)))}),i.TK.DataView.prototype.setBigUint64||(i.TK.DataView.prototype.setBigUint64=function(t,n,e){const[r,i]=(0,o.A)(Number(n));this.setUint32(t+(e?0:4),r,e),this.setUint32(t+(e?4:0),i,e)});const t=new DataView(new ArrayBuffer(8));i.TK.BigInt.asUintN||(i.TK.BigInt.asUintN=function(n,e){return t.setBigInt64(0,e),8===n?t.getUint8(0):16===n?t.getUint16(0):32===n?t.getUint32(0):64===n?t.getBigUint64(0):void 0}),i.TK.BigInt.asIntN||(i.TK.BigInt.asIntN=function(n,e){return t.setBigInt64(0,e),8===n?t.getInt8(0):16===n?t.getInt16(0):32===n?t.getInt32(0):64===n?t.getBigInt64(0):void 0})}},356:(t,n,e)=>{"use strict";e.d(n,{A:()=>o});const r=Math.pow(2,32);function o(t,n){return(t>>>0)+n*r}},574:(t,n,e)=>{"use strict";e.d(n,{A:()=>o});const r=Math.pow(2,32);function o(t){return[t>>>0,Math.floor(t/r)]}},576:(t,n,e)=>{"use strict";e.d(n,{TK:()=>f});var r=e(403),o=e.n(r);const i="undefined",u=typeof window!==i?window:void 0,a=(typeof document!==i&&document,typeof globalThis!==i?globalThis:typeof e.g!==i?e.g:u),f=typeof self!==i?self:a;o()({}),o()([])},672:(t,n,e)=>{"use strict";function r(t){return"string"==typeof t}function o(t){return"number"==typeof t&&!isNaN(t)}e.d(n,{Yj:()=>r,ai:()=>o}),e(632),e(32)},149:(t,n,e)=>{e(355),e(438).Array.isArray},948:(t,n,e)=>{e(780),t.exports=e(438).Object.freeze},279:(t,n,e)=>{e(828),e(438).parseFloat},600:t=>{t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},812:(t,n,e)=>{var r=e(401);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},417:t=>{var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},438:t=>{var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},852:(t,n,e)=>{var r=e(600);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},608:t=>{t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},219:(t,n,e)=>{t.exports=!e(984)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},802:(t,n,e)=>{var r=e(401),o=e(670).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},535:(t,n,e)=>{var r=e(670),o=e(438),i=e(852),u=e(677),a=e(509),f="prototype",c=function(t,n,e){var s,p,l,y=t&c.F,g=t&c.G,v=t&c.S,h=t&c.P,b=t&c.B,w=t&c.W,d=g?o:o[n]||(o[n]={}),x=d[f],A=g?r:v?r[n]:(r[n]||{})[f];for(s in g&&(e=n),e)(p=!y&&A&&void 0!==A[s])&&a(d,s)||(l=p?A[s]:e[s],d[s]=g&&"function"!=typeof A[s]?e[s]:b&&p?i(l,r):w&&A[s]==l?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n[f]=t[f],n}(l):h&&"function"==typeof l?i(Function.call,l):l,h&&((d.virtual||(d.virtual={}))[s]=l,t&c.R&&x&&!x[s]&&u(x,s,l)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},984:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},670:t=>{var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},509:t=>{var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},677:(t,n,e)=>{var r=e(423),o=e(260);t.exports=e(219)?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},484:(t,n,e)=>{t.exports=!e(219)&&!e(984)((function(){return 7!=Object.defineProperty(e(802)("div"),"a",{get:function(){return 7}}).a}))},461:(t,n,e)=>{var r=e(417);t.exports=Array.isArray||function(t){return"Array"==r(t)}},401:t=>{t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},172:(t,n,e)=>{var r=e(191)("meta"),o=e(401),i=e(509),u=e(423).f,a=0,f=Object.isExtensible||function(){return!0},c=!e(984)((function(){return f(Object.preventExtensions({}))})),s=function(t){u(t,r,{value:{i:"O"+ ++a,w:{}}})},p=t.exports={KEY:r,NEED:!1,fastKey:function(t,n){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!f(t))return"F";if(!n)return"E";s(t)}return t[r].i},getWeak:function(t,n){if(!i(t,r)){if(!f(t))return!0;if(!n)return!1;s(t)}return t[r].w},onFreeze:function(t){return c&&p.NEED&&f(t)&&!i(t,r)&&s(t),t}}},423:(t,n,e)=>{var r=e(812),o=e(484),i=e(752),u=Object.defineProperty;n.f=e(219)?Object.defineProperty:function(t,n,e){if(r(t),n=i(n,!0),r(e),o)try{return u(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},331:(t,n,e)=>{var r=e(535),o=e(438),i=e(984);t.exports=function(t,n){var e=(o.Object||{})[t]||Object[t],u={};u[t]=n(e),r(r.S+r.F*i((function(){e(1)})),"Object",u)}},709:(t,n,e)=>{var r=e(670).parseFloat,o=e(269).trim;t.exports=1/r(e(459)+"-0")!=-1/0?function(t){var n=o(String(t),3),e=r(n);return 0===e&&"-"==n.charAt(0)?-0:e}:r},260:t=>{t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},269:(t,n,e)=>{var r=e(535),o=e(608),i=e(984),u=e(459),a="["+u+"]",f=RegExp("^"+a+a+"*"),c=RegExp(a+a+"*$"),s=function(t,n,e){var o={},a=i((function(){return!!u[t]()||"
"!="
"[t]()})),f=o[t]=a?n(p):u[t];e&&(o[e]=f),r(r.P+r.F*a,"String",o)},p=s.trim=function(t,n){return t=String(o(t)),1&n&&(t=t.replace(f,"")),2&n&&(t=t.replace(c,"")),t};t.exports=s},459:t=>{t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},752:(t,n,e)=>{var r=e(401);t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},191:t=>{var n=0,e=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+e).toString(36))}},355:(t,n,e)=>{var r=e(535);r(r.S,"Array",{isArray:e(461)})},780:(t,n,e)=>{var r=e(401),o=e(172).onFreeze;e(331)("freeze",(function(t){return function(n){return t&&r(n)?t(o(n)):n}}))},828:(t,n,e)=>{var r=e(535),o=e(709);r(r.G+r.F*(parseFloat!=o),{parseFloat:o})},632:(t,n,e)=>{e(149)},403:(t,n,e)=>{t.exports=e(948)},32:(t,n,e)=>{e(279)}},n={};function e(r){var o=n[r];if(void 0!==o)return o.exports;var i=n[r]={exports:{}};return t[r](i,i.exports,e),i.exports}e.n=t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},e.d=(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),e.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),e.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};(()=>{"use strict";e.r(r);var t=e(102),n=e(976);(0,t.A)(),(0,n.A)()})(),CheapPolyfill=r})();
|
package/build/lang/en-us.json
CHANGED
|
@@ -71,9 +71,10 @@ module.exports = {
|
|
|
71
71
|
"Error_SW_Register_Failed": "Service Worker registration failed.",
|
|
72
72
|
"Error_SW_ScriptURL_Empty": "Please provide the swScriptURL parameter.",
|
|
73
73
|
"Error_SW_ScriptURL_Https": "The swScriptURL parameter must use an absolute address with https:// protocol.",
|
|
74
|
-
"
|
|
74
|
+
"Error_SW_ScriptURL_Scope": "The swScriptURL (subpath: @scope1@) and the current webpage (subpath: @scope2@) must be under the same subpath.",
|
|
75
75
|
"Error_SW_Version_Not_Match": "The version number of swScriptURL (@swVersion@) must match the player version (@playerVersion@).",
|
|
76
76
|
"Error_SW_ScriptURL_ILlegal": "Please provide a valid swScriptURL(@detail@).",
|
|
77
|
+
"Error_SW_Https_required": "Https is required when playing Vod's encription video",
|
|
77
78
|
"Tip_Err_Common": "please contact us for support, the error detail is:<br />",
|
|
78
79
|
"Tip_Err_Common_Short": "the error detail is:<br />",
|
|
79
80
|
"Tip_Drm_Request_Err": "The request failed with an error, please check the browser console to check whether it is caused by DNS, HTTPS certificates, or network problems. <br/> If the above tests are fine,",
|
|
@@ -88,7 +89,7 @@ module.exports = {
|
|
|
88
89
|
"Tip_Err_Blocked": "If you have a network proxy enabled, please try disabling it and then retrying.",
|
|
89
90
|
"Tip_Err_Splayer": "For best practices regarding playback of H.265/H.266 encoded videos, please refer to",
|
|
90
91
|
"Tip_Err_Splayer_Doc": " this document.",
|
|
91
|
-
"Tip_SW_Register": "1.Please access the webpage using HTTPS<br>
|
|
92
|
+
"Tip_SW_Register": "1.Please access the webpage using HTTPS<br>2.Please ensure that the provided swScriptURL is a complete address starting with https:// and is accessible.",
|
|
92
93
|
"Live_End":"Live has finished",
|
|
93
94
|
"Play_Before_Fullscreen":"Please play before fullscreen",
|
|
94
95
|
"Can_Not_Seekable":"Can not seek to this position",
|
package/build/lang/zh-cn.json
CHANGED
|
@@ -71,9 +71,10 @@ module.exports = {
|
|
|
71
71
|
"Error_SW_Register_Failed": "Service Worker注册失败",
|
|
72
72
|
"Error_SW_ScriptURL_Empty": "请传入 swScriptURL 参数",
|
|
73
73
|
"Error_SW_ScriptURL_Https": "swScriptURL参数请使用 https:// 协议的绝对地址",
|
|
74
|
-
"
|
|
74
|
+
"Error_SW_ScriptURL_Scope": "swScriptURL(子路径:@scope1@)和当前网页(子路径:@scope2@)必须在同一个子路径下",
|
|
75
75
|
"Error_SW_Version_Not_Match": "swScriptURL的版本号(@swVersion@)必须和播放器版本(@playerVersion@)号一致",
|
|
76
76
|
"Error_SW_ScriptURL_ILlegal": "请传入合法的swScriptURL(@detail@)",
|
|
77
|
+
"Error_SW_Https_required": "私有加密播放需要使用 https 环境",
|
|
77
78
|
"Tip_Err_Common": "您可联系售后支持,错误详情:<br />",
|
|
78
79
|
"Tip_Err_Common_Short": "错误详情:<br />",
|
|
79
80
|
"Tip_Drm_Request_Err": "请求出错,请先查看浏览器控制台,检查是否由域名解析、https证书、或网络问题引起。<br />若以上检查没问题,",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aliyun-aliplayer",
|
|
3
|
-
"version": "2.26.1-beta.
|
|
3
|
+
"version": "2.26.1-beta.4",
|
|
4
4
|
"description": "阿里云 Web 播放器",
|
|
5
5
|
"main": "./build/aliplayer-min",
|
|
6
6
|
"style": "./build/skins/default/aliplayer-min.css",
|
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
"scripts": {
|
|
19
19
|
"start": "npx grunt live",
|
|
20
20
|
"build": "npx grunt build",
|
|
21
|
-
"release": "commit-and-tag-version"
|
|
21
|
+
"release": "commit-and-tag-version",
|
|
22
|
+
"prepublishOnly": "npm run build"
|
|
22
23
|
},
|
|
23
24
|
"devDependencies": {
|
|
24
25
|
"@babel/core": "^7.15.0",
|