From 32c5a5eb21fe5a9fe31c8d3835209d4504d6d0fe Mon Sep 17 00:00:00 2001 From: DiSoul Date: Thu, 30 Aug 2018 19:46:09 +0800 Subject: [PATCH 1/5] update to 1.2.0 --- Release/pili-rtc-web.js | 4 +- ReleaseNotes/release-note-1.2.0.md | 102 +++++++++++++++++++++++++++++ 2 files changed, 104 insertions(+), 2 deletions(-) create mode 100644 ReleaseNotes/release-note-1.2.0.md diff --git a/Release/pili-rtc-web.js b/Release/pili-rtc-web.js index 9d1eec7..a570722 100644 --- a/Release/pili-rtc-web.js +++ b/Release/pili-rtc-web.js @@ -1,7 +1,7 @@ -var QNRTC=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=371)}([function(e,t,n){var r=n(2),i=n(26),o=n(13),a=n(12),s=n(20),c=function(e,t,n){var u,d,f,l,p=e&c.F,h=e&c.G,v=e&c.S,m=e&c.P,g=e&c.B,y=h?r:v?r[t]||(r[t]={}):(r[t]||{}).prototype,b=h?i:i[t]||(i[t]={}),w=b.prototype||(b.prototype={});for(u in h&&(n=t),n)f=((d=!p&&y&&void 0!==y[u])?y:n)[u],l=g&&d?s(f,r):m&&"function"==typeof f?s(Function.call,f):f,y&&a(y,u,f,e&c.U),b[u]!=f&&o(b,u,l),m&&w[u]!=f&&(w[u]=f)};r.core=i,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t,n){var r=n(4);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},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){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){var r=n(69)("wks"),i=n(44),o=n(2).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){var r=n(23),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(1),i=n(140),o=n(25),a=Object.defineProperty;t.f=n(8)?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){e.exports=!n(3)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(24);e.exports=function(e){return Object(r(e))}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(0),i=n(3),o=n(24),a=/"/g,s=function(e,t,n,r){var i=String(o(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(r).replace(a,""")+'"'),s+">"+i+""};e.exports=function(e,t){var n={};n[e]=t(s),r(r.P+r.F*i(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",n)}},function(e,t,n){var r=n(2),i=n(13),o=n(14),a=n(44)("src"),s=Function.toString,c=(""+s).split("toString");n(26).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var u="function"==typeof n;u&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(u&&(o(n,a)||i(n,a,e[t]?""+e[t]:c.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},function(e,t,n){var r=n(7),i=n(45);e.exports=n(8)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(14),i=n(9),o=n(96)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var r=n(52),i=n(45),o=n(17),a=n(25),s=n(14),c=n(140),u=Object.getOwnPropertyDescriptor;t.f=n(8)?u:function(e,t){if(e=o(e),t=a(t,!0),c)try{return u(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(53),i=n(24);e.exports=function(e){return r(i(e))}},function(e,t,n){"use strict";var r=n(3);e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(10);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,n){var r=n(20),i=n(53),o=n(9),a=n(6),s=n(79);e.exports=function(e,t){var n=1==e,c=2==e,u=3==e,d=4==e,f=6==e,l=5==e||f,p=t||s;return function(t,s,h){for(var v,m,g=o(t),y=i(g),b=r(s,h,3),w=a(y.length),S=0,E=n?p(t,w):c?p(t,0):void 0;w>S;S++)if((l||S in y)&&(m=b(v=y[S],S,g),e))if(n)E[S]=m;else if(m)switch(e){case 3:return!0;case 5:return v;case 6:return S;case 2:E.push(v)}else if(d)return!1;return f?-1:u||d?d:E}}},function(e,t,n){var r=n(0),i=n(26),o=n(3);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},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){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(4);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){var n=e.exports={version:"2.5.3"};"number"==typeof __e&&(__e=n)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(148),i=n(146);function o(){return!!RTCPeerConnection&&(!!WebSocket&&!!navigator.mediaDevices.getUserMedia)}t.isFirefox=navigator.userAgent.toLowerCase().indexOf("firefox")>-1,t.isChrome=!!window.chrome,t.isIOS=navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPhone/i),t.browserReport=function(){var e=r.detect();if(!e)return{support:o()};switch(e.name){case"chrome":return{support:i.gt(e.version,"55.0.0"),mediaStreamDest:i.gt(e.version,"55.0.0"),replaceTrack:i.gt(e.version,"65.0.0"),screenSharing:i.gt(e.version,"55.0.0"),connectionState:!1,stats:!1,ondevicechange:!0};case"safari":return{support:i.gt(e.version,"11.0.0"),replaceTrack:i.gt(e.version,"11.0.0"),stats:!0,ondevicechange:!1,connectionState:!0,mediaStreamDest:!1,screenSharing:!1};case"firefox":return{support:o(),replaceTrack:!1,stats:!0,ondevicechange:!1,connectionState:!0,mediaStreamDest:!0,screenSharing:!0}}return{support:o()}}()},function(e,t,n){"use strict";function r(e,t){for(var n=0;nn;)i[n]=t[n++];return i},Pe=function(e,t,n){W(e,t,{get:function(){return this._d[n]}})},Oe=function(e){var t,n,r,i,o,a,s=E(e),c=arguments.length,d=c>1?arguments[1]:void 0,f=void 0!==d,l=x(s);if(void 0!=l&&!T(l)){for(a=l.call(s),r=[],t=0;!(o=a.next()).done;t++)r.push(o.value);s=r}for(f&&c>2&&(d=u(d,arguments[2],2)),t=0,n=v(s.length),i=_e(this,n);n>t;t++)i[t]=f?d(s[t],t):s[t];return i},Ie=function(){for(var e=0,t=arguments.length,n=_e(this,t);t>e;)n[e]=arguments[e++];return n},Me=!!$&&o(function(){pe.call(new $(1))}),Ae=function(){return pe.apply(Me?fe.call(ke(this)):ke(this),arguments)},je={copyWithin:function(e,t){return F.call(ke(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return Z(ke(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return N.apply(ke(this),arguments)},filter:function(e){return xe(this,K(ke(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return Q(ke(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(ke(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){q(ke(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ne(ke(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return te(ke(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return ue.apply(ke(this),arguments)},lastIndexOf:function(e){return ae.apply(ke(this),arguments)},map:function(e){return Se(ke(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return se.apply(ke(this),arguments)},reduceRight:function(e){return ce.apply(ke(this),arguments)},reverse:function(){for(var e,t=ke(this).length,n=Math.floor(t/2),r=0;r1?arguments[1]:void 0)},sort:function(e){return de.call(ke(this),e)},subarray:function(e,t){var n=ke(this),r=n.length,i=g(e,r);return new(M(n,n[ge]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,v((void 0===t?r:g(t,r))-i))}},Le=function(e,t){return xe(this,fe.call(ke(this),e,t))},De=function(e){ke(this);var t=Re(arguments[1],1),n=this.length,r=E(e),i=v(r.length),o=0;if(i+t>n)throw G("Wrong length!");for(;o255?255:255&r),i.v[p](n*t+i.o,r,Ee)}(this,n,e)},enumerable:!0})};b?(h=n(function(e,n,r,i){d(e,h,u,"_d");var o,a,s,c,f=0,p=0;if(S(n)){if(!(n instanceof H||"ArrayBuffer"==(c=w(n))||"SharedArrayBuffer"==c))return be in n?Ce(h,n):Oe.call(h,n);o=n,p=Re(r,t);var g=n.byteLength;if(void 0===i){if(g%t)throw G("Wrong length!");if((a=g-p)<0)throw G("Wrong length!")}else if((a=v(i)*t)+p>g)throw G("Wrong length!");s=a/t}else s=m(n),o=new H(a=s*t);for(l(e,"_d",{b:o,o:p,l:a,e:s,v:new X(o)});f=n&&parseInt(r[n],10)}e.exports={extractVersion:o,wrapPeerConnectionEvent:function(e,t,n){if(e.RTCPeerConnection){var r=e.RTCPeerConnection.prototype,i=r.addEventListener;r.addEventListener=function(e,r){if(e!==t)return i.apply(this,arguments);var o=function(e){r(n(e))};return this._eventMap=this._eventMap||{},this._eventMap[r]=o,i.apply(this,[e,o])};var o=r.removeEventListener;r.removeEventListener=function(e,n){if(e!==t||!this._eventMap||!this._eventMap[n])return o.apply(this,arguments);var r=this._eventMap[n];return delete this._eventMap[n],o.apply(this,[e,r])},Object.defineProperty(r,"on"+t,{get:function(){return this["_on"+t]},set:function(e){this["_on"+t]&&(this.removeEventListener(t,this["_on"+t]),delete this["_on"+t]),e&&this.addEventListener(t,this["_on"+t]=e)}})}},disableLog:function(e){return"boolean"!=typeof e?new Error("Argument type: "+typeof e+". Please use a boolean."):(r=e,e?"adapter.js logging disabled":"adapter.js logging enabled")},disableWarnings:function(e){return"boolean"!=typeof e?new Error("Argument type: "+typeof e+". Please use a boolean."):(i=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))},log:function(){if("object"==typeof window){if(r)return;"undefined"!=typeof console&&"function"==typeof console.log&&console.log.apply(console,arguments)}},deprecated:function(e,t){i&&console.warn(e+" is deprecated, please use "+t+" instead.")},detectBrowser:function(e){var t=e&&e.navigator,n={browser:null,version:null};if(void 0===e||!e.navigator)return n.browser="Not a browser.",n;if(t.mozGetUserMedia)n.browser="firefox",n.version=o(t.userAgent,/Firefox\/(\d+)\./,1);else if(t.webkitGetUserMedia)n.browser="chrome",n.version=o(t.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(t.mediaDevices&&t.userAgent.match(/Edge\/(\d+).(\d+)$/))n.browser="edge",n.version=o(t.userAgent,/Edge\/(\d+).(\d+)$/,2);else{if(!e.RTCPeerConnection||!t.userAgent.match(/AppleWebKit\/(\d+)\./))return n.browser="Not a supported browser.",n;n.browser="safari",n.version=o(t.userAgent,/AppleWebKit\/(\d+)\./,1)}return n}}},function(e,t,n){var r=n(5)("unscopables"),i=Array.prototype;void 0==i[r]&&n(13)(i,r,{}),e.exports=function(e){i[r][e]=!0}},function(e,t,n){var r=n(44)("meta"),i=n(4),o=n(14),a=n(7).f,s=0,c=Object.isExtensible||function(){return!0},u=!n(3)(function(){return c(Object.preventExtensions({}))}),d=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},f=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!c(e))return"F";if(!t)return"E";d(e)}return e[r].i},getWeak:function(e,t){if(!o(e,r)){if(!c(e))return!0;if(!t)return!1;d(e)}return e[r].w},onFreeze:function(e){return u&&f.NEED&&c(e)&&!o(e,r)&&d(e),e}}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function o(e){return(o=Object.getPrototypeOf||function(e){return e.__proto__})(e)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e,t,n){return(s="object"===("undefined"==typeof Reflect?"undefined":r(Reflect))&&Reflect.construct||function(e,t,n){var r=[null];return r.push.apply(r,t),a(new(e.bind.apply(e,r)),n.prototype)})(e,t,n)}function c(e){var t="function"==typeof Map?new Map:void 0;return(c=function(e){if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),a(n,a(function(){return s(e,arguments,o(this).constructor)},e))})(e)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n))).code=e,r.error=n,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,c(Error)),t}();t.QNRTCError=u,t.UNEXPECTED_ERROR=function(e){return new u(11e3,"piliRTC: unexpected error ".concat(e))},t.AUTH_ENTER_ROOM_ERROR=function(e){return new u(11001,"enterRoom error, can not get accessToken. Error: ".concat(e,"\n please check enterRoom arguments"))},t.PUBLISH_ERROR=function(e,t){return new u(e,"publish error, signaling code: ".concat(e,", msg: ").concat(t))},t.PUBLISH_ICE_ERROR=new u(11002,"publish faild, ice not ready"),t.SUB_ICE_ERROR=new u(11003,"subscribe faild, ice not ready"),t.SUB_ERROR_NO_STREAM=function(e){return new u(11004,"subscribe faild, can not find this player in streams, userId: ".concat(e))},t.SUB_P2P_ERROR=function(e){return new u(11005,"subscribe faild, can not create p2p connection, ".concat(e))},t.PUB_P2P_ERROR=function(e){return new u(11006,"publish faild, can not create p2p connection, ".concat(e))},t.UNSUPPORT_FMT=function(e){return new u(11007,"media format not support, ".concat(e))},t.JOIN_ROOM_ERROR=function(e,t){return new u(e,"joinRoom error, code: ".concat(e,", ").concat(t))},t.SUB_ERROR=function(e,t){return new u(e,"subscribe error, signaling code: ".concat(e,", msg: ").concat(t))},t.UNPUBLISH_ERROR=function(e,t){return new u(e,"unpublish error, code: ${code}, msg: ${msg}")},t.UNSUB_ERROR=function(e,t){return new u(e,"unsubscribe error, code: ${code}, msg: ${msg}")},t.CONTROL_ERROR=function(e,t){return new u(e,"send control error, code: ".concat(e,", msg: ").concat(t))},t.NOT_SUPPORT_ERROR=function(e){return new u(11008,"not support! ".concat(e))},t.PLUGIN_NOT_AVALIABLE=function(e){return new u(11009,"plugin not avaliable! ".concat(e))},t.DEVICE_NOT_ALLOWED=function(e){return new u(11010,"NotAllowedError: no permission to access media device. ".concat(e))}},function(e,t,n){var r=n(12);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},function(e,t,n){var r=n(20),i=n(126),o=n(82),a=n(1),s=n(6),c=n(80),u={},d={};(t=e.exports=function(e,t,n,f,l){var p,h,v,m,g=l?function(){return e}:c(e),y=r(n,f,t?2:1),b=0;if("function"!=typeof g)throw TypeError(e+" is not iterable!");if(o(g)){for(p=s(e.length);p>b;b++)if((m=t?y(a(h=e[b])[0],h[1]):y(e[b]))===u||m===d)return m}else for(v=g.call(e);!(h=v.next()).done;)if((m=i(v,y,h.value,t))===u||m===d)return m}).BREAK=u,t.RETURN=d},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){"use strict";var r=n(2),i=n(7),o=n(8),a=n(5)("species");e.exports=function(e){var t=r[e];o&&t&&!t[a]&&i.f(t,a,{configurable:!0,get:function(){return this}})}},function(e,t,n){var r=n(138),i=n(95).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){var r=n(1),i=n(137),o=n(95),a=n(96)("IE_PROTO"),s=function(){},c=function(){var e,t=n(98)("iframe"),r=o.length;for(t.style.display="none",n(94).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("