ezuikit-js 0.7.2 → 7.6.0

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.
Files changed (75) hide show
  1. package/demos/base-demo/ezuikit.js +287 -4434
  2. package/ezuikit.js +367 -2307
  3. package/package.json +1 -1
  4. package/demos/base-demo/ezuikit_static/v66/v1/css/theme.css +0 -121
  5. package/demos/base-demo/ezuikit_static/v66/v1/js/AudioRenderer.js +0 -225
  6. package/demos/base-demo/ezuikit_static/v66/v1/js/SuperRender_10.js +0 -395
  7. package/demos/base-demo/ezuikit_static/v66/v1/js/SystemTransform.js +0 -22
  8. package/demos/base-demo/ezuikit_static/v66/v1/js/SystemTransform.js.mem +0 -0
  9. package/demos/base-demo/ezuikit_static/v66/v1/js/jsPluginV1-1.0.0.min.js +0 -26
  10. package/demos/base-demo/ezuikit_static/v66/v1/js/playctrl/AudioRenderer.js +0 -225
  11. package/demos/base-demo/ezuikit_static/v66/v1/js/playctrl/DecodeWorker.js +0 -618
  12. package/demos/base-demo/ezuikit_static/v66/v1/js/playctrl/Decoder.js +0 -1
  13. package/demos/base-demo/ezuikit_static/v66/v1/js/playctrl/JSPlaySDKInterface.js +0 -2052
  14. package/demos/base-demo/ezuikit_static/v66/v1/js/playctrl/SuperRender_10.js +0 -396
  15. package/demos/base-demo/ezuikit_static/v66/v1/js/playctrl/SuperRender_20.js +0 -1
  16. package/demos/base-demo/ezuikit_static/v66/v1/js/transform/SystemTransform.js +0 -22
  17. package/demos/base-demo/ezuikit_static/v66/v1/js/transform/SystemTransform.js.mem +0 -0
  18. package/demos/base-demo/ezuikit_static/v66/v1/js/transform/systemTransform-worker.min.js +0 -1
  19. package/demos/base-demo/ezuikit_static/v66/v1/js/tts-v4.js +0 -346
  20. package/demos/base-demo/ezuikit_static/v66/v1/rec/datepicker.js +0 -1522
  21. package/demos/base-demo/ezuikit_static/v66/v1/rec/datepicker.min.css +0 -36
  22. package/demos/base-demo/ezuikit_static/v66/v1/rec/datepicker.zh-CN.js +0 -19
  23. package/demos/base-demo/ezuikit_static/v66/v1/rec/jquery.min.js +0 -2
  24. package/demos/base-demo/ezuikit_static/v66/v1/speed/speed.css +0 -144
  25. package/demos/base-demo/ezuikit_static/v66/v1/talk/adapeter.js +0 -5497
  26. package/demos/base-demo/ezuikit_static/v66/v1/talk/janus.js +0 -3507
  27. package/demos/base-demo/ezuikit_static/v66/v1/talk/tts-v4.js +0 -346
  28. package/demos/base-demo/ezuikit_static/v66/v2/css/theme.css +0 -121
  29. package/demos/base-demo/ezuikit_static/v66/v2/js/Decoder.js +0 -9198
  30. package/demos/base-demo/ezuikit_static/v66/v2/js/Decoder.wasm +0 -0
  31. package/demos/base-demo/ezuikit_static/v66/v2/js/jsPluginV2-2.0.1.min.js +0 -4662
  32. package/demos/base-demo/ezuikit_static/v66/v2/rec/datepicker.js +0 -1522
  33. package/demos/base-demo/ezuikit_static/v66/v2/rec/datepicker.min.css +0 -36
  34. package/demos/base-demo/ezuikit_static/v66/v2/rec/datepicker.zh-CN.js +0 -19
  35. package/demos/base-demo/ezuikit_static/v66/v2/rec/jquery.min.js +0 -2
  36. package/demos/base-demo/ezuikit_static/v66/v2/speed/speed.css +0 -144
  37. package/demos/base-demo/ezuikit_static/v66/v2/talk/adapeter.js +0 -5497
  38. package/demos/base-demo/ezuikit_static/v66/v2/talk/janus.js +0 -3507
  39. package/demos/base-demo/ezuikit_static/v66/v2/talk/tts-v4.js +0 -343
  40. package/ezuikit_static/v66/v1/css/theme.css +0 -121
  41. package/ezuikit_static/v66/v1/js/AudioRenderer.js +0 -225
  42. package/ezuikit_static/v66/v1/js/SuperRender_10.js +0 -395
  43. package/ezuikit_static/v66/v1/js/SystemTransform.js +0 -22
  44. package/ezuikit_static/v66/v1/js/SystemTransform.js.mem +0 -0
  45. package/ezuikit_static/v66/v1/js/jsPluginV1-1.0.0.min.js +0 -26
  46. package/ezuikit_static/v66/v1/js/playctrl/AudioRenderer.js +0 -225
  47. package/ezuikit_static/v66/v1/js/playctrl/DecodeWorker.js +0 -618
  48. package/ezuikit_static/v66/v1/js/playctrl/Decoder.js +0 -1
  49. package/ezuikit_static/v66/v1/js/playctrl/JSPlaySDKInterface.js +0 -2052
  50. package/ezuikit_static/v66/v1/js/playctrl/SuperRender_10.js +0 -396
  51. package/ezuikit_static/v66/v1/js/playctrl/SuperRender_20.js +0 -1
  52. package/ezuikit_static/v66/v1/js/transform/SystemTransform.js +0 -22
  53. package/ezuikit_static/v66/v1/js/transform/SystemTransform.js.mem +0 -0
  54. package/ezuikit_static/v66/v1/js/transform/systemTransform-worker.min.js +0 -1
  55. package/ezuikit_static/v66/v1/js/tts-v4.js +0 -346
  56. package/ezuikit_static/v66/v1/rec/datepicker.js +0 -1522
  57. package/ezuikit_static/v66/v1/rec/datepicker.min.css +0 -36
  58. package/ezuikit_static/v66/v1/rec/datepicker.zh-CN.js +0 -19
  59. package/ezuikit_static/v66/v1/rec/jquery.min.js +0 -2
  60. package/ezuikit_static/v66/v1/speed/speed.css +0 -144
  61. package/ezuikit_static/v66/v1/talk/adapeter.js +0 -5497
  62. package/ezuikit_static/v66/v1/talk/janus.js +0 -3507
  63. package/ezuikit_static/v66/v1/talk/tts-v4.js +0 -346
  64. package/ezuikit_static/v66/v2/css/theme.css +0 -121
  65. package/ezuikit_static/v66/v2/js/Decoder.js +0 -9198
  66. package/ezuikit_static/v66/v2/js/Decoder.wasm +0 -0
  67. package/ezuikit_static/v66/v2/js/jsPluginV2-2.0.1.min.js +0 -4662
  68. package/ezuikit_static/v66/v2/rec/datepicker.js +0 -1522
  69. package/ezuikit_static/v66/v2/rec/datepicker.min.css +0 -36
  70. package/ezuikit_static/v66/v2/rec/datepicker.zh-CN.js +0 -19
  71. package/ezuikit_static/v66/v2/rec/jquery.min.js +0 -2
  72. package/ezuikit_static/v66/v2/speed/speed.css +0 -144
  73. package/ezuikit_static/v66/v2/talk/adapeter.js +0 -5497
  74. package/ezuikit_static/v66/v2/talk/janus.js +0 -3507
  75. package/ezuikit_static/v66/v2/talk/tts-v4.js +0 -343
package/ezuikit.js CHANGED
@@ -9,7 +9,7 @@ function _typeof(obj) {
9
9
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
10
10
  }, _typeof(obj);
11
11
  }
12
- function _classCallCheck$1(instance, Constructor) {
12
+ function _classCallCheck(instance, Constructor) {
13
13
  if (!(instance instanceof Constructor)) {
14
14
  throw new TypeError("Cannot call a class as a function");
15
15
  }
@@ -23,7 +23,7 @@ function _defineProperties(target, props) {
23
23
  Object.defineProperty(target, descriptor.key, descriptor);
24
24
  }
25
25
  }
26
- function _createClass$1(Constructor, protoProps, staticProps) {
26
+ function _createClass(Constructor, protoProps, staticProps) {
27
27
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
28
28
  if (staticProps) _defineProperties(Constructor, staticProps);
29
29
  Object.defineProperty(Constructor, "prototype", {
@@ -47,11 +47,11 @@ function _defineProperty(obj, key, value) {
47
47
 
48
48
  var Core = /*#__PURE__*/function () {
49
49
  function Core(x, y) {
50
- _classCallCheck$1(this, Core);
50
+ _classCallCheck(this, Core);
51
51
  this.coreX = x;
52
52
  this.coreY = y;
53
53
  }
54
- _createClass$1(Core, [{
54
+ _createClass(Core, [{
55
55
  key: "toString",
56
56
  value: function toString() {
57
57
  return "".concat(this.coreX, "-").concat(this.coreY);
@@ -129,7 +129,7 @@ var getQueryString = function getQueryString(name, url) {
129
129
  var m = (url || window.location.href).match(r);
130
130
  return decodeURIComponent(m ? m[2] : '');
131
131
  };
132
- var insertAfter$1 = function insertAfter(newElement, targetElement) {
132
+ var insertAfter = function insertAfter(newElement, targetElement) {
133
133
  var parent = targetElement.parentNode;
134
134
  if (parent.lastChild == targetElement) {
135
135
  parent.appendChild(newElement);
@@ -279,7 +279,7 @@ var request = function request(url, method, params, header, success, error) {
279
279
  var HLS = /*#__PURE__*/function () {
280
280
  function HLS(videoId, url) {
281
281
  var _this = this;
282
- _classCallCheck$1(this, HLS);
282
+ _classCallCheck(this, HLS);
283
283
  addJs("https://open.ys7.com/assets/ezuikit_v3.4/js/hls.js", function () {
284
284
  console.log("加载hls.min.js成功", window.Hls);
285
285
  console.log("isSupportHls", window.Hls.isSupported());
@@ -290,7 +290,7 @@ var HLS = /*#__PURE__*/function () {
290
290
  return !!window.Hls;
291
291
  });
292
292
  }
293
- _createClass$1(HLS, [{
293
+ _createClass(HLS, [{
294
294
  key: "toString",
295
295
  value: function toString() {
296
296
  return "hls ".concat(this.coreX, "-").concat(this.coreY);
@@ -356,7 +356,7 @@ var HLS = /*#__PURE__*/function () {
356
356
  var FLV = /*#__PURE__*/function () {
357
357
  function FLV(videoId, url) {
358
358
  var _this = this;
359
- _classCallCheck$1(this, FLV);
359
+ _classCallCheck(this, FLV);
360
360
  addJs("https://open.ys7.com/assets/ezuikit_v3.4/js/flv.min.js", function () {
361
361
  console.log("加载flv.min.js成功", window.flvjs);
362
362
  console.log("isSupportFlv", window.flvjs.isSupported());
@@ -365,7 +365,7 @@ var FLV = /*#__PURE__*/function () {
365
365
  }
366
366
  });
367
367
  }
368
- _createClass$1(FLV, [{
368
+ _createClass(FLV, [{
369
369
  key: "toString",
370
370
  value: function toString() {
371
371
  return "Flv ".concat(this.coreX, "-").concat(this.coreY);
@@ -1097,14 +1097,14 @@ lodash.prototype=baseLodash.prototype;lodash.prototype.constructor=lodash;Lodash
1097
1097
  * @name reverse
1098
1098
  * @memberOf LazyWrapper
1099
1099
  * @returns {Object} Returns the new reversed `LazyWrapper` object.
1100
- */function lazyReverse(){if(this.__filtered__){var result=new LazyWrapper(this);result.__dir__=-1;result.__filtered__=true;}else {result=this.clone();result.__dir__*=-1;}return result;}/**
1100
+ */function lazyReverse(){if(this.__filtered__){var result=new LazyWrapper(this);result.__dir__=-1;result.__filtered__=true;}else{result=this.clone();result.__dir__*=-1;}return result;}/**
1101
1101
  * Extracts the unwrapped value from its lazy wrapper.
1102
1102
  *
1103
1103
  * @private
1104
1104
  * @name value
1105
1105
  * @memberOf LazyWrapper
1106
1106
  * @returns {*} Returns the unwrapped value.
1107
- */function lazyValue(){var array=this.__wrapped__.value(),dir=this.__dir__,isArr=isArray(array),isRight=dir<0,arrLength=isArr?array.length:0,view=getView(0,arrLength,this.__views__),start=view.start,end=view.end,length=end-start,index=isRight?end:start-1,iteratees=this.__iteratees__,iterLength=iteratees.length,resIndex=0,takeCount=nativeMin(length,this.__takeCount__);if(!isArr||!isRight&&arrLength==length&&takeCount==length){return baseWrapperValue(array,this.__actions__);}var result=[];outer:while(length--&&resIndex<takeCount){index+=dir;var iterIndex=-1,value=array[index];while(++iterIndex<iterLength){var data=iteratees[iterIndex],iteratee=data.iteratee,type=data.type,computed=iteratee(value);if(type==LAZY_MAP_FLAG){value=computed;}else if(!computed){if(type==LAZY_FILTER_FLAG){continue outer;}else {break outer;}}}result[resIndex++]=value;}return result;}// Ensure `LazyWrapper` is an instance of `baseLodash`.
1107
+ */function lazyValue(){var array=this.__wrapped__.value(),dir=this.__dir__,isArr=isArray(array),isRight=dir<0,arrLength=isArr?array.length:0,view=getView(0,arrLength,this.__views__),start=view.start,end=view.end,length=end-start,index=isRight?end:start-1,iteratees=this.__iteratees__,iterLength=iteratees.length,resIndex=0,takeCount=nativeMin(length,this.__takeCount__);if(!isArr||!isRight&&arrLength==length&&takeCount==length){return baseWrapperValue(array,this.__actions__);}var result=[];outer:while(length--&&resIndex<takeCount){index+=dir;var iterIndex=-1,value=array[index];while(++iterIndex<iterLength){var data=iteratees[iterIndex],iteratee=data.iteratee,type=data.type,computed=iteratee(value);if(type==LAZY_MAP_FLAG){value=computed;}else if(!computed){if(type==LAZY_FILTER_FLAG){continue outer;}else{break outer;}}}result[resIndex++]=value;}return result;}// Ensure `LazyWrapper` is an instance of `baseLodash`.
1108
1108
  LazyWrapper.prototype=baseCreate(baseLodash.prototype);LazyWrapper.prototype.constructor=LazyWrapper;/*------------------------------------------------------------------------*/ /**
1109
1109
  * Creates a hash object.
1110
1110
  *
@@ -1172,7 +1172,7 @@ Hash.prototype.clear=hashClear;Hash.prototype['delete']=hashDelete;Hash.prototyp
1172
1172
  * @memberOf ListCache
1173
1173
  * @param {string} key The key of the value to remove.
1174
1174
  * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1175
- */function listCacheDelete(key){var data=this.__data__,index=assocIndexOf(data,key);if(index<0){return false;}var lastIndex=data.length-1;if(index==lastIndex){data.pop();}else {splice.call(data,index,1);}--this.size;return true;}/**
1175
+ */function listCacheDelete(key){var data=this.__data__,index=assocIndexOf(data,key);if(index<0){return false;}var lastIndex=data.length-1;if(index==lastIndex){data.pop();}else{splice.call(data,index,1);}--this.size;return true;}/**
1176
1176
  * Gets the list cache value for `key`.
1177
1177
  *
1178
1178
  * @private
@@ -1197,7 +1197,7 @@ Hash.prototype.clear=hashClear;Hash.prototype['delete']=hashDelete;Hash.prototyp
1197
1197
  * @param {string} key The key of the value to set.
1198
1198
  * @param {*} value The value to set.
1199
1199
  * @returns {Object} Returns the list cache instance.
1200
- */function listCacheSet(key,value){var data=this.__data__,index=assocIndexOf(data,key);if(index<0){++this.size;data.push([key,value]);}else {data[index][1]=value;}return this;}// Add methods to `ListCache`.
1200
+ */function listCacheSet(key,value){var data=this.__data__,index=assocIndexOf(data,key);if(index<0){++this.size;data.push([key,value]);}else{data[index][1]=value;}return this;}// Add methods to `ListCache`.
1201
1201
  ListCache.prototype.clear=listCacheClear;ListCache.prototype['delete']=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;/*------------------------------------------------------------------------*/ /**
1202
1202
  * Creates a map cache object to store key-value pairs.
1203
1203
  *
@@ -1403,7 +1403,7 @@ isIndex(key,length)))){result.push(key);}}return result;}/**
1403
1403
  * @param {Object} object The object to modify.
1404
1404
  * @param {string} key The key of the property to assign.
1405
1405
  * @param {*} value The value to assign.
1406
- */function baseAssignValue(object,key,value){if(key=='__proto__'&&defineProperty){defineProperty(object,key,{'configurable':true,'enumerable':true,'value':value,'writable':true});}else {object[key]=value;}}/**
1406
+ */function baseAssignValue(object,key,value){if(key=='__proto__'&&defineProperty){defineProperty(object,key,{'configurable':true,'enumerable':true,'value':value,'writable':true});}else{object[key]=value;}}/**
1407
1407
  * The base implementation of `_.at` without support for individual paths.
1408
1408
  *
1409
1409
  * @private
@@ -1433,7 +1433,7 @@ isIndex(key,length)))){result.push(key);}}return result;}/**
1433
1433
  * @param {Object} [object] The parent object of `value`.
1434
1434
  * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
1435
1435
  * @returns {*} Returns the cloned value.
1436
- */function baseClone(value,bitmask,customizer,key,object,stack){var result,isDeep=bitmask&CLONE_DEEP_FLAG,isFlat=bitmask&CLONE_FLAT_FLAG,isFull=bitmask&CLONE_SYMBOLS_FLAG;if(customizer){result=object?customizer(value,key,object,stack):customizer(value);}if(result!==undefined$1){return result;}if(!isObject(value)){return value;}var isArr=isArray(value);if(isArr){result=initCloneArray(value);if(!isDeep){return copyArray(value,result);}}else {var tag=getTag(value),isFunc=tag==funcTag||tag==genTag;if(isBuffer(value)){return cloneBuffer(value,isDeep);}if(tag==objectTag||tag==argsTag||isFunc&&!object){result=isFlat||isFunc?{}:initCloneObject(value);if(!isDeep){return isFlat?copySymbolsIn(value,baseAssignIn(result,value)):copySymbols(value,baseAssign(result,value));}}else {if(!cloneableTags[tag]){return object?value:{};}result=initCloneByTag(value,tag,isDeep);}}// Check for circular references and return its corresponding clone.
1436
+ */function baseClone(value,bitmask,customizer,key,object,stack){var result,isDeep=bitmask&CLONE_DEEP_FLAG,isFlat=bitmask&CLONE_FLAT_FLAG,isFull=bitmask&CLONE_SYMBOLS_FLAG;if(customizer){result=object?customizer(value,key,object,stack):customizer(value);}if(result!==undefined$1){return result;}if(!isObject(value)){return value;}var isArr=isArray(value);if(isArr){result=initCloneArray(value);if(!isDeep){return copyArray(value,result);}}else{var tag=getTag(value),isFunc=tag==funcTag||tag==genTag;if(isBuffer(value)){return cloneBuffer(value,isDeep);}if(tag==objectTag||tag==argsTag||isFunc&&!object){result=isFlat||isFunc?{}:initCloneObject(value);if(!isDeep){return isFlat?copySymbolsIn(value,baseAssignIn(result,value)):copySymbols(value,baseAssign(result,value));}}else{if(!cloneableTags[tag]){return object?value:{};}result=initCloneByTag(value,tag,isDeep);}}// Check for circular references and return its corresponding clone.
1437
1437
  stack||(stack=new Stack());var stacked=stack.get(value);if(stacked){return stacked;}stack.set(value,result);if(isSet(value)){value.forEach(function(subValue){result.add(baseClone(subValue,bitmask,customizer,subValue,value,stack));});}else if(isMap(value)){value.forEach(function(subValue,key){result.set(key,baseClone(subValue,bitmask,customizer,key,value,stack));});}var keysFunc=isFull?isFlat?getAllKeysIn:getAllKeys:isFlat?keysIn:keys;var props=isArr?undefined$1:keysFunc(value);arrayEach(props||value,function(subValue,key){if(props){key=subValue;subValue=value[key];}// Recursively populate clone (susceptible to call stack limits).
1438
1438
  assignValue(result,key,baseClone(subValue,bitmask,customizer,key,value,stack));});return result;}/**
1439
1439
  * The base implementation of `_.conforms` which doesn't clone `source`.
@@ -1525,7 +1525,7 @@ assignValue(result,key,baseClone(subValue,bitmask,customizer,key,value,stack));}
1525
1525
  * @param {Array} [result=[]] The initial result value.
1526
1526
  * @returns {Array} Returns the new flattened array.
1527
1527
  */function baseFlatten(array,depth,predicate,isStrict,result){var index=-1,length=array.length;predicate||(predicate=isFlattenable);result||(result=[]);while(++index<length){var value=array[index];if(depth>0&&predicate(value)){if(depth>1){// Recursively flatten arrays (susceptible to call stack limits).
1528
- baseFlatten(value,depth-1,predicate,isStrict,result);}else {arrayPush(result,value);}}else if(!isStrict){result[result.length]=value;}}return result;}/**
1528
+ baseFlatten(value,depth-1,predicate,isStrict,result);}else{arrayPush(result,value);}}else if(!isStrict){result[result.length]=value;}}return result;}/**
1529
1529
  * The base implementation of `baseForOwn` which iterates over `object`
1530
1530
  * properties returned by `keysFunc` and invokes `iteratee` for each property.
1531
1531
  * Iteratee functions may exit iteration early by explicitly returning `false`.
@@ -1706,7 +1706,7 @@ baseFlatten(value,depth-1,predicate,isStrict,result);}else {arrayPush(result,val
1706
1706
  * @param {Array} matchData The property names, values, and compare flags to match.
1707
1707
  * @param {Function} [customizer] The function to customize comparisons.
1708
1708
  * @returns {boolean} Returns `true` if `object` is a match, else `false`.
1709
- */function baseIsMatch(object,source,matchData,customizer){var index=matchData.length,length=index,noCustomizer=!customizer;if(object==null){return !length;}object=Object(object);while(index--){var data=matchData[index];if(noCustomizer&&data[2]?data[1]!==object[data[0]]:!(data[0]in object)){return false;}}while(++index<length){data=matchData[index];var key=data[0],objValue=object[key],srcValue=data[1];if(noCustomizer&&data[2]){if(objValue===undefined$1&&!(key in object)){return false;}}else {var stack=new Stack();if(customizer){var result=customizer(objValue,srcValue,key,object,source,stack);}if(!(result===undefined$1?baseIsEqual(srcValue,objValue,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG,customizer,stack):result)){return false;}}}return true;}/**
1709
+ */function baseIsMatch(object,source,matchData,customizer){var index=matchData.length,length=index,noCustomizer=!customizer;if(object==null){return !length;}object=Object(object);while(index--){var data=matchData[index];if(noCustomizer&&data[2]?data[1]!==object[data[0]]:!(data[0]in object)){return false;}}while(++index<length){data=matchData[index];var key=data[0],objValue=object[key],srcValue=data[1];if(noCustomizer&&data[2]){if(objValue===undefined$1&&!(key in object)){return false;}}else{var stack=new Stack();if(customizer){var result=customizer(objValue,srcValue,key,object,source,stack);}if(!(result===undefined$1?baseIsEqual(srcValue,objValue,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG,customizer,stack):result)){return false;}}}return true;}/**
1710
1710
  * The base implementation of `_.isNative` without bad shim checks.
1711
1711
  *
1712
1712
  * @private
@@ -1789,7 +1789,7 @@ if(typeof value=='function'){return value;}if(value==null){return identity;}if(t
1789
1789
  * @param {Function} [customizer] The function to customize merged values.
1790
1790
  * @param {Object} [stack] Tracks traversed source values and their merged
1791
1791
  * counterparts.
1792
- */function baseMerge(object,source,srcIndex,customizer,stack){if(object===source){return;}baseFor(source,function(srcValue,key){stack||(stack=new Stack());if(isObject(srcValue)){baseMergeDeep(object,source,key,srcIndex,baseMerge,customizer,stack);}else {var newValue=customizer?customizer(safeGet(object,key),srcValue,key+'',object,source,stack):undefined$1;if(newValue===undefined$1){newValue=srcValue;}assignMergeValue(object,key,newValue);}},keysIn);}/**
1792
+ */function baseMerge(object,source,srcIndex,customizer,stack){if(object===source){return;}baseFor(source,function(srcValue,key){stack||(stack=new Stack());if(isObject(srcValue)){baseMergeDeep(object,source,key,srcIndex,baseMerge,customizer,stack);}else{var newValue=customizer?customizer(safeGet(object,key),srcValue,key+'',object,source,stack):undefined$1;if(newValue===undefined$1){newValue=srcValue;}assignMergeValue(object,key,newValue);}},keysIn);}/**
1793
1793
  * A specialized version of `baseMerge` for arrays and objects which performs
1794
1794
  * deep merges and tracks traversed objects enabling objects with circular
1795
1795
  * references to be merged.
@@ -1803,7 +1803,7 @@ if(typeof value=='function'){return value;}if(value==null){return identity;}if(t
1803
1803
  * @param {Function} [customizer] The function to customize assigned values.
1804
1804
  * @param {Object} [stack] Tracks traversed source values and their merged
1805
1805
  * counterparts.
1806
- */function baseMergeDeep(object,source,key,srcIndex,mergeFunc,customizer,stack){var objValue=safeGet(object,key),srcValue=safeGet(source,key),stacked=stack.get(srcValue);if(stacked){assignMergeValue(object,key,stacked);return;}var newValue=customizer?customizer(objValue,srcValue,key+'',object,source,stack):undefined$1;var isCommon=newValue===undefined$1;if(isCommon){var isArr=isArray(srcValue),isBuff=!isArr&&isBuffer(srcValue),isTyped=!isArr&&!isBuff&&isTypedArray(srcValue);newValue=srcValue;if(isArr||isBuff||isTyped){if(isArray(objValue)){newValue=objValue;}else if(isArrayLikeObject(objValue)){newValue=copyArray(objValue);}else if(isBuff){isCommon=false;newValue=cloneBuffer(srcValue,true);}else if(isTyped){isCommon=false;newValue=cloneTypedArray(srcValue,true);}else {newValue=[];}}else if(isPlainObject(srcValue)||isArguments(srcValue)){newValue=objValue;if(isArguments(objValue)){newValue=toPlainObject(objValue);}else if(!isObject(objValue)||isFunction(objValue)){newValue=initCloneObject(srcValue);}}else {isCommon=false;}}if(isCommon){// Recursively merge objects and arrays (susceptible to call stack limits).
1806
+ */function baseMergeDeep(object,source,key,srcIndex,mergeFunc,customizer,stack){var objValue=safeGet(object,key),srcValue=safeGet(source,key),stacked=stack.get(srcValue);if(stacked){assignMergeValue(object,key,stacked);return;}var newValue=customizer?customizer(objValue,srcValue,key+'',object,source,stack):undefined$1;var isCommon=newValue===undefined$1;if(isCommon){var isArr=isArray(srcValue),isBuff=!isArr&&isBuffer(srcValue),isTyped=!isArr&&!isBuff&&isTypedArray(srcValue);newValue=srcValue;if(isArr||isBuff||isTyped){if(isArray(objValue)){newValue=objValue;}else if(isArrayLikeObject(objValue)){newValue=copyArray(objValue);}else if(isBuff){isCommon=false;newValue=cloneBuffer(srcValue,true);}else if(isTyped){isCommon=false;newValue=cloneTypedArray(srcValue,true);}else{newValue=[];}}else if(isPlainObject(srcValue)||isArguments(srcValue)){newValue=objValue;if(isArguments(objValue)){newValue=toPlainObject(objValue);}else if(!isObject(objValue)||isFunction(objValue)){newValue=initCloneObject(srcValue);}}else{isCommon=false;}}if(isCommon){// Recursively merge objects and arrays (susceptible to call stack limits).
1807
1807
  stack.set(srcValue,newValue);mergeFunc(newValue,srcValue,srcIndex,customizer,stack);stack['delete'](srcValue);}assignMergeValue(object,key,newValue);}/**
1808
1808
  * The base implementation of `_.nth` which doesn't coerce arguments.
1809
1809
  *
@@ -1819,7 +1819,7 @@ stack.set(srcValue,newValue);mergeFunc(newValue,srcValue,srcIndex,customizer,sta
1819
1819
  * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
1820
1820
  * @param {string[]} orders The sort orders of `iteratees`.
1821
1821
  * @returns {Array} Returns the new sorted array.
1822
- */function baseOrderBy(collection,iteratees,orders){if(iteratees.length){iteratees=arrayMap(iteratees,function(iteratee){if(isArray(iteratee)){return function(value){return baseGet(value,iteratee.length===1?iteratee[0]:iteratee);};}return iteratee;});}else {iteratees=[identity];}var index=-1;iteratees=arrayMap(iteratees,baseUnary(getIteratee()));var result=baseMap(collection,function(value,key,collection){var criteria=arrayMap(iteratees,function(iteratee){return iteratee(value);});return {'criteria':criteria,'index':++index,'value':value};});return baseSortBy(result,function(object,other){return compareMultiple(object,other,orders);});}/**
1822
+ */function baseOrderBy(collection,iteratees,orders){if(iteratees.length){iteratees=arrayMap(iteratees,function(iteratee){if(isArray(iteratee)){return function(value){return baseGet(value,iteratee.length===1?iteratee[0]:iteratee);};}return iteratee;});}else{iteratees=[identity];}var index=-1;iteratees=arrayMap(iteratees,baseUnary(getIteratee()));var result=baseMap(collection,function(value,key,collection){var criteria=arrayMap(iteratees,function(iteratee){return iteratee(value);});return {'criteria':criteria,'index':++index,'value':value};});return baseSortBy(result,function(object,other){return compareMultiple(object,other,orders);});}/**
1823
1823
  * The base implementation of `_.pick` without support for individual
1824
1824
  * property identifiers.
1825
1825
  *
@@ -1859,7 +1859,7 @@ stack.set(srcValue,newValue);mergeFunc(newValue,srcValue,srcIndex,customizer,sta
1859
1859
  * @param {Array} array The array to modify.
1860
1860
  * @param {number[]} indexes The indexes of elements to remove.
1861
1861
  * @returns {Array} Returns `array`.
1862
- */function basePullAt(array,indexes){var length=array?indexes.length:0,lastIndex=length-1;while(length--){var index=indexes[length];if(length==lastIndex||index!==previous){var previous=index;if(isIndex(index)){splice.call(array,index,1);}else {baseUnset(array,index);}}}return array;}/**
1862
+ */function basePullAt(array,indexes){var length=array?indexes.length:0,lastIndex=length-1;while(length--){var index=indexes[length];if(length==lastIndex||index!==previous){var previous=index;if(isIndex(index)){splice.call(array,index,1);}else{baseUnset(array,index);}}}return array;}/**
1863
1863
  * The base implementation of `_.random` without support for returning
1864
1864
  * floating-point numbers.
1865
1865
  *
@@ -1962,7 +1962,7 @@ do{if(n%2){result+=string;}n=nativeFloor(n/2);if(n){string+=string;}}while(n);re
1962
1962
  * @param {boolean} [retHighest] Specify returning the highest qualified index.
1963
1963
  * @returns {number} Returns the index at which `value` should be inserted
1964
1964
  * into `array`.
1965
- */function baseSortedIndex(array,value,retHighest){var low=0,high=array==null?low:array.length;if(typeof value=='number'&&value===value&&high<=HALF_MAX_ARRAY_LENGTH){while(low<high){var mid=low+high>>>1,computed=array[mid];if(computed!==null&&!isSymbol(computed)&&(retHighest?computed<=value:computed<value)){low=mid+1;}else {high=mid;}}return high;}return baseSortedIndexBy(array,value,identity,retHighest);}/**
1965
+ */function baseSortedIndex(array,value,retHighest){var low=0,high=array==null?low:array.length;if(typeof value=='number'&&value===value&&high<=HALF_MAX_ARRAY_LENGTH){while(low<high){var mid=low+high>>>1,computed=array[mid];if(computed!==null&&!isSymbol(computed)&&(retHighest?computed<=value:computed<value)){low=mid+1;}else{high=mid;}}return high;}return baseSortedIndexBy(array,value,identity,retHighest);}/**
1966
1966
  * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy`
1967
1967
  * which invokes `iteratee` for `value` and each element of `array` to compute
1968
1968
  * their sort ranking. The iteratee is invoked with one argument; (value).
@@ -1974,7 +1974,7 @@ do{if(n%2){result+=string;}n=nativeFloor(n/2);if(n){string+=string;}}while(n);re
1974
1974
  * @param {boolean} [retHighest] Specify returning the highest qualified index.
1975
1975
  * @returns {number} Returns the index at which `value` should be inserted
1976
1976
  * into `array`.
1977
- */function baseSortedIndexBy(array,value,iteratee,retHighest){var low=0,high=array==null?0:array.length;if(high===0){return 0;}value=iteratee(value);var valIsNaN=value!==value,valIsNull=value===null,valIsSymbol=isSymbol(value),valIsUndefined=value===undefined$1;while(low<high){var mid=nativeFloor((low+high)/2),computed=iteratee(array[mid]),othIsDefined=computed!==undefined$1,othIsNull=computed===null,othIsReflexive=computed===computed,othIsSymbol=isSymbol(computed);if(valIsNaN){var setLow=retHighest||othIsReflexive;}else if(valIsUndefined){setLow=othIsReflexive&&(retHighest||othIsDefined);}else if(valIsNull){setLow=othIsReflexive&&othIsDefined&&(retHighest||!othIsNull);}else if(valIsSymbol){setLow=othIsReflexive&&othIsDefined&&!othIsNull&&(retHighest||!othIsSymbol);}else if(othIsNull||othIsSymbol){setLow=false;}else {setLow=retHighest?computed<=value:computed<value;}if(setLow){low=mid+1;}else {high=mid;}}return nativeMin(high,MAX_ARRAY_INDEX);}/**
1977
+ */function baseSortedIndexBy(array,value,iteratee,retHighest){var low=0,high=array==null?0:array.length;if(high===0){return 0;}value=iteratee(value);var valIsNaN=value!==value,valIsNull=value===null,valIsSymbol=isSymbol(value),valIsUndefined=value===undefined$1;while(low<high){var mid=nativeFloor((low+high)/2),computed=iteratee(array[mid]),othIsDefined=computed!==undefined$1,othIsNull=computed===null,othIsReflexive=computed===computed,othIsSymbol=isSymbol(computed);if(valIsNaN){var setLow=retHighest||othIsReflexive;}else if(valIsUndefined){setLow=othIsReflexive&&(retHighest||othIsDefined);}else if(valIsNull){setLow=othIsReflexive&&othIsDefined&&(retHighest||!othIsNull);}else if(valIsSymbol){setLow=othIsReflexive&&othIsDefined&&!othIsNull&&(retHighest||!othIsSymbol);}else if(othIsNull||othIsSymbol){setLow=false;}else{setLow=retHighest?computed<=value:computed<value;}if(setLow){low=mid+1;}else{high=mid;}}return nativeMin(high,MAX_ARRAY_INDEX);}/**
1978
1978
  * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without
1979
1979
  * support for iteratee shorthands.
1980
1980
  *
@@ -2006,7 +2006,7 @@ return arrayMap(value,baseToString)+'';}if(isSymbol(value)){return symbolToStrin
2006
2006
  * @param {Function} [iteratee] The iteratee invoked per element.
2007
2007
  * @param {Function} [comparator] The comparator invoked per element.
2008
2008
  * @returns {Array} Returns the new duplicate free array.
2009
- */function baseUniq(array,iteratee,comparator){var index=-1,includes=arrayIncludes,length=array.length,isCommon=true,result=[],seen=result;if(comparator){isCommon=false;includes=arrayIncludesWith;}else if(length>=LARGE_ARRAY_SIZE){var set=iteratee?null:createSet(array);if(set){return setToArray(set);}isCommon=false;includes=cacheHas;seen=new SetCache();}else {seen=iteratee?[]:result;}outer:while(++index<length){var value=array[index],computed=iteratee?iteratee(value):value;value=comparator||value!==0?value:0;if(isCommon&&computed===computed){var seenIndex=seen.length;while(seenIndex--){if(seen[seenIndex]===computed){continue outer;}}if(iteratee){seen.push(computed);}result.push(value);}else if(!includes(seen,computed,comparator)){if(seen!==result){seen.push(computed);}result.push(value);}}return result;}/**
2009
+ */function baseUniq(array,iteratee,comparator){var index=-1,includes=arrayIncludes,length=array.length,isCommon=true,result=[],seen=result;if(comparator){isCommon=false;includes=arrayIncludesWith;}else if(length>=LARGE_ARRAY_SIZE){var set=iteratee?null:createSet(array);if(set){return setToArray(set);}isCommon=false;includes=cacheHas;seen=new SetCache();}else{seen=iteratee?[]:result;}outer:while(++index<length){var value=array[index],computed=iteratee?iteratee(value):value;value=comparator||value!==0?value:0;if(isCommon&&computed===computed){var seenIndex=seen.length;while(seenIndex--){if(seen[seenIndex]===computed){continue outer;}}if(iteratee){seen.push(computed);}result.push(value);}else if(!includes(seen,computed,comparator)){if(seen!==result){seen.push(computed);}result.push(value);}}return result;}/**
2010
2010
  * The base implementation of `_.unset`.
2011
2011
  *
2012
2012
  * @private
@@ -2200,7 +2200,7 @@ return object.index-other.index;}/**
2200
2200
  * @param {Object} [object={}] The object to copy properties to.
2201
2201
  * @param {Function} [customizer] The function to customize copied values.
2202
2202
  * @returns {Object} Returns `object`.
2203
- */function copyObject(source,props,object,customizer){var isNew=!object;object||(object={});var index=-1,length=props.length;while(++index<length){var key=props[index];var newValue=customizer?customizer(object[key],source[key],key,object,source):undefined$1;if(newValue===undefined$1){newValue=source[key];}if(isNew){baseAssignValue(object,key,newValue);}else {assignValue(object,key,newValue);}}return object;}/**
2203
+ */function copyObject(source,props,object,customizer){var isNew=!object;object||(object={});var index=-1,length=props.length;while(++index<length){var key=props[index];var newValue=customizer?customizer(object[key],source[key],key,object,source):undefined$1;if(newValue===undefined$1){newValue=source[key];}if(isNew){baseAssignValue(object,key,newValue);}else{assignValue(object,key,newValue);}}return object;}/**
2204
2204
  * Copies own symbols of `source` to `object`.
2205
2205
  *
2206
2206
  * @private
@@ -2293,7 +2293,7 @@ return isObject(result)?result:thisBinding;};}/**
2293
2293
  * @private
2294
2294
  * @param {boolean} [fromRight] Specify iterating from right to left.
2295
2295
  * @returns {Function} Returns the new flow function.
2296
- */function createFlow(fromRight){return flatRest(function(funcs){var length=funcs.length,index=length,prereq=LodashWrapper.prototype.thru;if(fromRight){funcs.reverse();}while(index--){var func=funcs[index];if(typeof func!='function'){throw new TypeError(FUNC_ERROR_TEXT);}if(prereq&&!wrapper&&getFuncName(func)=='wrapper'){var wrapper=new LodashWrapper([],true);}}index=wrapper?index:length;while(++index<length){func=funcs[index];var funcName=getFuncName(func),data=funcName=='wrapper'?getData(func):undefined$1;if(data&&isLaziable(data[0])&&data[1]==(WRAP_ARY_FLAG|WRAP_CURRY_FLAG|WRAP_PARTIAL_FLAG|WRAP_REARG_FLAG)&&!data[4].length&&data[9]==1){wrapper=wrapper[getFuncName(data[0])].apply(wrapper,data[3]);}else {wrapper=func.length==1&&isLaziable(func)?wrapper[funcName]():wrapper.thru(func);}}return function(){var args=arguments,value=args[0];if(wrapper&&args.length==1&&isArray(value)){return wrapper.plant(value).value();}var index=0,result=length?funcs[index].apply(this,args):value;while(++index<length){result=funcs[index].call(this,result);}return result;};});}/**
2296
+ */function createFlow(fromRight){return flatRest(function(funcs){var length=funcs.length,index=length,prereq=LodashWrapper.prototype.thru;if(fromRight){funcs.reverse();}while(index--){var func=funcs[index];if(typeof func!='function'){throw new TypeError(FUNC_ERROR_TEXT);}if(prereq&&!wrapper&&getFuncName(func)=='wrapper'){var wrapper=new LodashWrapper([],true);}}index=wrapper?index:length;while(++index<length){func=funcs[index];var funcName=getFuncName(func),data=funcName=='wrapper'?getData(func):undefined$1;if(data&&isLaziable(data[0])&&data[1]==(WRAP_ARY_FLAG|WRAP_CURRY_FLAG|WRAP_PARTIAL_FLAG|WRAP_REARG_FLAG)&&!data[4].length&&data[9]==1){wrapper=wrapper[getFuncName(data[0])].apply(wrapper,data[3]);}else{wrapper=func.length==1&&isLaziable(func)?wrapper[funcName]():wrapper.thru(func);}}return function(){var args=arguments,value=args[0];if(wrapper&&args.length==1&&isArray(value)){return wrapper.plant(value).value();}var index=0,result=length?funcs[index].apply(this,args):value;while(++index<length){result=funcs[index].call(this,result);}return result;};});}/**
2297
2297
  * Creates a function that wraps `func` to invoke it with optional `this`
2298
2298
  * binding of `thisArg`, partial application, and currying.
2299
2299
  *
@@ -2325,7 +2325,7 @@ return isObject(result)?result:thisBinding;};}/**
2325
2325
  * @param {Function} operator The function to perform the operation.
2326
2326
  * @param {number} [defaultValue] The value used for `undefined` arguments.
2327
2327
  * @returns {Function} Returns the new mathematical operation function.
2328
- */function createMathOperation(operator,defaultValue){return function(value,other){var result;if(value===undefined$1&&other===undefined$1){return defaultValue;}if(value!==undefined$1){result=value;}if(other!==undefined$1){if(result===undefined$1){return other;}if(typeof value=='string'||typeof other=='string'){value=baseToString(value);other=baseToString(other);}else {value=baseToNumber(value);other=baseToNumber(other);}result=operator(value,other);}return result;};}/**
2328
+ */function createMathOperation(operator,defaultValue){return function(value,other){var result;if(value===undefined$1&&other===undefined$1){return defaultValue;}if(value!==undefined$1){result=value;}if(other!==undefined$1){if(result===undefined$1){return other;}if(typeof value=='string'||typeof other=='string'){value=baseToString(value);other=baseToString(other);}else{value=baseToNumber(value);other=baseToNumber(other);}result=operator(value,other);}return result;};}/**
2329
2329
  * Creates a function like `_.over`.
2330
2330
  *
2331
2331
  * @private
@@ -2357,7 +2357,7 @@ return isObject(result)?result:thisBinding;};}/**
2357
2357
  * @param {boolean} [fromRight] Specify iterating from right to left.
2358
2358
  * @returns {Function} Returns the new range function.
2359
2359
  */function createRange(fromRight){return function(start,end,step){if(step&&typeof step!='number'&&isIterateeCall(start,end,step)){end=step=undefined$1;}// Ensure the sign of `-0` is preserved.
2360
- start=toFinite(start);if(end===undefined$1){end=start;start=0;}else {end=toFinite(end);}step=step===undefined$1?start<end?1:-1:toFinite(step);return baseRange(start,end,step,fromRight);};}/**
2360
+ start=toFinite(start);if(end===undefined$1){end=start;start=0;}else{end=toFinite(end);}step=step===undefined$1?start<end?1:-1:toFinite(step);return baseRange(start,end,step,fromRight);};}/**
2361
2361
  * Creates a function that performs a relational operation on two values.
2362
2362
  *
2363
2363
  * @private
@@ -2423,7 +2423,7 @@ var pair=(toString(number)+'e').split('e'),value=func(pair[0]+'e'+(+pair[1]+prec
2423
2423
  * @param {number} [ary] The arity cap of `func`.
2424
2424
  * @param {number} [arity] The arity of `func`.
2425
2425
  * @returns {Function} Returns the new wrapped function.
2426
- */function createWrap(func,bitmask,thisArg,partials,holders,argPos,ary,arity){var isBindKey=bitmask&WRAP_BIND_KEY_FLAG;if(!isBindKey&&typeof func!='function'){throw new TypeError(FUNC_ERROR_TEXT);}var length=partials?partials.length:0;if(!length){bitmask&=~(WRAP_PARTIAL_FLAG|WRAP_PARTIAL_RIGHT_FLAG);partials=holders=undefined$1;}ary=ary===undefined$1?ary:nativeMax(toInteger(ary),0);arity=arity===undefined$1?arity:toInteger(arity);length-=holders?holders.length:0;if(bitmask&WRAP_PARTIAL_RIGHT_FLAG){var partialsRight=partials,holdersRight=holders;partials=holders=undefined$1;}var data=isBindKey?undefined$1:getData(func);var newData=[func,bitmask,thisArg,partials,holders,partialsRight,holdersRight,argPos,ary,arity];if(data){mergeData(newData,data);}func=newData[0];bitmask=newData[1];thisArg=newData[2];partials=newData[3];holders=newData[4];arity=newData[9]=newData[9]===undefined$1?isBindKey?0:func.length:nativeMax(newData[9]-length,0);if(!arity&&bitmask&(WRAP_CURRY_FLAG|WRAP_CURRY_RIGHT_FLAG)){bitmask&=~(WRAP_CURRY_FLAG|WRAP_CURRY_RIGHT_FLAG);}if(!bitmask||bitmask==WRAP_BIND_FLAG){var result=createBind(func,bitmask,thisArg);}else if(bitmask==WRAP_CURRY_FLAG||bitmask==WRAP_CURRY_RIGHT_FLAG){result=createCurry(func,bitmask,arity);}else if((bitmask==WRAP_PARTIAL_FLAG||bitmask==(WRAP_BIND_FLAG|WRAP_PARTIAL_FLAG))&&!holders.length){result=createPartial(func,bitmask,thisArg,partials);}else {result=createHybrid.apply(undefined$1,newData);}var setter=data?baseSetData:setData;return setWrapToString(setter(result,newData),func,bitmask);}/**
2426
+ */function createWrap(func,bitmask,thisArg,partials,holders,argPos,ary,arity){var isBindKey=bitmask&WRAP_BIND_KEY_FLAG;if(!isBindKey&&typeof func!='function'){throw new TypeError(FUNC_ERROR_TEXT);}var length=partials?partials.length:0;if(!length){bitmask&=~(WRAP_PARTIAL_FLAG|WRAP_PARTIAL_RIGHT_FLAG);partials=holders=undefined$1;}ary=ary===undefined$1?ary:nativeMax(toInteger(ary),0);arity=arity===undefined$1?arity:toInteger(arity);length-=holders?holders.length:0;if(bitmask&WRAP_PARTIAL_RIGHT_FLAG){var partialsRight=partials,holdersRight=holders;partials=holders=undefined$1;}var data=isBindKey?undefined$1:getData(func);var newData=[func,bitmask,thisArg,partials,holders,partialsRight,holdersRight,argPos,ary,arity];if(data){mergeData(newData,data);}func=newData[0];bitmask=newData[1];thisArg=newData[2];partials=newData[3];holders=newData[4];arity=newData[9]=newData[9]===undefined$1?isBindKey?0:func.length:nativeMax(newData[9]-length,0);if(!arity&&bitmask&(WRAP_CURRY_FLAG|WRAP_CURRY_RIGHT_FLAG)){bitmask&=~(WRAP_CURRY_FLAG|WRAP_CURRY_RIGHT_FLAG);}if(!bitmask||bitmask==WRAP_BIND_FLAG){var result=createBind(func,bitmask,thisArg);}else if(bitmask==WRAP_CURRY_FLAG||bitmask==WRAP_CURRY_RIGHT_FLAG){result=createCurry(func,bitmask,arity);}else if((bitmask==WRAP_PARTIAL_FLAG||bitmask==(WRAP_BIND_FLAG|WRAP_PARTIAL_FLAG))&&!holders.length){result=createPartial(func,bitmask,thisArg,partials);}else{result=createHybrid.apply(undefined$1,newData);}var setter=data?baseSetData:setData;return setWrapToString(setter(result,newData),func,bitmask);}/**
2427
2427
  * Used by `_.defaults` to customize its `_.assignIn` use to assign properties
2428
2428
  * of source objects to the destination object for all destination properties
2429
2429
  * that resolve to `undefined`.
@@ -2582,7 +2582,7 @@ if(objCtor!=othCtor&&'constructor'in object&&'constructor'in other&&!(typeof obj
2582
2582
  * @private
2583
2583
  * @param {*} value The value to query.
2584
2584
  * @returns {string} Returns the raw `toStringTag`.
2585
- */function getRawTag(value){var isOwn=hasOwnProperty.call(value,symToStringTag),tag=value[symToStringTag];try{value[symToStringTag]=undefined$1;var unmasked=true;}catch(e){}var result=nativeObjectToString.call(value);if(unmasked){if(isOwn){value[symToStringTag]=tag;}else {delete value[symToStringTag];}}return result;}/**
2585
+ */function getRawTag(value){var isOwn=hasOwnProperty.call(value,symToStringTag),tag=value[symToStringTag];try{value[symToStringTag]=undefined$1;var unmasked=true;}catch(e){}var result=nativeObjectToString.call(value);if(unmasked){if(isOwn){value[symToStringTag]=tag;}else{delete value[symToStringTag];}}return result;}/**
2586
2586
  * Creates an array of the own enumerable symbols of `object`.
2587
2587
  *
2588
2588
  * @private
@@ -2850,7 +2850,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
2850
2850
  * @private
2851
2851
  * @param {Function} func The function to restrict.
2852
2852
  * @returns {Function} Returns the new shortable function.
2853
- */function shortOut(func){var count=0,lastCalled=0;return function(){var stamp=nativeNow(),remaining=HOT_SPAN-(stamp-lastCalled);lastCalled=stamp;if(remaining>0){if(++count>=HOT_COUNT){return arguments[0];}}else {count=0;}return func.apply(undefined$1,arguments);};}/**
2853
+ */function shortOut(func){var count=0,lastCalled=0;return function(){var stamp=nativeNow(),remaining=HOT_SPAN-(stamp-lastCalled);lastCalled=stamp;if(remaining>0){if(++count>=HOT_COUNT){return arguments[0];}}else{count=0;}return func.apply(undefined$1,arguments);};}/**
2854
2854
  * A specialized version of `_.shuffle` which mutates and sets the size of `array`.
2855
2855
  *
2856
2856
  * @private
@@ -2908,7 +2908,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
2908
2908
  *
2909
2909
  * _.chunk(['a', 'b', 'c', 'd'], 3);
2910
2910
  * // => [['a', 'b', 'c'], ['d']]
2911
- */function chunk(array,size,guard){if(guard?isIterateeCall(array,size,guard):size===undefined$1){size=1;}else {size=nativeMax(toInteger(size),0);}var length=array==null?0:array.length;if(!length||size<1){return [];}var index=0,resIndex=0,result=Array(nativeCeil(length/size));while(index<length){result[resIndex++]=baseSlice(array,index,index+=size);}return result;}/**
2911
+ */function chunk(array,size,guard){if(guard?isIterateeCall(array,size,guard):size===undefined$1){size=1;}else{size=nativeMax(toInteger(size),0);}var length=array==null?0:array.length;if(!length||size<1){return [];}var index=0,resIndex=0,result=Array(nativeCeil(length/size));while(index<length){result[resIndex++]=baseSlice(array,index,index+=size);}return result;}/**
2912
2912
  * Creates an array with all falsey values removed. The values `false`, `null`,
2913
2913
  * `0`, `""`, `undefined`, and `NaN` are falsey.
2914
2914
  *
@@ -3371,7 +3371,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
3371
3371
  * // The `_.property` iteratee shorthand.
3372
3372
  * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
3373
3373
  * // => [{ 'x': 1 }]
3374
- */var intersectionBy=baseRest(function(arrays){var iteratee=last(arrays),mapped=arrayMap(arrays,castArrayLikeObject);if(iteratee===last(mapped)){iteratee=undefined$1;}else {mapped.pop();}return mapped.length&&mapped[0]===arrays[0]?baseIntersection(mapped,getIteratee(iteratee,2)):[];});/**
3374
+ */var intersectionBy=baseRest(function(arrays){var iteratee=last(arrays),mapped=arrayMap(arrays,castArrayLikeObject);if(iteratee===last(mapped)){iteratee=undefined$1;}else{mapped.pop();}return mapped.length&&mapped[0]===arrays[0]?baseIntersection(mapped,getIteratee(iteratee,2)):[];});/**
3375
3375
  * This method is like `_.intersection` except that it accepts `comparator`
3376
3376
  * which is invoked to compare elements of `arrays`. The order and references
3377
3377
  * of result values are determined by the first array. The comparator is
@@ -3630,7 +3630,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
3630
3630
  * @param {number} [start=0] The start position.
3631
3631
  * @param {number} [end=array.length] The end position.
3632
3632
  * @returns {Array} Returns the slice of `array`.
3633
- */function slice(array,start,end){var length=array==null?0:array.length;if(!length){return [];}if(end&&typeof end!='number'&&isIterateeCall(array,start,end)){start=0;end=length;}else {start=start==null?0:toInteger(start);end=end===undefined$1?length:toInteger(end);}return baseSlice(array,start,end);}/**
3633
+ */function slice(array,start,end){var length=array==null?0:array.length;if(!length){return [];}if(end&&typeof end!='number'&&isIterateeCall(array,start,end)){start=0;end=length;}else{start=start==null?0:toInteger(start);end=end===undefined$1?length:toInteger(end);}return baseSlice(array,start,end);}/**
3634
3634
  * Uses a binary search to determine the lowest index at which `value`
3635
3635
  * should be inserted into `array` in order to maintain its sort order.
3636
3636
  *
@@ -4392,7 +4392,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
4392
4392
  *
4393
4393
  * wrapped.value();
4394
4394
  * // => [1, 4]
4395
- */function wrapperPlant(value){var result,parent=this;while(parent instanceof baseLodash){var clone=wrapperClone(parent);clone.__index__=0;clone.__values__=undefined$1;if(result){previous.__wrapped__=clone;}else {result=clone;}var previous=clone;parent=parent.__wrapped__;}previous.__wrapped__=value;return result;}/**
4395
+ */function wrapperPlant(value){var result,parent=this;while(parent instanceof baseLodash){var clone=wrapperClone(parent);clone.__index__=0;clone.__values__=undefined$1;if(result){previous.__wrapped__=clone;}else{result=clone;}var previous=clone;parent=parent.__wrapped__;}previous.__wrapped__=value;return result;}/**
4396
4396
  * This method is the wrapper version of `_.reverse`.
4397
4397
  *
4398
4398
  * **Note:** This method mutates the wrapped array.
@@ -4445,7 +4445,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
4445
4445
  * // The `_.property` iteratee shorthand.
4446
4446
  * _.countBy(['one', 'two', 'three'], 'length');
4447
4447
  * // => { '3': 2, '5': 1 }
4448
- */var countBy=createAggregator(function(result,value,key){if(hasOwnProperty.call(result,key)){++result[key];}else {baseAssignValue(result,key,1);}});/**
4448
+ */var countBy=createAggregator(function(result,value,key){if(hasOwnProperty.call(result,key)){++result[key];}else{baseAssignValue(result,key,1);}});/**
4449
4449
  * Checks if `predicate` returns truthy for **all** elements of `collection`.
4450
4450
  * Iteration is stopped once `predicate` returns falsey. The predicate is
4451
4451
  * invoked with three arguments: (value, index|key, collection).
@@ -4707,7 +4707,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
4707
4707
  * // The `_.property` iteratee shorthand.
4708
4708
  * _.groupBy(['one', 'two', 'three'], 'length');
4709
4709
  * // => { '3': ['one', 'two'], '5': ['three'] }
4710
- */var groupBy=createAggregator(function(result,value,key){if(hasOwnProperty.call(result,key)){result[key].push(value);}else {baseAssignValue(result,key,[value]);}});/**
4710
+ */var groupBy=createAggregator(function(result,value,key){if(hasOwnProperty.call(result,key)){result[key].push(value);}else{baseAssignValue(result,key,[value]);}});/**
4711
4711
  * Checks if `value` is in `collection`. If `collection` is a string, it's
4712
4712
  * checked for a substring of `value`, otherwise
4713
4713
  * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
@@ -5011,7 +5011,7 @@ data[0]=source[0];data[1]=newBitmask;return data;}/**
5011
5011
  *
5012
5012
  * _.sampleSize([1, 2, 3], 4);
5013
5013
  * // => [2, 3, 1]
5014
- */function sampleSize(collection,n,guard){if(guard?isIterateeCall(collection,n,guard):n===undefined$1){n=1;}else {n=toInteger(n);}var func=isArray(collection)?arraySampleSize:baseSampleSize;return func(collection,n);}/**
5014
+ */function sampleSize(collection,n,guard){if(guard?isIterateeCall(collection,n,guard):n===undefined$1){n=1;}else{n=toInteger(n);}var func=isArray(collection)?arraySampleSize:baseSampleSize;return func(collection,n);}/**
5015
5015
  * Creates an array of shuffled values, using a version of the
5016
5016
  * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).
5017
5017
  *
@@ -7553,7 +7553,7 @@ return isNumber(value)&&value!=+value;}/**
7553
7553
  * return 'group' + value;
7554
7554
  * });
7555
7555
  * // => { 'group1': ['a', 'c'], 'group2': ['b'] }
7556
- */var invertBy=createInverter(function(result,value,key){if(value!=null&&typeof value.toString!='function'){value=nativeObjectToString.call(value);}if(hasOwnProperty.call(result,value)){result[value].push(key);}else {result[value]=[key];}},getIteratee);/**
7556
+ */var invertBy=createInverter(function(result,value,key){if(value!=null&&typeof value.toString!='function'){value=nativeObjectToString.call(value);}if(hasOwnProperty.call(result,value)){result[value].push(key);}else{result[value]=[key];}},getIteratee);/**
7557
7557
  * Invokes the method at `path` of `object`.
7558
7558
  *
7559
7559
  * @static
@@ -7951,7 +7951,7 @@ if(!length){length=1;object=undefined$1;}while(++index<length){var value=object=
7951
7951
  * (result[value] || (result[value] = [])).push(key);
7952
7952
  * }, {});
7953
7953
  * // => { '1': ['a', 'c'], '2': ['b'] }
7954
- */function transform(object,iteratee,accumulator){var isArr=isArray(object),isArrLike=isArr||isBuffer(object)||isTypedArray(object);iteratee=getIteratee(iteratee,4);if(accumulator==null){var Ctor=object&&object.constructor;if(isArrLike){accumulator=isArr?new Ctor():[];}else if(isObject(object)){accumulator=isFunction(Ctor)?baseCreate(getPrototype(object)):{};}else {accumulator={};}}(isArrLike?arrayEach:baseForOwn)(object,function(value,index,object){return iteratee(accumulator,value,index,object);});return accumulator;}/**
7954
+ */function transform(object,iteratee,accumulator){var isArr=isArray(object),isArrLike=isArr||isBuffer(object)||isTypedArray(object);iteratee=getIteratee(iteratee,4);if(accumulator==null){var Ctor=object&&object.constructor;if(isArrLike){accumulator=isArr?new Ctor():[];}else if(isObject(object)){accumulator=isFunction(Ctor)?baseCreate(getPrototype(object)):{};}else{accumulator={};}}(isArrLike?arrayEach:baseForOwn)(object,function(value,index,object){return iteratee(accumulator,value,index,object);});return accumulator;}/**
7955
7955
  * Removes the property at `path` of `object`.
7956
7956
  *
7957
7957
  * **Note:** This method mutates `object`.
@@ -8129,7 +8129,7 @@ if(!length){length=1;object=undefined$1;}while(++index<length){var value=object=
8129
8129
  *
8130
8130
  * _.inRange(-3, -2, -6);
8131
8131
  * // => true
8132
- */function inRange(number,start,end){start=toFinite(start);if(end===undefined$1){end=start;start=0;}else {end=toFinite(end);}number=toNumber(number);return baseInRange(number,start,end);}/**
8132
+ */function inRange(number,start,end){start=toFinite(start);if(end===undefined$1){end=start;start=0;}else{end=toFinite(end);}number=toNumber(number);return baseInRange(number,start,end);}/**
8133
8133
  * Produces a random number between the inclusive `lower` and `upper` bounds.
8134
8134
  * If only one argument is provided a number between `0` and the given number
8135
8135
  * is returned. If `floating` is `true`, or either `lower` or `upper` are
@@ -8159,7 +8159,7 @@ if(!length){length=1;object=undefined$1;}while(++index<length){var value=object=
8159
8159
  *
8160
8160
  * _.random(1.2, 5.2);
8161
8161
  * // => a floating-point number between 1.2 and 5.2
8162
- */function random(lower,upper,floating){if(floating&&typeof floating!='boolean'&&isIterateeCall(lower,upper,floating)){upper=floating=undefined$1;}if(floating===undefined$1){if(typeof upper=='boolean'){floating=upper;upper=undefined$1;}else if(typeof lower=='boolean'){floating=lower;lower=undefined$1;}}if(lower===undefined$1&&upper===undefined$1){lower=0;upper=1;}else {lower=toFinite(lower);if(upper===undefined$1){upper=lower;lower=0;}else {upper=toFinite(upper);}}if(lower>upper){var temp=lower;lower=upper;upper=temp;}if(floating||lower%1||upper%1){var rand=nativeRandom();return nativeMin(lower+rand*(upper-lower+freeParseFloat('1e-'+((rand+'').length-1))),upper);}return baseRandom(lower,upper);}/*------------------------------------------------------------------------*/ /**
8162
+ */function random(lower,upper,floating){if(floating&&typeof floating!='boolean'&&isIterateeCall(lower,upper,floating)){upper=floating=undefined$1;}if(floating===undefined$1){if(typeof upper=='boolean'){floating=upper;upper=undefined$1;}else if(typeof lower=='boolean'){floating=lower;lower=undefined$1;}}if(lower===undefined$1&&upper===undefined$1){lower=0;upper=1;}else{lower=toFinite(lower);if(upper===undefined$1){upper=lower;lower=0;}else{upper=toFinite(upper);}}if(lower>upper){var temp=lower;lower=upper;upper=temp;}if(floating||lower%1||upper%1){var rand=nativeRandom();return nativeMin(lower+rand*(upper-lower+freeParseFloat('1e-'+((rand+'').length-1))),upper);}return baseRandom(lower,upper);}/*------------------------------------------------------------------------*/ /**
8163
8163
  * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
8164
8164
  *
8165
8165
  * @static
@@ -8437,7 +8437,7 @@ if(!length){length=1;object=undefined$1;}while(++index<length){var value=object=
8437
8437
  *
8438
8438
  * _.repeat('abc', 0);
8439
8439
  * // => ''
8440
- */function repeat(string,n,guard){if(guard?isIterateeCall(string,n,guard):n===undefined$1){n=1;}else {n=toInteger(n);}return baseRepeat(toString(string),n);}/**
8440
+ */function repeat(string,n,guard){if(guard?isIterateeCall(string,n,guard):n===undefined$1){n=1;}else{n=toInteger(n);}return baseRepeat(toString(string),n);}/**
8441
8441
  * Replaces matches for `pattern` in `string` with `replacement`.
8442
8442
  *
8443
8443
  * **Note:** This method is based on
@@ -9869,7 +9869,7 @@ lodash.each=forEach;lodash.eachRight=forEachRight;lodash.first=head;mixin(lodash
9869
9869
  * @type {string}
9870
9870
  */lodash.VERSION=VERSION;// Assign default placeholders.
9871
9871
  arrayEach(['bind','bindKey','curry','curryRight','partial','partialRight'],function(methodName){lodash[methodName].placeholder=lodash;});// Add `LazyWrapper` methods for `_.drop` and `_.take` variants.
9872
- arrayEach(['drop','take'],function(methodName,index){LazyWrapper.prototype[methodName]=function(n){n=n===undefined$1?1:nativeMax(toInteger(n),0);var result=this.__filtered__&&!index?new LazyWrapper(this):this.clone();if(result.__filtered__){result.__takeCount__=nativeMin(n,result.__takeCount__);}else {result.__views__.push({'size':nativeMin(n,MAX_ARRAY_LENGTH),'type':methodName+(result.__dir__<0?'Right':'')});}return result;};LazyWrapper.prototype[methodName+'Right']=function(n){return this.reverse()[methodName](n).reverse();};});// Add `LazyWrapper` methods that accept an `iteratee` value.
9872
+ arrayEach(['drop','take'],function(methodName,index){LazyWrapper.prototype[methodName]=function(n){n=n===undefined$1?1:nativeMax(toInteger(n),0);var result=this.__filtered__&&!index?new LazyWrapper(this):this.clone();if(result.__filtered__){result.__takeCount__=nativeMin(n,result.__takeCount__);}else{result.__views__.push({'size':nativeMin(n,MAX_ARRAY_LENGTH),'type':methodName+(result.__dir__<0?'Right':'')});}return result;};LazyWrapper.prototype[methodName+'Right']=function(n){return this.reverse()[methodName](n).reverse();};});// Add `LazyWrapper` methods that accept an `iteratee` value.
9873
9873
  arrayEach(['filter','map','takeWhile'],function(methodName,index){var type=index+1,isFilter=type==LAZY_FILTER_FLAG||type==LAZY_WHILE_FLAG;LazyWrapper.prototype[methodName]=function(iteratee){var result=this.clone();result.__iteratees__.push({'iteratee':getIteratee(iteratee,3),'type':type});result.__filtered__=result.__filtered__||isFilter;return result;};});// Add `LazyWrapper` methods for `_.head` and `_.last`.
9874
9874
  arrayEach(['head','last'],function(methodName,index){var takeName='take'+(index?'Right':'');LazyWrapper.prototype[methodName]=function(){return this[takeName](1).value()[0];};});// Add `LazyWrapper` methods for `_.initial` and `_.tail`.
9875
9875
  arrayEach(['initial','tail'],function(methodName,index){var dropName='drop'+(index?'':'Right');LazyWrapper.prototype[methodName]=function(){return this.__filtered__?new LazyWrapper(this):this[dropName](1);};});LazyWrapper.prototype.compact=function(){return this.filter(identity);};LazyWrapper.prototype.find=function(predicate){return this.filter(predicate).head();};LazyWrapper.prototype.findLast=function(predicate){return this.reverse().find(predicate);};LazyWrapper.prototype.invokeMap=baseRest(function(path,args){if(typeof path=='function'){return new LazyWrapper(this);}return this.map(function(value){return baseInvoke(value,path,args);});});LazyWrapper.prototype.reject=function(predicate){return this.filter(negate(getIteratee(predicate)));};LazyWrapper.prototype.slice=function(start,end){start=toInteger(start);var result=this;if(result.__filtered__&&(start>0||end<0)){return new LazyWrapper(result);}if(start<0){result=result.takeRight(-start);}else if(start){result=result.drop(start);}if(end!==undefined$1){end=toInteger(end);result=end<0?result.dropRight(-end):result.take(end-start);}return result;};LazyWrapper.prototype.takeRightWhile=function(predicate){return this.reverse().takeWhile(predicate).reverse();};LazyWrapper.prototype.toArray=function(){return this.take(MAX_ARRAY_LENGTH);};// Add `LazyWrapper` methods to `lodash.prototype`.
@@ -9883,13 +9883,13 @@ lodash.prototype.first=lodash.prototype.head;if(symIterator){lodash.prototype[sy
9883
9883
  var _=runInContext();// Some AMD build optimizers, like r.js, check for condition patterns like:
9884
9884
  if(freeModule){// Export for Node.js.
9885
9885
  (freeModule.exports=_)._=_;// Export for CommonJS support.
9886
- freeExports._=_;}else {// Export to the global object.
9886
+ freeExports._=_;}else{// Export to the global object.
9887
9887
  root._=_;}}).call(commonjsGlobal);
9888
9888
  });
9889
9889
 
9890
9890
  /* eslint-disable valid-jsdoc */
9891
9891
  /** insertAfter */
9892
- function insertAfter(newElement, targetElement) {
9892
+ function insertAfter$1(newElement, targetElement) {
9893
9893
  var parent = targetElement.parentNode;
9894
9894
  if (parent.lastChild == targetElement) {
9895
9895
  parent.appendChild(newElement);
@@ -9899,17 +9899,15 @@ function insertAfter(newElement, targetElement) {
9899
9899
  }
9900
9900
  var Status = /*#__PURE__*/function () {
9901
9901
  function Status(jSPlugin, id) {
9902
- _classCallCheck$1(this, Status);
9902
+ _classCallCheck(this, Status);
9903
9903
  this.id = id;
9904
9904
  this.jSPlugin = jSPlugin;
9905
9905
  this.state = {
9906
9906
  play: false,
9907
- loading: false,
9908
- text: ''
9907
+ loading: false
9909
9908
  };
9910
- this.loadingSetText = this.loadingSetText;
9911
9909
  }
9912
- _createClass$1(Status, [{
9910
+ _createClass(Status, [{
9913
9911
  key: "toString",
9914
9912
  value: function toString() {
9915
9913
  return "".concat(this.coreX, "-").concat(this.coreY);
@@ -9947,7 +9945,7 @@ var Status = /*#__PURE__*/function () {
9947
9945
  loadingContainerDOM.style.height = windowHeight;
9948
9946
  loadingContainerDOM.setAttribute('class', 'loading-container');
9949
9947
  // loadingContainerDOM.innerHTML= loading;
9950
- insertAfter(loadingContainerDOM, domElement);
9948
+ insertAfter$1(loadingContainerDOM, domElement);
9951
9949
  var splitBasis = 1;
9952
9950
  var loadingItemContainer = document.createElement('div');
9953
9951
  var loadingStatusDOM = document.createElement('div');
@@ -9970,7 +9968,6 @@ var Status = /*#__PURE__*/function () {
9970
9968
  loadingStatusDOM.innerHTML = "";
9971
9969
  loadingStatusDOM.style.color = "#fff";
9972
9970
  loadingDOM.setAttribute('class', 'loading');
9973
- loadingDOM.setAttribute('id', 'loading-icon');
9974
9971
  var loading = '<svg t="1567069979438" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2399" width="32" height="32"><path d="M538.5344 266.4448a133.12 133.12 0 1 1 133.12-133.12 133.4272 133.4272 0 0 1-133.12 133.12zM255.0144 372.1984a121.6768 121.6768 0 1 1 121.6768-121.6768 121.856 121.856 0 0 1-121.6768 121.6768zM134.72 647.424a107.3664 107.3664 0 1 1 107.3664-107.264A107.52 107.52 0 0 1 134.72 647.424z m120.32 272.4608a90.9824 90.9824 0 1 1 90.9824-90.9824A91.1616 91.1616 0 0 1 255.04 919.8848zM538.5344 1024a79.36 79.36 0 1 1 79.36-79.36 79.36 79.36 0 0 1-79.36 79.36z m287.6928-134.144a64.1792 64.1792 0 1 1 64.1792-64.1792 64.3584 64.3584 0 0 1-64.1792 64.1792z m117.76-296.704a52.6336 52.6336 0 1 1 52.6592-52.6336 52.608 52.608 0 0 1-52.6336 52.6336z m-158.72-338.7136a40.96 40.96 0 1 1 12.0064 28.8512 40.5248 40.5248 0 0 1-12.0064-28.8512z" fill="#ffffff" p-id="2400"></path></svg>';
9975
9972
  loadingDOM.innerHTML = loading;
9976
9973
  loadingItemContainer.appendChild(loadingDOM);
@@ -9978,24 +9975,14 @@ var Status = /*#__PURE__*/function () {
9978
9975
  loadingItemContainer.appendChild(loadingStatusDOM);
9979
9976
  loadingContainerDOM.appendChild(loadingItemContainer);
9980
9977
  }
9981
- }, {
9982
- key: "loadingStop",
9983
- value: function loadingStop(id) {
9984
- var loadingItemContainerDOM = document.getElementById("".concat(id, "-loading-item-0"));
9985
- if (loadingItemContainerDOM) {
9986
- loadingItemContainerDOM.removeChild(document.getElementById('loading-icon'));
9987
- }
9988
- }
9989
9978
  }, {
9990
9979
  key: "loadingSetText",
9991
9980
  value: function loadingSetText(opt) {
9992
- var _this = this;
9993
9981
  this.loadingClearText();
9994
9982
  if (document.getElementById("".concat(this.id, "-loading-item-0"))) {
9995
9983
  var textElement = document.getElementById("".concat(this.id, "-loading-item-0")).childNodes[1];
9996
9984
  if (!textElement) {
9997
9985
  var loadingItemContainer = document.getElementById("".concat(this.id, "-loading-item-0"));
9998
- loadingItemContainer.style.height = '100%';
9999
9986
  textElement = document.createElement('div');
10000
9987
  textElement.innerHTML = opt.text;
10001
9988
  loadingItemContainer.appendChild(textElement);
@@ -10003,13 +9990,6 @@ var Status = /*#__PURE__*/function () {
10003
9990
  textElement.innerHTML = opt.text;
10004
9991
  textElement.style.fontSize = "14px";
10005
9992
  textElement.style.color = opt.color || "#FFFFFF";
10006
- this.state.text = opt.text;
10007
- if (opt.delayClear) {
10008
- //传入delayClear后在指定时间后清除提示语
10009
- setTimeout(function () {
10010
- _this.loadingClearText();
10011
- }, parseInt(opt.delayClear));
10012
- }
10013
9993
  }
10014
9994
  }
10015
9995
  }, {
@@ -10035,9 +10015,6 @@ var Status = /*#__PURE__*/function () {
10035
10015
  if (document.getElementById("".concat(this.id, "-loading-id-0"))) {
10036
10016
  document.getElementById("".concat(this.id, "-loading-id-0")).style.background = 'none';
10037
10017
  }
10038
- if (document.getElementById('loading-icon')) {
10039
- document.getElementById('loading-icon').parentNode.removeChild(document.getElementById('loading-icon'));
10040
- }
10041
10018
  }
10042
10019
  }
10043
10020
  }, {
@@ -10059,7 +10036,7 @@ var Status = /*#__PURE__*/function () {
10059
10036
 
10060
10037
  var Message = /*#__PURE__*/function () {
10061
10038
  function Message(jSPlugin, id) {
10062
- _classCallCheck$1(this, Message);
10039
+ _classCallCheck(this, Message);
10063
10040
  this.id = id;
10064
10041
  this.jSPlugin = jSPlugin;
10065
10042
  this.timer = null;
@@ -10068,7 +10045,7 @@ var Message = /*#__PURE__*/function () {
10068
10045
  loading: false
10069
10046
  };
10070
10047
  }
10071
- _createClass$1(Message, [{
10048
+ _createClass(Message, [{
10072
10049
  key: "default",
10073
10050
  value: function _default(msg) {
10074
10051
  var _this = this;
@@ -10092,7 +10069,7 @@ var Message = /*#__PURE__*/function () {
10092
10069
  return Message;
10093
10070
  }();
10094
10071
 
10095
- var data$8 = [
10072
+ var data = [
10096
10073
  {
10097
10074
  moduleCode: "",
10098
10075
  detailCode: "405984",
@@ -10191,6 +10168,13 @@ var data$8 = [
10191
10168
  solution: "",
10192
10169
  updateTime: 1555497522000
10193
10170
  },
10171
+ {
10172
+ moduleCode: "",
10173
+ detailCode: "395416",
10174
+ description: "设备达到最大连接数,无法建立连接",
10175
+ solution: "请升级设备固件版本",
10176
+ updateTime: 1555394722000
10177
+ },
10194
10178
  {
10195
10179
  moduleCode: "",
10196
10180
  detailCode: "100001",
@@ -12368,6 +12352,13 @@ var data$8 = [
12368
12352
  solution: "",
12369
12353
  updateTime: 1522288195000
12370
12354
  },
12355
+ {
12356
+ moduleCode: "",
12357
+ detailCode: "395454",
12358
+ description: "",
12359
+ solution: "",
12360
+ updateTime: 1522220180000
12361
+ },
12371
12362
  {
12372
12363
  moduleCode: "",
12373
12364
  detailCode: "100005",
@@ -12477,7 +12468,6 @@ var data$8 = [
12477
12468
  moduleCode: "",
12478
12469
  detailCode: "395000",
12479
12470
  description: "cas回复信令,发现内存已经释放(和设备之间异常断开)",
12480
- msg: "播放失败请重试",
12481
12471
  solution: "检查设备网络;刷新重试",
12482
12472
  updateTime: 1522034841000
12483
12473
  },
@@ -12485,7 +12475,6 @@ var data$8 = [
12485
12475
  moduleCode: "",
12486
12476
  detailCode: "395400",
12487
12477
  description: "私有化协议vtm检测私有化协议中码流类型小于0或者设备序列号为空等非法参数场景返回(app不重试取流)",
12488
- msg: "播放失败请重试",
12489
12478
  solution: "刷新重试",
12490
12479
  updateTime: 1522034841000
12491
12480
  },
@@ -12493,7 +12482,6 @@ var data$8 = [
12493
12482
  moduleCode: "",
12494
12483
  detailCode: "395402",
12495
12484
  description: "回放找不到录像文件",
12496
- msg: "回放找不到录像文件,本地存储请检查存储卡是否接触良好",
12497
12485
  solution: "检查是否有存储卡并且接触良好",
12498
12486
  updateTime: 1522034841000
12499
12487
  },
@@ -12501,7 +12489,6 @@ var data$8 = [
12501
12489
  moduleCode: "",
12502
12490
  detailCode: "395403",
12503
12491
  description: "操作码或信令密钥与设备不匹配",
12504
- msg: "播放失败",
12505
12492
  solution: "",
12506
12493
  updateTime: 1522034841000
12507
12494
  },
@@ -12510,14 +12497,12 @@ var data$8 = [
12510
12497
  detailCode: "395404",
12511
12498
  description: "设备不在线",
12512
12499
  solution: "检查设备网络;重启设备接入萤石云",
12513
- msg: "设备不在线,请检查设备网络或重启设备接入萤石云",
12514
12500
  updateTime: 1522034841000
12515
12501
  },
12516
12502
  {
12517
12503
  moduleCode: "",
12518
12504
  detailCode: "395405",
12519
12505
  description: "流媒体向设备发送或接受信令超时/cas响应超时",
12520
- msg: "播放失败,请检查设备网络或重启设备",
12521
12506
  solution: "检查设备网络;重启设备",
12522
12507
  updateTime: 1522034841000
12523
12508
  },
@@ -12525,7 +12510,6 @@ var data$8 = [
12525
12510
  moduleCode: "",
12526
12511
  detailCode: "395406",
12527
12512
  description: "token失效",
12528
- msg: "播放失败请重试或重启设备",
12529
12513
  solution: "刷新重试或者重启设备",
12530
12514
  updateTime: 1522034841000
12531
12515
  },
@@ -12533,7 +12517,6 @@ var data$8 = [
12533
12517
  moduleCode: "",
12534
12518
  detailCode: "395407",
12535
12519
  description: "客户端的URL格式错误",
12536
- msg: "播放失败请重试",
12537
12520
  solution: "刷新重试",
12538
12521
  updateTime: 1522034841000
12539
12522
  },
@@ -12541,7 +12524,6 @@ var data$8 = [
12541
12524
  moduleCode: "",
12542
12525
  detailCode: "395409",
12543
12526
  description: "预览开启隐私保护",
12544
- msg: "播放失败请关闭隐私遮蔽",
12545
12527
  solution: "",
12546
12528
  updateTime: 1522034841000
12547
12529
  },
@@ -12556,15 +12538,13 @@ var data$8 = [
12556
12538
  moduleCode: "",
12557
12539
  detailCode: "395411",
12558
12540
  description: "token无权限",
12559
- msg: "播放失败",
12560
12541
  solution: "刷新重试",
12561
12542
  updateTime: 1522034841000
12562
12543
  },
12563
12544
  {
12564
12545
  moduleCode: "",
12565
12546
  detailCode: "395412",
12566
- description: "session不存在",
12567
- msg: "播放失败",
12547
+ description: "session不存在 ",
12568
12548
  solution: "",
12569
12549
  updateTime: 1522034841000
12570
12550
  },
@@ -12572,7 +12552,6 @@ var data$8 = [
12572
12552
  moduleCode: "",
12573
12553
  detailCode: "395413",
12574
12554
  description: "验证token的他异常(不具体) ",
12575
- msg: "播放失败请重试",
12576
12555
  solution: "刷新重试",
12577
12556
  updateTime: 1522034841000
12578
12557
  },
@@ -12580,15 +12559,6 @@ var data$8 = [
12580
12559
  moduleCode: "",
12581
12560
  detailCode: "395415",
12582
12561
  description: "设备通道错",
12583
- msg: "播放失败请重试",
12584
- solution: "刷新重试",
12585
- updateTime: 1522034841000
12586
- },
12587
- {
12588
- moduleCode: "",
12589
- detailCode: "395416",
12590
- description: "设备资源受限",
12591
- msg: "播放失败请重试",
12592
12562
  solution: "刷新重试",
12593
12563
  updateTime: 1522034841000
12594
12564
  },
@@ -12596,87 +12566,20 @@ var data$8 = [
12596
12566
  moduleCode: "",
12597
12567
  detailCode: "395451",
12598
12568
  description: "设备不支持的码流类型",
12599
- msg: "播放失败请重试或切换设备码流",
12600
12569
  solution: "刷新重试或者切换到高清模式",
12601
12570
  updateTime: 1522034841000
12602
12571
  },
12603
12572
  {
12604
12573
  moduleCode: "",
12605
12574
  detailCode: "395452",
12606
- description: "设备链接流媒体服务器失败",
12607
- msg: "播放失败,请检查设备网络或重启设备或重新加载",
12575
+ description: "设备链接流媒体服务器失败 ",
12608
12576
  solution: "检查设备网络,重启设备,刷新重试",
12609
12577
  updateTime: 1522034841000
12610
12578
  },
12611
- {
12612
- moduleCode: "",
12613
- detailCode: "395454",
12614
- description: "流媒体中关于设备取流会话不存在",
12615
- msg: "播放失败请重试",
12616
- solution: "流媒体中关于设备取流会话不存在",
12617
- updateTime: 1522220180000
12618
- },
12619
- {
12620
- moduleCode: "",
12621
- detailCode: "395455",
12622
- description: "设备通道未关联",
12623
- msg: "播放失败,请检查设备通道是否关联",
12624
- solution: "检查设备通道是否关联",
12625
- updateTime: 1522220180000
12626
- },
12627
- {
12628
- moduleCode: "",
12629
- detailCode: "395456",
12630
- description: "设备通道关联设备不在线",
12631
- msg: "播放失败,请检查设备通道是否上线",
12632
- solution: "检查设备通道是否上线",
12633
- updateTime: 1522220180000
12634
- },
12635
- {
12636
- moduleCode: "",
12637
- detailCode: "395457",
12638
- description: "客户端不支持端到端加密",
12639
- msg: "播放失败",
12640
- solution: "客户端不支持端到端加密",
12641
- updateTime: 1522220180000
12642
- },
12643
- {
12644
- moduleCode: "",
12645
- detailCode: "395458",
12646
- description: "设备不支持当前并发ECDH密",
12647
- msg: "客户端不支持端到端加密",
12648
- solution: "设备不支持当前并发ECDH密",
12649
- updateTime: 1522220180000
12650
- },
12651
- {
12652
- moduleCode: "",
12653
- detailCode: "395459",
12654
- description: "VTDU 处理ECDH 加密失败",
12655
- msg: "播放失败",
12656
- solution: "VTDU 处理ECDH 加密失败",
12657
- updateTime: 1522220180000
12658
- },
12659
- {
12660
- moduleCode: "",
12661
- detailCode: "395460",
12662
- description: "流媒体中关于设备取流会话不存在",
12663
- msg: "播放失败请重试",
12664
- solution: "流媒体中关于设备取流会话不存在",
12665
- updateTime: 1522220180000
12666
- },
12667
- {
12668
- moduleCode: "",
12669
- detailCode: "395492",
12670
- description: "设备不支持的命令",
12671
- msg: "操作失败,设备不支持",
12672
- solution: "",
12673
- updateTime: 1522220180000
12674
- },
12675
12579
  {
12676
12580
  moduleCode: "",
12677
12581
  detailCode: "395500",
12678
- description: "服务器处理失败",
12679
- msg: "播放失败请重试",
12582
+ description: "服务器处理失败 ",
12680
12583
  solution: "刷新重试",
12681
12584
  updateTime: 1522034841000
12682
12585
  },
@@ -12684,7 +12587,6 @@ var data$8 = [
12684
12587
  moduleCode: "",
12685
12588
  detailCode: "395501",
12686
12589
  description: "流媒体vtdu达到最大负载,请扩容",
12687
- msg: "播放失败请重试",
12688
12590
  solution: "服务器负载达到上限,请稍后重试",
12689
12591
  updateTime: 1522034841000
12690
12592
  },
@@ -12692,47 +12594,20 @@ var data$8 = [
12692
12594
  moduleCode: "",
12693
12595
  detailCode: "395503",
12694
12596
  description: "vtm返回分配vtdu失败",
12695
- msg: "播放失败请重试",
12696
- solution: "vtdu服务异常,请请稍后重试",
12697
- updateTime: 1522034841000
12698
- },
12699
- {
12700
- moduleCode: "",
12701
- detailCode: "395504",
12702
- description: "流媒体vtdu达到最大负载",
12703
- msg: "播放失败请重试",
12704
12597
  solution: "服务器负载达到上限,请稍后重试",
12705
12598
  updateTime: 1522034841000
12706
12599
  },
12707
- {
12708
- moduleCode: "",
12709
- detailCode: "395505",
12710
- description: "vtm ecdh解密失败",
12711
- msg: "播放失败",
12712
- solution: "",
12713
- updateTime: 1522034841000
12714
- },
12715
- {
12716
- moduleCode: "",
12717
- detailCode: "395506",
12718
- description: "vtm 返回IPC不支持取流(需要IPC添加NVR后支持)",
12719
- msg: "播放失败,请绑定NVR使用",
12720
- solution: "IPC绑定NVR使用",
12721
- updateTime: 1522034841000
12722
- },
12723
12600
  {
12724
12601
  moduleCode: "",
12725
12602
  detailCode: "395544",
12726
- description: "设备返回无视频源",
12727
- msg: "播放失败,请检查设备接触情况",
12728
- solution: "设备是否接触良好; 如果一直无法解决,请联系技术支持",
12603
+ description: "设备返回无视频源 ",
12604
+ solution: "设备是否接触良好;",
12729
12605
  updateTime: 1522034841000
12730
12606
  },
12731
12607
  {
12732
12608
  moduleCode: "",
12733
12609
  detailCode: "395545",
12734
12610
  description: "视频分享时间已经结束",
12735
- msg: "视频分享时间已结束",
12736
12611
  solution: "",
12737
12612
  updateTime: 1522034841000
12738
12613
  },
@@ -12740,23 +12615,13 @@ var data$8 = [
12740
12615
  moduleCode: "",
12741
12616
  detailCode: "395546",
12742
12617
  description: "vtdu返回达到取流并发路数限制",
12743
- msg: "并发上限,请升级为企业版",
12744
12618
  solution: "请升级为企业版,放开并发限制",
12745
12619
  updateTime: 1522034841000
12746
12620
  },
12747
12621
  {
12748
12622
  moduleCode: "",
12749
- detailCode: "395547",
12750
- description: "vtdu返回开放平台用户并发限制",
12751
- msg: "并发上限,请升级为企业版",
12752
- solution: "请确定开放平台用户预览是否超过用户并发数量限制",
12753
- updateTime: 1522034841000
12754
- },
12755
- {
12756
- moduleCode: "",
12757
- detailCode: "395556",
12758
- description: "ticket校验失败",
12759
- msg: "播放失败",
12623
+ detailCode: "395560",
12624
+ description: "蚁兵代理不支持的用户取流类型,会重定向到vtdu取流",
12760
12625
  solution: "",
12761
12626
  updateTime: 1522034841000
12762
12627
  },
@@ -12764,95 +12629,13 @@ var data$8 = [
12764
12629
  moduleCode: "",
12765
12630
  detailCode: "395557",
12766
12631
  description: "回放服务器等待流头超时",
12767
- msg: "播放失败请重试",
12768
12632
  solution: "刷新重试,检测设备网络,重启设备",
12769
12633
  updateTime: 1522034841000
12770
12634
  },
12771
- {
12772
- moduleCode: "",
12773
- detailCode: "395558",
12774
- description: "查找录像开始时间错误",
12775
- msg: "播放失败",
12776
- solution: "",
12777
- updateTime: 1522034841000
12778
- },
12779
- {
12780
- moduleCode: "",
12781
- detailCode: "395560",
12782
- description: "群组分享取流二次验证失败",
12783
- msg: "播放失败",
12784
- solution: "",
12785
- updateTime: 1522034841000
12786
- },
12787
- {
12788
- moduleCode: "",
12789
- detailCode: "395561",
12790
- description: "分享群组用户被锁住",
12791
- msg: "播放失败",
12792
- solution: "",
12793
- updateTime: 1522034841000
12794
- },
12795
- {
12796
- moduleCode: "",
12797
- detailCode: "395562",
12798
- description: "群组分享用户权限变更",
12799
- msg: "播放失败",
12800
- solution: "",
12801
- updateTime: 1522034841000
12802
- },
12803
- {
12804
- moduleCode: "",
12805
- detailCode: "395563",
12806
- description: "认证服务连接失败",
12807
- msg: "播放失败请重试",
12808
- solution: "",
12809
- updateTime: 1522034841000
12810
- },
12811
- {
12812
- moduleCode: "",
12813
- detailCode: "395564",
12814
- description: "认证超时",
12815
- msg: "播放失败请重试",
12816
- solution: "",
12817
- updateTime: 1522034841000
12818
- },
12819
- {
12820
- moduleCode: "",
12821
- detailCode: "395566",
12822
- description: "不在分享时间内预览",
12823
- msg: "播放失败",
12824
- solution: "",
12825
- updateTime: 1522034841000
12826
- },
12827
- {
12828
- moduleCode: "",
12829
- detailCode: "395567",
12830
- description: "分享通道被锁定",
12831
- msg: "播放失败",
12832
- solution: "",
12833
- updateTime: 1522034841000
12834
- },
12835
- {
12836
- moduleCode: "",
12837
- detailCode: "395568",
12838
- description: "未找到认证类型",
12839
- msg: "播放失败",
12840
- solution: "",
12841
- updateTime: 1522034841000
12842
- },
12843
- {
12844
- moduleCode: "",
12845
- detailCode: "395569",
12846
- description: "认证返回的参数异常",
12847
- msg: "播放失败",
12848
- solution: "",
12849
- updateTime: 1522034841000
12850
- },
12851
12635
  {
12852
12636
  moduleCode: "",
12853
12637
  detailCode: "395600",
12854
12638
  description: "分享设备不在分享时间内",
12855
- msg: "播放失败",
12856
12639
  solution: "",
12857
12640
  updateTime: 1522034841000
12858
12641
  },
@@ -12860,7 +12643,6 @@ var data$8 = [
12860
12643
  moduleCode: "",
12861
12644
  detailCode: "395601",
12862
12645
  description: "群组分享用户没权限",
12863
- msg: "播放失败",
12864
12646
  solution: "",
12865
12647
  updateTime: 1522034841000
12866
12648
  },
@@ -12868,23 +12650,13 @@ var data$8 = [
12868
12650
  moduleCode: "",
12869
12651
  detailCode: "395602",
12870
12652
  description: "群组分享权限变更",
12871
- msg: "播放失败",
12872
- solution: "",
12873
- updateTime: 1522034841000
12874
- },
12875
- {
12876
- moduleCode: "",
12877
- detailCode: "395610",
12878
- description: "接收流头失败",
12879
- msg: "播放失败请重试并检查设备网络情况以及设备配置",
12880
12653
  solution: "",
12881
12654
  updateTime: 1522034841000
12882
12655
  },
12883
12656
  {
12884
12657
  moduleCode: "",
12885
- detailCode: "395620",
12886
- description: "心跳超时",
12887
- msg: "播放失败请重试并检查设备网络情况以及设备配置",
12658
+ detailCode: "395556",
12659
+ description: "ticket取流验证失败",
12888
12660
  solution: "",
12889
12661
  updateTime: 1522034841000
12890
12662
  },
@@ -12892,7 +12664,6 @@ var data$8 = [
12892
12664
  moduleCode: "",
12893
12665
  detailCode: "395530",
12894
12666
  description: "机房故障不可用",
12895
- msg: "播放失败请重试",
12896
12667
  solution: "刷新重试",
12897
12668
  updateTime: 1522034841000
12898
12669
  },
@@ -12900,23 +12671,6 @@ var data$8 = [
12900
12671
  moduleCode: "",
12901
12672
  detailCode: "395701",
12902
12673
  description: "cas信令返回格式错误",
12903
- msg: "播放失败请重试",
12904
- solution: "刷新重试",
12905
- updateTime: 1522034841000
12906
- },
12907
- {
12908
- moduleCode: "",
12909
- detailCode: "395702",
12910
- description: "SPGW请求Cas、Status透传超时",
12911
- msg: "播放失败请重试",
12912
- solution: "刷新重试",
12913
- updateTime: 1522034841000
12914
- },
12915
- {
12916
- moduleCode: "",
12917
- detailCode: "395703",
12918
- description: "SPGW请求http不通",
12919
- msg: "播放失败请重试",
12920
12674
  solution: "刷新重试",
12921
12675
  updateTime: 1522034841000
12922
12676
  },
@@ -12924,7 +12678,6 @@ var data$8 = [
12924
12678
  moduleCode: "",
12925
12679
  detailCode: "396001",
12926
12680
  description: "客户端参数出错",
12927
- msg: "播放失败请重试",
12928
12681
  solution: "刷新重试",
12929
12682
  updateTime: 1522034841000
12930
12683
  },
@@ -12939,7 +12692,6 @@ var data$8 = [
12939
12692
  moduleCode: "",
12940
12693
  detailCode: "396101",
12941
12694
  description: "不支持的命令",
12942
- msg: "播放失败请重试",
12943
12695
  solution: "刷新重试",
12944
12696
  updateTime: 1522034841000
12945
12697
  },
@@ -12947,7 +12699,6 @@ var data$8 = [
12947
12699
  moduleCode: "",
12948
12700
  detailCode: "396102",
12949
12701
  description: "设备流头发送失败",
12950
- msg: "播放失败请重试",
12951
12702
  solution: "",
12952
12703
  updateTime: 1522034841000
12953
12704
  },
@@ -12955,7 +12706,6 @@ var data$8 = [
12955
12706
  moduleCode: "",
12956
12707
  detailCode: "396103",
12957
12708
  description: "cas/设备返回错误1",
12958
- msg: "播放失败请重试",
12959
12709
  solution: "刷新重试",
12960
12710
  updateTime: 1522034841000
12961
12711
  },
@@ -12963,7 +12713,6 @@ var data$8 = [
12963
12713
  moduleCode: "",
12964
12714
  detailCode: "396104",
12965
12715
  description: "cas/设备返回错误-1",
12966
- msg: "播放失败请重试",
12967
12716
  solution: "刷新重试",
12968
12717
  updateTime: 1522034841000
12969
12718
  },
@@ -12971,7 +12720,6 @@ var data$8 = [
12971
12720
  moduleCode: "",
12972
12721
  detailCode: "396105",
12973
12722
  description: "设备返回错误码3",
12974
- msg: "播放失败请重试",
12975
12723
  solution: "刷新重试",
12976
12724
  updateTime: 1522034841000
12977
12725
  },
@@ -12979,7 +12727,6 @@ var data$8 = [
12979
12727
  moduleCode: "",
12980
12728
  detailCode: "396106",
12981
12729
  description: "设备返回错误码4",
12982
- msg: "播放失败请重试",
12983
12730
  solution: "刷新重试",
12984
12731
  updateTime: 1522034841000
12985
12732
  },
@@ -12987,7 +12734,6 @@ var data$8 = [
12987
12734
  moduleCode: "",
12988
12735
  detailCode: "396107",
12989
12736
  description: "设备返回错误码5",
12990
- msg: "播放失败请重试",
12991
12737
  solution: "刷新重试",
12992
12738
  updateTime: 1522034841000
12993
12739
  },
@@ -12995,7 +12741,6 @@ var data$8 = [
12995
12741
  moduleCode: "",
12996
12742
  detailCode: "396108",
12997
12743
  description: "cas信令回应重复",
12998
- msg: "播放失败请重试",
12999
12744
  solution: "刷新重试",
13000
12745
  updateTime: 1522034841000
13001
12746
  },
@@ -13010,7 +12755,6 @@ var data$8 = [
13010
12755
  moduleCode: "",
13011
12756
  detailCode: "396110",
13012
12757
  description: "设备信令默认错误",
13013
- msg: "播放失败请重试",
13014
12758
  solution: "",
13015
12759
  updateTime: 1522034841000
13016
12760
  },
@@ -13018,7 +12762,6 @@ var data$8 = [
13018
12762
  moduleCode: "",
13019
12763
  detailCode: "396501",
13020
12764
  description: "设备数据链路和实际链路不匹配",
13021
- msg: "播放失败请重试",
13022
12765
  solution: "刷新重试",
13023
12766
  updateTime: 1522034841000
13024
12767
  },
@@ -13026,7 +12769,6 @@ var data$8 = [
13026
12769
  moduleCode: "",
13027
12770
  detailCode: "396502",
13028
12771
  description: "设备数据链路重复建立连接",
13029
- msg: "播放失败请重试",
13030
12772
  solution: "刷新重试",
13031
12773
  updateTime: 1522034841000
13032
12774
  },
@@ -13034,7 +12776,6 @@ var data$8 = [
13034
12776
  moduleCode: "",
13035
12777
  detailCode: "396503",
13036
12778
  description: "设备数据链路端口不匹配",
13037
- msg: "播放失败请重试",
13038
12779
  solution: "刷新重试",
13039
12780
  updateTime: 1522034841000
13040
12781
  },
@@ -13042,7 +12783,6 @@ var data$8 = [
13042
12783
  moduleCode: "",
13043
12784
  detailCode: "396504",
13044
12785
  description: "缓存设备数据链路失败(内存块不足)",
13045
- msg: "播放失败请重试",
13046
12786
  solution: "刷新重试",
13047
12787
  updateTime: 1522034841000
13048
12788
  },
@@ -13050,7 +12790,6 @@ var data$8 = [
13050
12790
  moduleCode: "",
13051
12791
  detailCode: "396505",
13052
12792
  description: "设备发送确认头消息重复",
13053
- msg: "播放失败请重试",
13054
12793
  solution: "刷新重试",
13055
12794
  updateTime: 1522034841000
13056
12795
  },
@@ -13058,7 +12797,6 @@ var data$8 = [
13058
12797
  moduleCode: "",
13059
12798
  detailCode: "396506",
13060
12799
  description: "设备数据先于确定头部到达",
13061
- msg: "播放失败请重试",
13062
12800
  solution: "刷新重试",
13063
12801
  updateTime: 1522034841000
13064
12802
  },
@@ -13066,7 +12804,6 @@ var data$8 = [
13066
12804
  moduleCode: "",
13067
12805
  detailCode: "396508",
13068
12806
  description: "设备数据头部长度非法",
13069
- msg: "播放失败请重试或重启设备",
13070
12807
  solution: "刷新重试,或者重启设备",
13071
12808
  updateTime: 1522034841000
13072
12809
  },
@@ -13074,7 +12811,6 @@ var data$8 = [
13074
12811
  moduleCode: "",
13075
12812
  detailCode: "396509",
13076
12813
  description: "索引找不到设备数据管理块",
13077
- msg: "播放失败请重试",
13078
12814
  solution: "刷新重试",
13079
12815
  updateTime: 1522034841000
13080
12816
  },
@@ -13082,7 +12818,6 @@ var data$8 = [
13082
12818
  moduleCode: "",
13083
12819
  detailCode: "396510",
13084
12820
  description: "设备数据链路vtdu内存块协议状态不匹配",
13085
- msg: "播放失败请重试或重启设备",
13086
12821
  solution: "",
13087
12822
  updateTime: 1522034841000
13088
12823
  },
@@ -13090,7 +12825,6 @@ var data$8 = [
13090
12825
  moduleCode: "",
13091
12826
  detailCode: "396511",
13092
12827
  description: "设备数据头部没有streamkey错误",
13093
- msg: "播放失败请重试或重启设备",
13094
12828
  solution: "",
13095
12829
  updateTime: 1522034841000
13096
12830
  },
@@ -13098,7 +12832,6 @@ var data$8 = [
13098
12832
  moduleCode: "",
13099
12833
  detailCode: "396512",
13100
12834
  description: "设备数据头部非法(较笼统)",
13101
- msg: "播放失败请重试或重启设备",
13102
12835
  solution: "",
13103
12836
  updateTime: 1522034841000
13104
12837
  },
@@ -13106,7 +12839,6 @@ var data$8 = [
13106
12839
  moduleCode: "",
13107
12840
  detailCode: "396513",
13108
12841
  description: "设备数据长度过小",
13109
- msg: "播放失败请重试或重启设备",
13110
12842
  solution: "",
13111
12843
  updateTime: 1522034841000
13112
12844
  },
@@ -13114,7 +12846,6 @@ var data$8 = [
13114
12846
  moduleCode: "",
13115
12847
  detailCode: "396514",
13116
12848
  description: "设备老协议推流头部没有streamkey错误",
13117
- msg: "播放失败请重试或重启设备",
13118
12849
  solution: "",
13119
12850
  updateTime: 1522034841000
13120
12851
  },
@@ -13122,7 +12853,6 @@ var data$8 = [
13122
12853
  moduleCode: "",
13123
12854
  detailCode: "396515",
13124
12855
  description: "设备老协议推流数据非法",
13125
- msg: "播放失败请重试或重启设备",
13126
12856
  solution: "",
13127
12857
  updateTime: 1522034841000
13128
12858
  },
@@ -13130,7 +12860,6 @@ var data$8 = [
13130
12860
  moduleCode: "",
13131
12861
  detailCode: "396516",
13132
12862
  description: "设备老协议索引找不到内存管理块",
13133
- msg: "播放失败请重试或重启设备",
13134
12863
  solution: "",
13135
12864
  updateTime: 1522034841000
13136
12865
  },
@@ -13138,7 +12867,6 @@ var data$8 = [
13138
12867
  moduleCode: "",
13139
12868
  detailCode: "396517",
13140
12869
  description: "设备老协议推流数据非法",
13141
- msg: "播放失败请重试或重启设备",
13142
12870
  solution: "",
13143
12871
  updateTime: 1522034841000
13144
12872
  },
@@ -13146,7 +12874,6 @@ var data$8 = [
13146
12874
  moduleCode: "",
13147
12875
  detailCode: "396518",
13148
12876
  description: "设备数据包过大",
13149
- msg: "播放失败请重试或重启设备",
13150
12877
  solution: "刷新重试,或者重启设备",
13151
12878
  updateTime: 1522034841000
13152
12879
  },
@@ -13154,7 +12881,6 @@ var data$8 = [
13154
12881
  moduleCode: "",
13155
12882
  detailCode: "396519",
13156
12883
  description: "设备推流链路网络不稳定",
13157
- msg: "播放失败,请重试或重启设备",
13158
12884
  solution: "",
13159
12885
  updateTime: 1522034841000
13160
12886
  },
@@ -13162,103 +12888,6 @@ var data$8 = [
13162
12888
  moduleCode: "",
13163
12889
  detailCode: "396520",
13164
12890
  description: "设备推流链路网络不稳定(默认)",
13165
- msg: "播放失败请重试或重启设备",
13166
- solution: "",
13167
- updateTime: 1522034841000
13168
- },
13169
- {
13170
- moduleCode: "",
13171
- detailCode: "396700",
13172
- description: "异常数据包",
13173
- msg: "播放失败,设备重启",
13174
- solution: "",
13175
- updateTime: 1522034841000
13176
- },
13177
- {
13178
- moduleCode: "",
13179
- detailCode: "396701",
13180
- description: "回放结束数据包",
13181
- msg: "回放结束",
13182
- solution: "",
13183
- updateTime: 1522034841000
13184
- },
13185
- {
13186
- moduleCode: "",
13187
- detailCode: "397001",
13188
- description: "与相应服务连接失败",
13189
- msg: "播放失败请重试,请检查设备网络情况以及连接情况",
13190
- solution: "",
13191
- updateTime: 1522034841000
13192
- },
13193
- {
13194
- moduleCode: "",
13195
- detailCode: "397002",
13196
- description: "与相应服务连接失败",
13197
- msg: "播放失败请重试,请检查设备网络情况以及连接情况",
13198
- solution: "",
13199
- updateTime: 1522034841000
13200
- },
13201
- {
13202
- moduleCode: "",
13203
- detailCode: "397003",
13204
- description: "与相应服务连接失败",
13205
- msg: "播放失败请重试,请检查设备网络情况以及连接情况",
13206
- solution: "",
13207
- updateTime: 1522034841000
13208
- },
13209
- {
13210
- moduleCode: "",
13211
- detailCode: "397004",
13212
- description: "与相应服务连接失败",
13213
- msg: "播放失败请重试,请检查设备网络情况以及连接情况",
13214
- solution: "",
13215
- updateTime: 1522034841000
13216
- },
13217
- {
13218
- moduleCode: "",
13219
- detailCode: "397005",
13220
- description: "VTDU连接失败,或VTDU侧断开连接",
13221
- msg: "播放失败请重试,请检查设备网络情况以及连接情况",
13222
- solution: "",
13223
- updateTime: 1522034841000
13224
- },
13225
- {
13226
- moduleCode: "",
13227
- detailCode: "397006",
13228
- description: "vtm断开连接(无需 关注)",
13229
- msg: "播放失败请重试,请检查设备网络情况以及连接情况",
13230
- solution: "",
13231
- updateTime: 1522034841000
13232
- },
13233
- {
13234
- moduleCode: "",
13235
- detailCode: "397007",
13236
- description: "客户端发送缓冲区满(上行带宽太小)",
13237
- msg: "播放失败,上行带宽过小请检查设备网络情况",
13238
- solution: "",
13239
- updateTime: 1522034841000
13240
- },
13241
- {
13242
- moduleCode: "",
13243
- detailCode: "399000",
13244
- description: "无效包,包过大",
13245
- msg: " 检查设备重启设备",
13246
- solution: "",
13247
- updateTime: 1522034841000
13248
- },
13249
- {
13250
- moduleCode: "",
13251
- detailCode: "399001",
13252
- description: "地址不合法",
13253
- msg: "播放失败",
13254
- solution: "",
13255
- updateTime: 1522034841000
13256
- },
13257
- {
13258
- moduleCode: "",
13259
- detailCode: "399002",
13260
- description: "缺少端口",
13261
- msg: " 播放失败",
13262
12891
  solution: "",
13263
12892
  updateTime: 1522034841000
13264
12893
  },
@@ -15728,21 +15357,21 @@ var data$8 = [
15728
15357
  }
15729
15358
  ];
15730
15359
  var code = "200";
15731
- var msg$1 = "操作成功!";
15360
+ var msg = "操作成功!";
15732
15361
  var errorCode = {
15733
- data: data$8,
15362
+ data: data,
15734
15363
  code: code,
15735
- msg: msg$1
15364
+ msg: msg
15736
15365
  };
15737
15366
 
15738
15367
  var Code = /*#__PURE__*/function () {
15739
15368
  function Code(x, y) {
15740
- _classCallCheck$1(this, Code);
15369
+ _classCallCheck(this, Code);
15741
15370
  this.coreX = x;
15742
15371
  this.coreY = y;
15743
15372
  console.log("ErrorCode", errorCode);
15744
15373
  }
15745
- _createClass$1(Code, [{
15374
+ _createClass(Code, [{
15746
15375
  key: "toString",
15747
15376
  value: function toString() {
15748
15377
  return "".concat(this.coreX, "-").concat(this.coreY);
@@ -15802,7 +15431,7 @@ var defaultTheme = {
15802
15431
  };
15803
15432
 
15804
15433
  // 通用请求方法
15805
- var TimeLine$1 = function TimeLine(jsPlugin) {
15434
+ var TimeLine = function TimeLine(jsPlugin) {
15806
15435
  this.jsPlugin = jsPlugin;
15807
15436
  var status = {
15808
15437
  isMouseDown: false,
@@ -15911,21 +15540,6 @@ var TimeLine$1 = function TimeLine(jsPlugin) {
15911
15540
  that.mouseUpFn(e, callback);
15912
15541
  });
15913
15542
  };
15914
- TimeLine.prototype.setWidth = function (params) {
15915
- var _this2 = this;
15916
- var that = this;
15917
- if (params.width) {
15918
- document.getElementById(this.jsPlugin.id).style.width = params.width;
15919
- document.getElementById("".concat(this.jsPlugin.id, "-canvas")).style.width = params.width;
15920
- document.getElementById("".concat(this.jsPlugin.id, "-canvas-container")).style.width = params.width;
15921
- that.canvasWidth = params.width;
15922
- setTimeout(function () {
15923
- _this2.updata({
15924
- time: new Date()
15925
- });
15926
- }, 500);
15927
- }
15928
- };
15929
15543
  TimeLine.prototype.mousemove = function (e) {
15930
15544
  // console.log("鼠标移动",e)
15931
15545
  if (this.isMouseDown && this.isOver) {
@@ -16082,10 +15696,10 @@ var TimeLine$1 = function TimeLine(jsPlugin) {
16082
15696
  that.drawOtherMsg(); // 画录像的其他信息
16083
15697
  // 12-10
16084
15698
  //that.$emit('update-time', that.nowTime);
16085
- document.getElementById("".concat(this.jsPlugin.id, "-canvas-container")).style.width = that.options.width + 'px';
16086
- document.getElementById("".concat(this.jsPlugin.id, "-canvas")).style.width = that.options.width + 'px';
16087
- document.getElementById("".concat(this.jsPlugin.id, "-canvas-container")).style.height = that.options.height + 'px';
16088
- document.getElementById("".concat(this.jsPlugin.id, "-canvas")).style.height = that.options.height + 'px';
15699
+ document.getElementById("".concat(this.jsPlugin.id, "-canvas-container")).style.width = this.options.width + 'px';
15700
+ document.getElementById("".concat(this.jsPlugin.id, "-canvas")).style.width = this.options.width + 'px';
15701
+ document.getElementById("".concat(this.jsPlugin.id, "-canvas-container")).style.height = this.options.height + 'px';
15702
+ document.getElementById("".concat(this.jsPlugin.id, "-canvas")).style.height = this.options.height + 'px';
16089
15703
  };
16090
15704
  TimeLine.prototype.drawSolidLine = function (startX, startY, endX, endY, lineWidth, color) {
16091
15705
  this.drawPen.save();
@@ -16145,8 +15759,8 @@ var TimeLine$1 = function TimeLine(jsPlugin) {
16145
15759
  // 只画一次线
16146
15760
  that.drawSolidLine(i * that.canvasWidth / dotNum, 8, i * that.canvasWidth / dotNum, that.canvasHeight / 5 * 0.5 + 8, 1, lineColor);
16147
15761
  }
16148
- /**
16149
- * 偏移距离超过60,setSeconds会每次累加1到分钟,因此绘图完成后需要复原到当前分钟,再次计算偏移
15762
+ /**
15763
+ * 偏移距离超过60,setSeconds会每次累加1到分钟,因此绘图完成后需要复原到当前分钟,再次计算偏移
16150
15764
  */
16151
15765
  startDate.setDate(startDay);
16152
15766
  startDate.setHours(startHours);
@@ -16328,12 +15942,12 @@ var TimeLine$1 = function TimeLine(jsPlugin) {
16328
15942
 
16329
15943
  var Rec = /*#__PURE__*/function () {
16330
15944
  function Rec(jSPlugin) {
16331
- _classCallCheck$1(this, Rec);
15945
+ _classCallCheck(this, Rec);
16332
15946
  this.jSPlugin = jSPlugin;
16333
15947
  if (!document.getElementById("".concat(this.jSPlugin.id, "-audioControls"))) {
16334
15948
  return false;
16335
15949
  }
16336
- this.currentTimeWidth = 0; //回放时间轴尺度 0~3
15950
+ this.currentTimeWidth = 1; //回放时间轴尺度 1~4
16337
15951
  this.date = new Date();
16338
15952
  this.datepickerVisible = false;
16339
15953
  this.seekTimer = null;
@@ -16344,12 +15958,10 @@ var Rec = /*#__PURE__*/function () {
16344
15958
  }
16345
15959
  this.recInit();
16346
15960
  }
16347
- _createClass$1(Rec, [{
15961
+ _createClass(Rec, [{
16348
15962
  key: "recInit",
16349
15963
  value: function recInit() {
16350
15964
  var _this = this;
16351
- // 重置时间轴尺度
16352
- this.currentTimeWidth = 0;
16353
15965
  var canvasItemWidth = parseInt(getComputedStyle(document.getElementById(this.jSPlugin.id)).width, 10) - 100;
16354
15966
  var canvasContainer = document.createElement('div');
16355
15967
  canvasContainer.style = "display:inline-block;height:48px;";
@@ -16362,23 +15974,21 @@ var Rec = /*#__PURE__*/function () {
16362
15974
  canvasItem.style = "display:inline-block;";
16363
15975
  canvasItem.innerHTML = "该浏览器不支持canvas";
16364
15976
  canvasContainer.appendChild(canvasItem);
16365
- insertAfter$1(canvasContainer, document.getElementById("".concat(this.jSPlugin.id, "-audioControls")));
15977
+ insertAfter(canvasContainer, document.getElementById("".concat(this.jSPlugin.id, "-audioControls")));
16366
15978
  var timeLineControlsContainer = document.createElement('div');
16367
15979
  timeLineControlsContainer.className = "timeline-controls";
16368
15980
  timeLineControlsContainer.style = "display:flex;width:100px;height:48px;text-align:center;line-height: 48px;vertical-align: top;background: #000000;";
16369
- var timeLineControls = "\n<div class=\"timeline-controls-scale\" style=\"display: inline-flex;flex-direction: column;justify-content: center;vertical-align: top;padding: 0 20px;\">\n <span style=\"vertical-Align: middle;line-height: 14px;height: 18px; width: 18px;cursor:pointer;\" id=\"".concat(this.jSPlugin.id, "-timeline-scale-add\">\n <svg fill=\"#2C2C2C\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\"\n viewBox=\"0 0 20 20\">\n <title>add</title>\n <g>\n <polygon points=\"0.1,0.5 15,0.5 15,15.4 0.1,15.4 \t\" />\n </g>\n <g>\n <path\n fill=\"#FFFFFF\";\n d=\"M7.6,12.4c-0.3,0-0.5-0.2-0.5-0.5v-8c0-0.3,0.2-0.5,0.5-0.5s0.5,0.2,0.5,0.5v8C8.1,12.2,7.9,12.4,7.6,12.4z\" />\n </g>\n <g>\n <path\n fill=\"#FFFFFF\";\n d=\"M11.6,8.4h-8c-0.3,0-0.5-0.2-0.5-0.5s0.2-0.5,0.5-0.5h8c0.3,0,0.5,0.2,0.5,0.5S11.8,8.4,11.6,8.4z\" />\n </g>\n </svg>\n </span>\n <span style=\"vertical-Align: middle;line-height: 14px;height: 18px; width: 18px;cursor:pointer;\" id=\"").concat(this.jSPlugin.id, "-timeline-scale-sub\">\n <svg fill=\"#2C2C2C\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\"\n viewBox=\"0 0 20 20\">\n <title>reduce</title>\n <g>\n <polygon class=\"st0\" points=\"1,0.8 15.2,0.8 15.2,15 1,15 \t\" />\n </g>\n <g>\n <path class=\"st1\"\n fill=\"#FFFFFF\";\n d=\"M12.1,8.4h-8c-0.3,0-0.5-0.2-0.5-0.5s0.2-0.5,0.5-0.5h8c0.3,0,0.5,0.2,0.5,0.5S12.4,8.4,12.1,8.4z\" />\n </g>\n </svg>\n </span>\n</div>\n<label for=\"").concat(this.jSPlugin.id, "-datepicker\">\n <div class=\"timeline-controls-date\">\n <span>\n <svg fill=\"#2C2C2C\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\"\n viewBox=\"0 0 20 20\">\n <title>ifttt</title>\n <g id=\"Rectangle\">\n <rect x=\"0.6\" y=\"0.9\" class=\"st0\" width=\"20\" height=\"20\" />\n </g>\n <g id=\"Stroke-1\">\n <path fill=\"#FFFFFF\"; class=\"st1\"\n d=\"M14,7.2c-0.3,0-0.5-0.2-0.5-0.5V3.4c0-0.3,0.2-0.5,0.5-0.5s0.5,0.2,0.5,0.5v3.3C14.5,7,14.2,7.2,14,7.2z\" />\n </g>\n <g id=\"Stroke-3\">\n <path fill=\"#FFFFFF\"; class=\"st1\"\n d=\"M7.3,7.2C7,7.2,6.8,7,6.8,6.7V3.4c0-0.3,0.2-0.5,0.5-0.5s0.5,0.2,0.5,0.5v3.3C7.8,7,7.6,7.2,7.3,7.2z\" />\n </g>\n <g id=\"Stroke-5\">\n <path fill=\"#FFFFFF\"; class=\"st1\"\n d=\"M18.1,9.7h-15c-0.3,0-0.5-0.2-0.5-0.5s0.2-0.5,0.5-0.5h15c0.3,0,0.5,0.2,0.5,0.5S18.4,9.7,18.1,9.7z\" />\n </g>\n <g id=\"Stroke-7\">\n <path fill=\"#FFFFFF\"; class=\"st1\" d=\"M16.5,19.7H4.8c-1.2,0-2.2-1-2.2-2.2V6.7c0-1.2,1-2.2,2.2-2.2h11.7c1.2,0,2.2,1,2.2,2.2v10.8\nC18.6,18.8,17.7,19.7,16.5,19.7z M4.8,5.6c-0.6,0-1.2,0.5-1.2,1.2v10.8c0,0.6,0.5,1.2,1.2,1.2h11.7c0.6,0,1.2-0.5,1.2-1.2V6.7\nc0-0.6-0.5-1.2-1.2-1.2H4.8z\" />\n </g>\n <g id=\"Stroke-9\">\n <path fill=\"#FFFFFF\"; class=\"st1\" d=\"M10.6,13.3c-0.4,0-0.7-0.3-0.7-0.7c0-0.2,0.1-0.4,0.2-0.5s0.3-0.2,0.5-0.2h0h0c0.4,0,0.7,0.3,0.7,0.7\nS11,13.3,10.6,13.3z\" />\n </g>\n <g id=\"Stroke-11\">\n <path fill=\"#FFFFFF\"; class=\"st1\" d=\"M14.8,13.3c-0.4,0-0.7-0.3-0.7-0.7c0-0.2,0.1-0.4,0.2-0.5c0.1-0.1,0.3-0.2,0.5-0.2c0.4,0,0.7,0.3,0.7,0.7\nS15.2,13.3,14.8,13.3z M14.8,12.3c-0.2,0-0.3,0.1-0.3,0.3c0,0.2,0.3,0.4,0.5,0.2c0.1-0.1,0.1-0.1,0.1-0.2\nC15.1,12.4,15,12.3,14.8,12.3z\" />\n </g>\n <g id=\"Stroke-13\">\n <path fill=\"#FFFFFF\"; class=\"st1\" d=\"M6.5,16.6c-0.4,0-0.7-0.3-0.7-0.7c0-0.2,0.1-0.4,0.2-0.5c0.1-0.1,0.3-0.2,0.5-0.2h0h0c0.4,0,0.7,0.3,0.7,0.7\nC7.2,16.3,6.9,16.6,6.5,16.6z\" />\n </g>\n <g id=\"Stroke-15\">\n <path fill=\"#FFFFFF\"; class=\"st1\" d=\"M10.6,16.6c-0.4,0-0.7-0.3-0.7-0.7c0-0.2,0.1-0.4,0.2-0.5c0.1-0.1,0.3-0.2,0.5-0.2h0h0c0.4,0,0.7,0.3,0.7,0.7\nC11.4,16.3,11,16.6,10.6,16.6z\" />\n </g>\n </svg>\n </span>\n </div>\n</label>\n<input autocomplete=\"off\" data-toggle=\"").concat(this.jSPlugin.id, "-datepicker\" id=\"").concat(this.jSPlugin.id, "-datepicker\" name=\"").concat(this.jSPlugin.id, "-datepicker\" style=\"opacity:0;width:24px;margin-left:-24px;cursor:pointer;\" />\n");
15981
+ var timeLineControls = "\n<div class=\"timeline-controls-scale\" style=\"display: inline-flex;flex-direction: column;justify-content: center;vertical-align: top;padding: 0 20px;\">\n <span style=\"vertical-Align: middle;line-height: 14px;height: 18px; width: 18px;cursor:pointer;\" id=\"".concat(this.jSPlugin.id, "-timeline-scale-add\">\n <svg fill=\"#2C2C2C\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\"\n viewBox=\"0 0 20 20\">\n <title>add</title>\n <g>\n <polygon points=\"0.1,0.5 15,0.5 15,15.4 0.1,15.4 \t\" />\n </g>\n <g>\n <path\n fill=\"#FFFFFF\";\n d=\"M7.6,12.4c-0.3,0-0.5-0.2-0.5-0.5v-8c0-0.3,0.2-0.5,0.5-0.5s0.5,0.2,0.5,0.5v8C8.1,12.2,7.9,12.4,7.6,12.4z\" />\n </g>\n <g>\n <path\n fill=\"#FFFFFF\";\n d=\"M11.6,8.4h-8c-0.3,0-0.5-0.2-0.5-0.5s0.2-0.5,0.5-0.5h8c0.3,0,0.5,0.2,0.5,0.5S11.8,8.4,11.6,8.4z\" />\n </g>\n </svg>\n </span>\n <span style=\"vertical-Align: middle;line-height: 14px;height: 18px; width: 18px;cursor:pointer;\" id=\"").concat(this.jSPlugin.id, "-timeline-scale-sub\">\n <svg fill=\"#2C2C2C\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\"\n viewBox=\"0 0 20 20\">\n <title>reduce</title>\n <g>\n <polygon class=\"st0\" points=\"1,0.8 15.2,0.8 15.2,15 1,15 \t\" />\n </g>\n <g>\n <path class=\"st1\"\n fill=\"#FFFFFF\";\n d=\"M12.1,8.4h-8c-0.3,0-0.5-0.2-0.5-0.5s0.2-0.5,0.5-0.5h8c0.3,0,0.5,0.2,0.5,0.5S12.4,8.4,12.1,8.4z\" />\n </g>\n </svg>\n </span>\n</div>\n<label for=\"").concat(this.jSPlugin.id, "-datepicker\">\n <div class=\"timeline-controls-date\">\n <span>\n <svg fill=\"#2C2C2C\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\"\n viewBox=\"0 0 20 20\">\n <title>ifttt</title>\n <g id=\"Rectangle\">\n <rect x=\"0.6\" y=\"0.9\" class=\"st0\" width=\"20\" height=\"20\" />\n </g>\n <g id=\"Stroke-1\">\n <path fill=\"#FFFFFF\"; class=\"st1\"\n d=\"M14,7.2c-0.3,0-0.5-0.2-0.5-0.5V3.4c0-0.3,0.2-0.5,0.5-0.5s0.5,0.2,0.5,0.5v3.3C14.5,7,14.2,7.2,14,7.2z\" />\n </g>\n <g id=\"Stroke-3\">\n <path fill=\"#FFFFFF\"; class=\"st1\"\n d=\"M7.3,7.2C7,7.2,6.8,7,6.8,6.7V3.4c0-0.3,0.2-0.5,0.5-0.5s0.5,0.2,0.5,0.5v3.3C7.8,7,7.6,7.2,7.3,7.2z\" />\n </g>\n <g id=\"Stroke-5\">\n <path fill=\"#FFFFFF\"; class=\"st1\"\n d=\"M18.1,9.7h-15c-0.3,0-0.5-0.2-0.5-0.5s0.2-0.5,0.5-0.5h15c0.3,0,0.5,0.2,0.5,0.5S18.4,9.7,18.1,9.7z\" />\n </g>\n <g id=\"Stroke-7\">\n <path fill=\"#FFFFFF\"; class=\"st1\" d=\"M16.5,19.7H4.8c-1.2,0-2.2-1-2.2-2.2V6.7c0-1.2,1-2.2,2.2-2.2h11.7c1.2,0,2.2,1,2.2,2.2v10.8\nC18.6,18.8,17.7,19.7,16.5,19.7z M4.8,5.6c-0.6,0-1.2,0.5-1.2,1.2v10.8c0,0.6,0.5,1.2,1.2,1.2h11.7c0.6,0,1.2-0.5,1.2-1.2V6.7\nc0-0.6-0.5-1.2-1.2-1.2H4.8z\" />\n </g>\n <g id=\"Stroke-9\">\n <path fill=\"#FFFFFF\"; class=\"st1\" d=\"M10.6,13.3c-0.4,0-0.7-0.3-0.7-0.7c0-0.2,0.1-0.4,0.2-0.5s0.3-0.2,0.5-0.2h0h0c0.4,0,0.7,0.3,0.7,0.7\nS11,13.3,10.6,13.3z\" />\n </g>\n <g id=\"Stroke-11\">\n <path fill=\"#FFFFFF\"; class=\"st1\" d=\"M14.8,13.3c-0.4,0-0.7-0.3-0.7-0.7c0-0.2,0.1-0.4,0.2-0.5c0.1-0.1,0.3-0.2,0.5-0.2c0.4,0,0.7,0.3,0.7,0.7\nS15.2,13.3,14.8,13.3z M14.8,12.3c-0.2,0-0.3,0.1-0.3,0.3c0,0.2,0.3,0.4,0.5,0.2c0.1-0.1,0.1-0.1,0.1-0.2\nC15.1,12.4,15,12.3,14.8,12.3z\" />\n </g>\n <g id=\"Stroke-13\">\n <path fill=\"#FFFFFF\"; class=\"st1\" d=\"M6.5,16.6c-0.4,0-0.7-0.3-0.7-0.7c0-0.2,0.1-0.4,0.2-0.5c0.1-0.1,0.3-0.2,0.5-0.2h0h0c0.4,0,0.7,0.3,0.7,0.7\nC7.2,16.3,6.9,16.6,6.5,16.6z\" />\n </g>\n <g id=\"Stroke-15\">\n <path fill=\"#FFFFFF\"; class=\"st1\" d=\"M10.6,16.6c-0.4,0-0.7-0.3-0.7-0.7c0-0.2,0.1-0.4,0.2-0.5c0.1-0.1,0.3-0.2,0.5-0.2h0h0c0.4,0,0.7,0.3,0.7,0.7\nC11.4,16.3,11,16.6,10.6,16.6z\" />\n </g>\n </svg>\n </span>\n </div>\n</label>\n<input data-toggle=\"").concat(this.jSPlugin.id, "-datepicker\" id=\"").concat(this.jSPlugin.id, "-datepicker\" name=\"").concat(this.jSPlugin.id, "-datepicker\" style=\"opacity:0;width:24px;margin-left:-24px;cursor:pointer;\" />\n");
16370
15982
  timeLineControlsContainer.innerHTML = timeLineControls;
16371
- insertAfter$1(timeLineControlsContainer, canvasContainer);
16372
- this.timeLine = new TimeLine$1(this.jSPlugin);
15983
+ insertAfter(timeLineControlsContainer, canvasContainer);
15984
+ this.timeLine = new TimeLine(this.jSPlugin);
16373
15985
  this.timeLine.init({
16374
15986
  id: this.jSPlugin.id + '-canvas',
16375
15987
  width: canvasItemWidth,
16376
15988
  onChange: function onChange(time) {
16377
15989
  console.log("time", time, new Date(time).Format('yyyyMMddhhmmss'));
16378
15990
  var newBegin = new Date(time).Format('yyyyMMddhhmmss');
16379
- console.log('----------------this.jSPlugin.url', _this.jSPlugin.url);
16380
- //云录制、支持seek功能的设备开启seek回放功能
16381
- if (matchEzopenUrl(_this.jSPlugin.url).type === 'cloud.rec' || _this.jSPlugin.capacity && _this.jSPlugin.capacity.support_seek_playback == '1') {
15991
+ if (matchEzopenUrl(_this.jSPlugin.url).type === 'cloud.rec') {
16382
15992
  var cloudSeek = function cloudSeek() {
16383
15993
  _this.jSPlugin.seek(newBegin.substr(8, 6), "235959");
16384
15994
  _this.unSyncTimeLine();
@@ -16408,7 +16018,7 @@ var Rec = /*#__PURE__*/function () {
16408
16018
  _this.jSPlugin.pause().then(function () {
16409
16019
  console.log("暂停成功");
16410
16020
  _this.jSPlugin.resume(newBegin).then(function (data) {
16411
- console.log("恢复成功:", data);
16021
+ console.log("恢复成功");
16412
16022
  if (_this.jSPlugin.Theme) {
16413
16023
  _this.jSPlugin.Theme.setDecoderState({
16414
16024
  play: true
@@ -16463,13 +16073,13 @@ var Rec = /*#__PURE__*/function () {
16463
16073
  addJs("".concat(_this.jSPlugin.staticPath, "/rec/datepicker.js"), function () {
16464
16074
  addJs("".concat(_this.jSPlugin.staticPath, "/rec/datepicker.zh-CN.js"), function () {
16465
16075
  // 日期选择:
16466
- if (!document.getElementsByClassName("datepicker-container")[0] && $("#".concat(_this.jSPlugin.id, "-datepicker")).datepicker) {
16076
+ if (!document.getElementsByClassName("datepicker-container")[0]) {
16467
16077
  $("#".concat(_this.jSPlugin.id, "-datepicker")).datepicker({
16468
16078
  autoShow: false,
16469
16079
  autoHide: true,
16470
16080
  autoPick: true,
16471
16081
  language: 'zh-CN',
16472
- date: new Date(getQueryString('begin', _this.jSPlugin.params.url).replace(/(\d{4})(\d{2})(\d{2})/, '$1-$2-$3')) || new Date(),
16082
+ defaultDate: new Date(),
16473
16083
  format: 'yyyy-mm-dd',
16474
16084
  endDate: new Date(),
16475
16085
  inline: true,
@@ -16485,41 +16095,15 @@ var Rec = /*#__PURE__*/function () {
16485
16095
  if (e.date > new Date() || new Date(e.date).Format('yyyyMMdd') === new Date(document.getElementById("".concat(_this.jSPlugin.id, "-datepicker")).value).Format('yyyyMMdd')) {
16486
16096
  e.preventDefault(); // Prevent to pick the date
16487
16097
  } else {
16488
- document.getElementById("".concat(_this.jSPlugin.id, "-datepicker")).value = new Date(e.date).Format('yyyy-MM-dd');
16489
16098
  _this.renderRec(e.date);
16490
- if (_this.jSPlugin.decoderState && _this.jSPlugin.decoderState.state) {
16491
- if (_this.jSPlugin.decoderState.state.cloudRec) {
16492
- _this.jSPlugin.changePlayUrl({
16493
- begin: new Date(e.date).Format('yyyyMMdd'),
16494
- type: 'cloud.rec'
16495
- });
16496
- } else if (_this.jSPlugin.decoderState.state.rec) {
16497
- _this.jSPlugin.changePlayUrl({
16498
- begin: new Date(e.date).Format('yyyyMMdd'),
16499
- type: 'rec'
16500
- });
16501
- } else {
16502
- _this.jSPlugin.changePlayUrl({
16503
- begin: new Date(e.date).Format('yyyyMMdd')
16504
- });
16505
- }
16506
- } else {
16507
- _this.jSPlugin.changePlayUrl({
16508
- begin: new Date(e.date).Format('yyyyMMdd')
16509
- });
16510
- }
16099
+ _this.jSPlugin.changePlayUrl({
16100
+ begin: new Date(e.date).Format('yyyyMMdd')
16101
+ });
16511
16102
  }
16512
16103
  if (document.getElementsByClassName("datepicker-container")[0]) {
16513
16104
  document.getElementsByClassName("datepicker-container")[0].style.display = "none";
16514
16105
  }
16515
16106
  _this.datepickerVisible = false;
16516
- //xuehb 重置放大倍数
16517
- if (_this.jSPlugin.decoderState && _this.jSPlugin.decoderState && _this.jSPlugin.decoderState.state && _this.jSPlugin.decoderState.state.zoom) {
16518
- _this.jSPlugin.setDecoderState({
16519
- zoom: false
16520
- });
16521
- _this.jSPlugin.Zoom.stopZoom();
16522
- }
16523
16107
  });
16524
16108
  $("#".concat(_this.jSPlugin.id, "-datepicker")).off('click').on("click", function (e) {
16525
16109
  console.log("点击日期");
@@ -16564,27 +16148,6 @@ var Rec = /*#__PURE__*/function () {
16564
16148
  var el = document.getElementById("".concat(this.jSPlugin.id));
16565
16149
  this.observer.observe(el, config);
16566
16150
  }
16567
- }, {
16568
- key: "setDatepickerDate",
16569
- value: function setDatepickerDate(date) {
16570
- if (document.getElementsByClassName("datepicker-container")[0]) {
16571
- var dom = document.getElementsByClassName("datepicker-container")[0];
16572
- var parentNode = dom.parentNode;
16573
- parentNode.removeChild(dom);
16574
- document.getElementById("".concat(this.jSPlugin.id, "-datepicker")).value = date.replace(/(\d{4})(\d{2})(\d{2})/, '$1-$2-$3');
16575
- $("#".concat(this.jSPlugin.id, "-datepicker")).datepicker({
16576
- autoShow: false,
16577
- autoHide: true,
16578
- autoPick: true,
16579
- language: 'zh-CN',
16580
- defaultDate: date,
16581
- format: 'yyyy-mm-dd',
16582
- endDate: new Date(),
16583
- inline: true,
16584
- container: document.getElementById("".concat(this.jSPlugin.id, "-wrap"))
16585
- });
16586
- }
16587
- }
16588
16151
  }, {
16589
16152
  key: "datepickerHide",
16590
16153
  value: function datepickerHide() {
@@ -16621,12 +16184,7 @@ var Rec = /*#__PURE__*/function () {
16621
16184
  });
16622
16185
  }
16623
16186
  });
16624
- // this.timeLine.setWidth({
16625
- // id: `${this.jSPlugin.id}-canvas`,
16626
- // width: canvasItemWidth,
16627
- // })
16628
16187
  this.renderRec(this.date);
16629
- this.syncTimeLine();
16630
16188
  }
16631
16189
  }
16632
16190
  }
@@ -16637,12 +16195,6 @@ var Rec = /*#__PURE__*/function () {
16637
16195
  if (this.jSPlugin.recTimer) {
16638
16196
  clearInterval(this.jSPlugin.recTimer);
16639
16197
  }
16640
-
16641
- // let end = setInterval(function () { }, 10000);
16642
- // for (let i = 1; i <= end && i != this.jSPlugin.recTimer; i++) {
16643
- // clearInterval(i);
16644
- // }
16645
-
16646
16198
  this.jSPlugin.recTimer = setInterval(function () {
16647
16199
  var getOSDTimePromise = _this3.jSPlugin.getOSDTime();
16648
16200
  getOSDTimePromise.then(function (data) {
@@ -16651,7 +16203,7 @@ var Rec = /*#__PURE__*/function () {
16651
16203
  console.log("获取播放时间错误");
16652
16204
  } else {
16653
16205
  if (v > 0) {
16654
- // console.log("获取播放时间", v, this.timeLine.run);
16206
+ //console.log("获取播放时间", v, this.timeLine.run);
16655
16207
  _this3.timeLine.run({
16656
16208
  time: new Date(v > 1000000000000 ? v : v * 1000)
16657
16209
  });
@@ -16677,7 +16229,6 @@ var Rec = /*#__PURE__*/function () {
16677
16229
  var dateStart = new Date(new Date(date).Format('yyyy-MM-dd 00:00:00').replace(/-/g, "/")).getTime();
16678
16230
  var dateEnd = new Date(new Date(date).Format('yyyy-MM-dd 23:59:59').replace(/-/g, "/")).getTime();
16679
16231
  this.timeLine.getRecord([], dateStart, dateEnd);
16680
- console.log('-----------233---------this.jSPlugin.url', this.jSPlugin.url);
16681
16232
  var recSliceParams = {
16682
16233
  accessToken: this.jSPlugin.accessToken,
16683
16234
  recType: matchEzopenUrl(this.jSPlugin.url).type === 'cloud.rec' ? 1 : 2,
@@ -16727,7 +16278,7 @@ var Rec = /*#__PURE__*/function () {
16727
16278
  that.timeLine.run({
16728
16279
  time: new Date(dateStart)
16729
16280
  });
16730
- } else ;
16281
+ }
16731
16282
  };
16732
16283
  var recAPIUrl = this.jSPlugin.env.domain + "/api/lapp/video/by/time";
16733
16284
  request(recAPIUrl, 'POST', recSliceParams, '', recAPISuccess);
@@ -16736,7 +16287,7 @@ var Rec = /*#__PURE__*/function () {
16736
16287
  return Rec;
16737
16288
  }();
16738
16289
 
16739
- var TimeLine = function TimeLine(params) {
16290
+ var TimeLine$1 = function TimeLine(params) {
16740
16291
  console.log("执行TimeLine - params", params);
16741
16292
  this.state = {
16742
16293
  id: params.id,
@@ -16856,14 +16407,14 @@ var TimeLine = function TimeLine(params) {
16856
16407
  };
16857
16408
  this.matchTimeDot();
16858
16409
  };
16859
- TimeLine.prototype.changeScale = function (value) {
16410
+ TimeLine$1.prototype.changeScale = function (value) {
16860
16411
  this.setState({
16861
16412
  timelag: value // 120: 2小时, 60:1小时, 30:半小时,10:10分钟,1:1分钟
16862
16413
  });
16863
16414
 
16864
16415
  this.matchTimeDot();
16865
16416
  };
16866
- TimeLine.prototype.setDateLine = function (news, defaultIndex) {
16417
+ TimeLine$1.prototype.setDateLine = function (news, defaultIndex) {
16867
16418
  // if( news.length > 0 ){
16868
16419
  // if(!defaultIndex){
16869
16420
  // defaultIndex = 0;
@@ -16904,12 +16455,12 @@ TimeLine.prototype.setDateLine = function (news, defaultIndex) {
16904
16455
  this.matchRecTimeDot();
16905
16456
  }
16906
16457
  };
16907
- TimeLine.prototype.matchTimeDot = function () {
16458
+ TimeLine$1.prototype.matchTimeDot = function () {
16908
16459
  var _this$state = this.state,
16909
16460
  start = _this$state.start,
16910
16461
  end = _this$state.end,
16911
- timelag = _this$state.timelag;
16912
- _this$state.availTimeLine;
16462
+ timelag = _this$state.timelag,
16463
+ availTimeLine = _this$state.availTimeLine;
16913
16464
  console.log("start", start, 'end', end);
16914
16465
  var timeArr = [];
16915
16466
  // // 播放时间片段时刻转分钟
@@ -17005,7 +16556,7 @@ TimeLine.prototype.matchTimeDot = function () {
17005
16556
  });
17006
16557
  this.renderDateLine();
17007
16558
  };
17008
- TimeLine.prototype.matchRecTimeDot = function () {
16559
+ TimeLine$1.prototype.matchRecTimeDot = function () {
17009
16560
  var _this$state2 = this.state,
17010
16561
  start = _this$state2.start,
17011
16562
  end = _this$state2.end,
@@ -17021,10 +16572,6 @@ TimeLine.prototype.matchRecTimeDot = function () {
17021
16572
  timeArr[j].recArr = [];
17022
16573
  }
17023
16574
  } else {
17024
- //xuehb 切换回放时要把上一次的回放时间段重置清空掉
17025
- for (var k = 0; k < timeArr.length; k++) {
17026
- timeArr[k].recArr = [];
17027
- }
17028
16575
  for (var i = 0; i < len; i++) {
17029
16576
  var temp = availTimeLine[i];
17030
16577
  var st = this.timeToSecond(temp.st);
@@ -17080,7 +16627,7 @@ TimeLine.prototype.matchRecTimeDot = function () {
17080
16627
  console.log('timeArr:', this.state);
17081
16628
  this.renderDateLine();
17082
16629
  };
17083
- TimeLine.prototype.renderDateLine = function () {
16630
+ TimeLine$1.prototype.renderDateLine = function () {
17084
16631
  var _this$state3 = this.state,
17085
16632
  id = _this$state3.id,
17086
16633
  timeArr = _this$state3.timeArr;
@@ -17104,7 +16651,7 @@ TimeLine.prototype.renderDateLine = function () {
17104
16651
  });
17105
16652
  };
17106
16653
  // 计算初始偏移量
17107
- TimeLine.prototype.primaryOffsetH = function () {
16654
+ TimeLine$1.prototype.primaryOffsetH = function () {
17108
16655
  var _this$state4 = this.state,
17109
16656
  start = _this$state4.start,
17110
16657
  timelag = _this$state4.timelag,
@@ -17120,7 +16667,7 @@ TimeLine.prototype.primaryOffsetH = function () {
17120
16667
  console.log('起始偏移量', offsetH);
17121
16668
  };
17122
16669
  // 计算当前偏移量
17123
- TimeLine.prototype.currentOffsetH = function () {
16670
+ TimeLine$1.prototype.currentOffsetH = function () {
17124
16671
  var _this$state5 = this.state,
17125
16672
  current = _this$state5.current,
17126
16673
  timelag = _this$state5.timelag,
@@ -17135,7 +16682,7 @@ TimeLine.prototype.currentOffsetH = function () {
17135
16682
  });
17136
16683
  };
17137
16684
  // 通过时间轴位置获取当前时间
17138
- TimeLine.prototype.rectTopTotime = function (reactTop) {
16685
+ TimeLine$1.prototype.rectTopTotime = function (reactTop) {
17139
16686
  var timelag = this.state.timelag;
17140
16687
  // let rectTop = rect.top; // 获取当前元素距离父元素顶部的高度
17141
16688
  // let reactTop = 0 - rectTop; // 实际偏移高度
@@ -17167,13 +16714,13 @@ TimeLine.prototype.rectTopTotime = function (reactTop) {
17167
16714
  // console.log("currentTime", current + ':' + (offsetSecond > 9 ? offsetSecond : '0' + offsetSecond));
17168
16715
  };
17169
16716
  // 时间轴滚动,根据传参变化
17170
- TimeLine.prototype.stepScrollTimeLine = function (time) {
16717
+ TimeLine$1.prototype.stepScrollTimeLine = function (time) {
17171
16718
  this.setState({
17172
16719
  current: time
17173
16720
  });
17174
16721
  this.currentOffsetH();
17175
16722
  };
17176
- TimeLine.prototype.secondCountDown = function (time) {
16723
+ TimeLine$1.prototype.secondCountDown = function (time) {
17177
16724
  var current = this.state.current;
17178
16725
  // console.log('currentTime', current);
17179
16726
  var temp = current.split(':');
@@ -17188,7 +16735,7 @@ TimeLine.prototype.secondCountDown = function (time) {
17188
16735
  current: (h > 9 ? h : '0' + h) + ':' + (m > 9 ? m : '0' + m) + ':' + (s > 9 ? s : '0' + s)
17189
16736
  });
17190
16737
  };
17191
- var MobileTimeLine = TimeLine;
16738
+ var MobileTimeLine = TimeLine$1;
17192
16739
 
17193
16740
  Date.prototype.Format = function (fmt) {
17194
16741
  //author: meizz
@@ -17224,14 +16771,9 @@ function format(now) {
17224
16771
  return (h > 9 ? h : '0' + h) + ':' + (m > 9 ? m : '0' + m) + ':' + (s > 9 ? s : '0' + s);
17225
16772
  }
17226
16773
  var MobileRec = /*#__PURE__*/function () {
17227
- function MobileRec(jSPlugin, changeRecSpeed, resetMobileZoomStatus) {
16774
+ function MobileRec(jSPlugin) {
17228
16775
  var _this = this;
17229
- _classCallCheck$1(this, MobileRec);
17230
- //xuehb 修改播放速度方法
17231
- this.changeRecSpeed = changeRecSpeed;
17232
- //xuehb 重置放大状态
17233
- this.resetMobileZoomStatus = resetMobileZoomStatus;
17234
- this.isMobile = true;
16776
+ _classCallCheck(this, MobileRec);
17235
16777
  this.jSPlugin = jSPlugin;
17236
16778
  this.timer = null;
17237
16779
  this.date = new Date().Format('yyyy-MM-dd');
@@ -17268,21 +16810,21 @@ var MobileRec = /*#__PURE__*/function () {
17268
16810
  mobileRecTitleWrap.className = "date-switch-container-wrap";
17269
16811
  mobileRecTitleWrap.style = "";
17270
16812
  mobileRecTitleWrap.innerHTML = "\n <div class=\"date-switch-container\">\n <div class=\"current-date\" id=\"current-date\">\u4ECA\u65E5\u5F55\u50CF</div>\n <div class=\"date-container\">\n <label for=\"date\">\n <div class=\"date-icon\"></div>\n </label>\n <input type=\"date\" name=\"date\" id=\"date\" />\n </div>\n </div>\n ";
17271
- insertAfter$1(mobileRecTitleWrap, document.getElementById("".concat(this.jSPlugin.id, "-wrap")));
16813
+ insertAfter(mobileRecTitleWrap, document.getElementById("".concat(this.jSPlugin.id, "-wrap")));
17272
16814
  // 回放时间类型选择
17273
16815
  var mobileRecSwitchWrap = document.createElement('div');
17274
16816
  mobileRecSwitchWrap.id = "rec-type-container-wrap";
17275
16817
  mobileRecSwitchWrap.className = "rec-type-container-wrap";
17276
16818
  mobileRecSwitchWrap.style = "";
17277
16819
  mobileRecSwitchWrap.innerHTML = "\n <div class=\"rec-type-container\">\n <div class=\"rec-type-text\">\u5171<span id=\"recCount\">0</span>\u4E2A\u5F55\u50CF</div>\n <div class=\"rec-type-switch\">\n <label>\n <input type=\"checkbox\" name=\"type\" id=\"cloudType\" value=\"1\" hidden />\n <label for=\"cloudType\" class=\"advice\">\n <span>\n <svg fill=\"#CCCCCC\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"2 0 20 20\">\n <path class=\"st0\" d=\"M12.6,5c-2.3,0.1-4.3,1.4-5.3,3.3L7.2,8.6c-2.4,0.5-4.1,2.5-4.1,4.9c0,2.8,2.4,5,5.2,5h9.9\n c2.4,0,4.3-1.9,4.3-4.2l0-0.2c-0.1-2-1.6-3.5-3.5-3.9l-0.1,0l0-0.2c-0.4-2.8-3-5-6.1-5L12.6,5z\"/>\n </svg>\n </span>\n <span>\n <svg fill=\"#CCCCCC\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"2 0 20 20\">\n <path id=\"\u5F62\u72B6\u7ED3\u5408\" class=\"st0\" d=\"M14.3,4c0.6,0,1.2,0.2,1.7,0.7l0,0L18.3,7C18.7,7.4,19,8,19,8.6l0,0v9c0,1.3-1.1,2.3-2.4,2.3\n\tl0,0H8.4C7.1,20,6,19,6,17.7l0,0V6.3C6,5,7.1,4,8.4,4l0,0H14.3z M9.7,7.2C9.3,7.2,8.9,7.6,8.9,8l0,0v2.5l0,0.1\n\tc0,0.4,0.4,0.6,0.7,0.6c0.4,0,0.8-0.3,0.8-0.8l0,0V8l0-0.1C10.4,7.5,10,7.2,9.7,7.2z M12.2,7.2c-0.4,0-0.8,0.3-0.8,0.8l0,0v2.5\n\tl0,0.1c0,0.4,0.4,0.6,0.7,0.6c0.4,0,0.8-0.3,0.8-0.8l0,0V8l0-0.1C12.9,7.5,12.5,7.2,12.2,7.2z M14.7,7.2c-0.4,0-0.8,0.3-0.8,0.8l0,0\n\tv2.5l0,0.1c0,0.4,0.4,0.6,0.7,0.6c0.4,0,0.8-0.3,0.8-0.8l0,0V8l0-0.1C15.4,7.5,15,7.2,14.7,7.2z\"/>\n </svg>\n </span>\n </label>\n </label>\n </div>\n </div>\n ";
17278
- insertAfter$1(mobileRecSwitchWrap, mobileRecTitleWrap);
16820
+ insertAfter(mobileRecSwitchWrap, mobileRecTitleWrap);
17279
16821
  // 回放时间轴
17280
16822
  var mobileRecWrap = document.createElement('div');
17281
16823
  mobileRecWrap.id = "mobile-rec-wrap";
17282
16824
  mobileRecWrap.className = "mobileRec-wrap";
17283
16825
  mobileRecWrap.style = "";
17284
16826
  mobileRecWrap.innerHTML = "\n <div class=\"time-line-container\">\n <div class=\"current-time\">\n <div class=\"current-time-bg\" id=\"time-line-current\">2020-01-01 00:00:00</div>\n </div>\n <div class=\"time-line-item-container\">\n <div class=\"time-line-item\" id=\"time-line-item\">\n </div>\n </div>\n </div>\n ";
17285
- insertAfter$1(mobileRecWrap, mobileRecSwitchWrap);
16827
+ insertAfter(mobileRecWrap, mobileRecSwitchWrap);
17286
16828
  var getPalyParam = function getPalyParam(data) {
17287
16829
  console.log("子组件传值到父组件", data, data.current);
17288
16830
  var st = data.current;
@@ -17428,10 +16970,6 @@ var MobileRec = /*#__PURE__*/function () {
17428
16970
  type: _this.type,
17429
16971
  begin: "".concat(new Date(_this.date).Format('yyyyMMdd'), "000000")
17430
16972
  });
17431
- //xuehb 将播放倍速重置为1
17432
- _this.changeRecSpeed(1);
17433
- //xuehb 重置放大状态
17434
- _this.resetMobileZoomStatus();
17435
16973
  });
17436
16974
  document.getElementById("cloudType").checked = this.type === 'rec';
17437
16975
  document.getElementById("cloudType").addEventListener('change', function (e) {
@@ -17445,10 +16983,6 @@ var MobileRec = /*#__PURE__*/function () {
17445
16983
  }).then(function () {
17446
16984
  console.log("切换类型成功");
17447
16985
  _this.syncTimeLine();
17448
- //xuehb 将播放倍速重置为1
17449
- _this.changeRecSpeed(1);
17450
- //xuehb 重置放大状态
17451
- _this.resetMobileZoomStatus();
17452
16986
  }, function (err) {
17453
16987
  console.log("err", err);
17454
16988
  })["catch"](function (err) {
@@ -17461,7 +16995,7 @@ var MobileRec = /*#__PURE__*/function () {
17461
16995
 
17462
16996
  this.syncTimeLine();
17463
16997
  }
17464
- _createClass$1(MobileRec, [{
16998
+ _createClass(MobileRec, [{
17465
16999
  key: "fetchDeviceRec",
17466
17000
  value: function fetchDeviceRec() {
17467
17001
  var _this2 = this;
@@ -17531,10 +17065,8 @@ var MobileRec = /*#__PURE__*/function () {
17531
17065
  _this3.TimeLineOBJ.stepScrollTimeLine(dateFormat(res.data * 1000));
17532
17066
  } else {
17533
17067
  console.log("未找到当前获取播放时间,等待中...");
17534
- console.log('res:-----------------', res);
17535
17068
  }
17536
17069
  })["catch"](function (err) {
17537
- console.log('err:-----', err);
17538
17070
  console.log("未找到当前获取播放时间,等待中...");
17539
17071
  });
17540
17072
  }, 1000);
@@ -17550,450 +17082,11 @@ var MobileRec = /*#__PURE__*/function () {
17550
17082
  return MobileRec;
17551
17083
  }();
17552
17084
 
17553
- var ptzStart = [
17554
- {
17555
- code: 200,
17556
- msg: "",
17557
- desc: "请求成功",
17558
- text: "操作成功",
17559
- type: "ptzStart"
17560
- },
17561
- {
17562
- code: 10001,
17563
- msg: "操作失败",
17564
- desc: "参数为空或格式不正确",
17565
- text: "参数错误",
17566
- type: "ptzStart"
17567
- },
17568
- {
17569
- code: 10002,
17570
- msg: "账号异常,操作失败",
17571
- desc: "重新获取accessToken",
17572
- text: "accessToken异常或过期",
17573
- type: "ptzStart"
17574
- },
17575
- {
17576
- code: 10005,
17577
- msg: "账号异常,操作失败",
17578
- desc: "appKey被冻结",
17579
- text: "appKey异常",
17580
- type: "ptzStart"
17581
- },
17582
- {
17583
- code: 20002,
17584
- msg: "设备不存在,请检查设备连接情况",
17585
- desc: "",
17586
- text: "设备不存在",
17587
- type: "ptzStart"
17588
- },
17589
- {
17590
- code: 20006,
17591
- msg: "操作失败,请检查设备网络情况",
17592
- desc: "检查设备网络状况,稍后再试",
17593
- text: "网络异常",
17594
- type: "ptzStart"
17595
- },
17596
- {
17597
- code: 20007,
17598
- msg: "操作失败,请检查设备在线情况",
17599
- desc: "检查设备是否在线",
17600
- text: "设备不在线",
17601
- type: "ptzStart"
17602
- },
17603
- {
17604
- code: 20008,
17605
- msg: "操作过于频繁,稍后再试",
17606
- desc: "操作过于频繁,稍后再试",
17607
- text: "设备响应超时",
17608
- type: "ptzStart"
17609
- },
17610
- {
17611
- code: 20014,
17612
- msg: "操作失败",
17613
- desc: "",
17614
- text: "deviceSerial不合法",
17615
- type: "ptzStart"
17616
- },
17617
- {
17618
- code: 20032,
17619
- msg: "通道不存在请检查设备连接情况",
17620
- desc: "该用户下通道不存在",
17621
- text: "该用户下通道不存在",
17622
- type: "ptzStart"
17623
- },
17624
- {
17625
- code: 49999,
17626
- msg: "操作失败,请重试",
17627
- desc: "接口调用异常",
17628
- text: "数据异常",
17629
- type: "ptzStart"
17630
- },
17631
- {
17632
- code: 60000,
17633
- msg: "操作失败,设备不支持该操作",
17634
- desc: "",
17635
- text: "设备不支持云台控制",
17636
- type: "ptzStart"
17637
- },
17638
- {
17639
- code: 60001,
17640
- msg: "操作失败,用户无权限",
17641
- desc: "",
17642
- text: "用户无云台控制权限",
17643
- type: "ptzStart"
17644
- },
17645
- {
17646
- code: 60002,
17647
- msg: "设备已旋转到上限位",
17648
- desc: "",
17649
- text: "设备云台旋转达到上限位",
17650
- type: "ptzStart"
17651
- },
17652
- {
17653
- code: 60003,
17654
- msg: "设备已旋转到下限位",
17655
- desc: "",
17656
- text: "设备云台旋转达到下限位",
17657
- type: "ptzStart"
17658
- },
17659
- {
17660
- code: 60004,
17661
- msg: "设备已旋转到左限位",
17662
- desc: "",
17663
- text: "设备云台旋转达到左限位",
17664
- type: "ptzStart"
17665
- },
17666
- {
17667
- code: 60005,
17668
- msg: "设备已旋转到右限位",
17669
- desc: "",
17670
- text: "设备云台旋转达到右限位",
17671
- type: "ptzStart"
17672
- },
17673
- {
17674
- code: 60006,
17675
- msg: "操作失败,请重试",
17676
- desc: "稍候再试",
17677
- text: "云台当前操作失败",
17678
- type: "ptzStart"
17679
- },
17680
- {
17681
- code: 60009,
17682
- msg: "设备正在操作中",
17683
- desc: "",
17684
- text: "正在调用预置点",
17685
- type: "ptzStart"
17686
- },
17687
- {
17688
- code: 60020,
17689
- msg: "操作失败",
17690
- desc: "确认设备是否支持该操作",
17691
- text: "不支持该命令",
17692
- type: "ptzStart"
17693
- }
17694
- ];
17695
- var ptzStop = [
17696
- {
17697
- code: 200,
17698
- msg: "",
17699
- desc: "请求成功",
17700
- text: "操作成功",
17701
- type: "ptzStop"
17702
- },
17703
- {
17704
- code: 10001,
17705
- msg: "操作失败",
17706
- desc: "参数为空或格式不正确",
17707
- text: "参数错误",
17708
- type: "ptzStop"
17709
- },
17710
- {
17711
- code: 10002,
17712
- msg: "账号异常,操作失败",
17713
- desc: "重新获取accessToken",
17714
- text: "accessToken异常或过期",
17715
- type: "ptzStop"
17716
- },
17717
- {
17718
- code: 10005,
17719
- msg: "账号异常,操作失败",
17720
- desc: "appKey被冻结",
17721
- text: "appKey异常",
17722
- type: "ptzStop"
17723
- },
17724
- {
17725
- code: 20002,
17726
- msg: "设备不存在,请检查设备连接情况",
17727
- desc: "",
17728
- text: "设备不存在",
17729
- type: "ptzStop"
17730
- },
17731
- {
17732
- code: 20006,
17733
- msg: "操作失败,请检查设备网络情况",
17734
- desc: "检查设备网络状况,稍后再试",
17735
- text: "网络异常",
17736
- type: "ptzStop"
17737
- },
17738
- {
17739
- code: 20007,
17740
- msg: "操作失败,请检查设备在线情况",
17741
- desc: "检查设备是否在线",
17742
- text: "设备不在线",
17743
- type: "ptzStop"
17744
- },
17745
- {
17746
- code: 20008,
17747
- msg: "操作过于频繁,稍后再试",
17748
- desc: "操作过于频繁,稍后再试",
17749
- text: "设备响应超时",
17750
- type: "ptzStop"
17751
- },
17752
- {
17753
- code: 20014,
17754
- msg: "操作失败",
17755
- desc: "",
17756
- text: "deviceSerial不合法",
17757
- type: "ptzStop"
17758
- },
17759
- {
17760
- code: 20032,
17761
- msg: "通道不存在请检查设备连接情况",
17762
- desc: "该用户下通道不存在",
17763
- text: "该用户下通道不存在",
17764
- type: "ptzStop"
17765
- },
17766
- {
17767
- code: 49999,
17768
- msg: "操作失败,请重试",
17769
- desc: "接口调用异常",
17770
- text: "数据异常",
17771
- type: "ptzStop"
17772
- },
17773
- {
17774
- code: 60000,
17775
- msg: "操作失败,设备不支持该操作",
17776
- desc: "",
17777
- text: "设备不支持云台控制",
17778
- type: "ptzStop"
17779
- },
17780
- {
17781
- code: 60001,
17782
- msg: "操作失败,用户无权限",
17783
- desc: "",
17784
- text: "用户无云台控制权限",
17785
- type: "ptzStop"
17786
- },
17787
- {
17788
- code: 60006,
17789
- msg: "操作失败,请重试",
17790
- desc: "稍候再试",
17791
- text: "云台当前操作失败",
17792
- type: "ptzStop"
17793
- },
17794
- {
17795
- code: 60009,
17796
- msg: "设备正在操作中",
17797
- desc: "",
17798
- text: "正在调用预置点",
17799
- type: "ptzStop"
17800
- },
17801
- {
17802
- code: 60020,
17803
- msg: "操作失败",
17804
- desc: "确认设备是否支持该操作",
17805
- text: "不支持该命令",
17806
- type: "ptzStop"
17807
- }
17808
- ];
17809
- var talk = [
17810
- {
17811
- code: 200,
17812
- msg: "",
17813
- desc: "请求成功",
17814
- text: "操作成功",
17815
- type: "talk"
17816
- },
17817
- {
17818
- code: 10001,
17819
- msg: "播放失败",
17820
- desc: "参数为空或格式不正确",
17821
- text: "参数错误",
17822
- type: "talk"
17823
- },
17824
- {
17825
- code: 10002,
17826
- msg: "账号异常,操作失败",
17827
- desc: "",
17828
- text: "accessToken异常或过期",
17829
- type: "talk"
17830
- },
17831
- {
17832
- code: 10031,
17833
- msg: "账号异常,操作失败",
17834
- desc: "",
17835
- text: "子账户或萤石用户没有权限",
17836
- type: "talk"
17837
- },
17838
- {
17839
- code: 20002,
17840
- msg: "设备不存在请检查设备连接情况",
17841
- desc: "设备序列号输入有误或者设备未被添加或者通道异常",
17842
- text: "设备不存在",
17843
- type: "talk"
17844
- },
17845
- {
17846
- code: 60059,
17847
- msg: "播放失败",
17848
- desc: "",
17849
- text: "ezopen地址均不可用",
17850
- type: "talk"
17851
- }
17852
- ];
17853
- var time = [
17854
- {
17855
- code: 200,
17856
- msg: "",
17857
- desc: "",
17858
- text: "操作成功",
17859
- type: "time"
17860
- },
17861
- {
17862
- code: 10001,
17863
- msg: "播放失败",
17864
- desc: "参数为空或格式不正确",
17865
- text: "参数错误",
17866
- type: "time"
17867
- },
17868
- {
17869
- code: 10002,
17870
- msg: "账号异常,播放失败",
17871
- desc: "",
17872
- text: "accessToken异常或过期",
17873
- type: "time"
17874
- },
17875
- {
17876
- code: 10004,
17877
- msg: "账号异常,播放失败",
17878
- desc: "",
17879
- text: "用户不存在",
17880
- type: "time"
17881
- },
17882
- {
17883
- code: 10005,
17884
- msg: "账号异常,播放失败",
17885
- desc: "",
17886
- text: "appKey异常",
17887
- type: "time"
17888
- },
17889
- {
17890
- code: 10011,
17891
- msg: "播放失败",
17892
- desc: "设备对应用户未注册至应用下",
17893
- text: "未开通萤石服务",
17894
- type: "time"
17895
- },
17896
- {
17897
- code: 10013,
17898
- msg: "账号异常,播放失败",
17899
- desc: "",
17900
- text: "非开发者账号无权限调用",
17901
- type: "time"
17902
- },
17903
- {
17904
- code: 10030,
17905
- msg: "播放失败",
17906
- desc: "",
17907
- text: "appkey和appsecret不匹配",
17908
- type: "time"
17909
- },
17910
- {
17911
- code: 20002,
17912
- msg: "设备不存在请检查设备连接情况",
17913
- desc: "设备序列号输入有误或者设备未被添加或者通道异常",
17914
- text: "设备不存在",
17915
- type: "time"
17916
- },
17917
- {
17918
- code: 20014,
17919
- msg: "播放失败",
17920
- desc: "",
17921
- text: "deviceSerial不合法",
17922
- type: "time"
17923
- },
17924
- {
17925
- code: 20032,
17926
- msg: "设备不存在请检查设备连接情况",
17927
- desc: "",
17928
- text: "该用户下通道不存在",
17929
- type: "time"
17930
- },
17931
- {
17932
- code: 60024,
17933
- msg: "播放失败请重试",
17934
- desc: "",
17935
- text: "取消订阅操作失败",
17936
- type: "time"
17937
- },
17938
- {
17939
- code: 49999,
17940
- msg: "播放失败请重试",
17941
- desc: "",
17942
- text: "操作异常",
17943
- type: "time"
17944
- }
17945
- ];
17946
- var uikitCode = {
17947
- ptzStart: ptzStart,
17948
- ptzStop: ptzStop,
17949
- talk: talk,
17950
- time: time
17951
- };
17952
-
17953
- var UikitCode = /*#__PURE__*/function () {
17954
- function UikitCode(x, y) {
17955
- _classCallCheck$1(this, UikitCode);
17956
- this.coreX = x;
17957
- this.coreY = y;
17958
- console.log("uikitCode", uikitCode);
17959
- }
17960
- _createClass$1(UikitCode, [{
17961
- key: "toString",
17962
- value: function toString() {
17963
- return "".concat(this.coreX, "-").concat(this.coreY);
17964
- }
17965
- }, {
17966
- key: "matchInfo",
17967
- value: function matchInfo(code, type) {
17968
- if (uikitCode[type]) {
17969
- var obj = {};
17970
- uikitCode[type].map(function (item) {
17971
- if (item.code == code) {
17972
- obj = item;
17973
- }
17974
- });
17975
- return obj;
17976
- } else {
17977
- return {
17978
- code: 500,
17979
- msg: "未知错误",
17980
- desc: "未知的错误码,或错误码类型有误",
17981
- text: "",
17982
- type: type
17983
- };
17984
- }
17985
- }
17986
- }]);
17987
- return UikitCode;
17988
- }();
17989
-
17990
17085
  var Ptz = /*#__PURE__*/function () {
17991
17086
  function Ptz(jSPlugin) {
17992
17087
  var _this = this;
17993
- _classCallCheck$1(this, Ptz);
17088
+ _classCallCheck(this, Ptz);
17994
17089
  this.jSPlugin = jSPlugin;
17995
- this.codeHandler = new UikitCode();
17996
- this.pluginStatus = new Status(this, this.jSPlugin.id);
17997
17090
  console.log("云台初始化");
17998
17091
  if (document.getElementById(this.jSPlugin.id + "-ez-ptz-item")) {
17999
17092
  return false;
@@ -18030,7 +17123,7 @@ var Ptz = /*#__PURE__*/function () {
18030
17123
  _this._handlePtzTouch(e, 'stop');
18031
17124
  };
18032
17125
  }
18033
- _createClass$1(Ptz, [{
17126
+ _createClass(Ptz, [{
18034
17127
  key: "show",
18035
17128
  value: function show() {
18036
17129
  document.getElementById("".concat(this.jSPlugin.id, "-ez-ptz-item")).style = "display: inline-block";
@@ -18093,6 +17186,8 @@ var Ptz = /*#__PURE__*/function () {
18093
17186
  case 3:
18094
17187
  direction = 0; // 右转化为上
18095
17188
  break;
17189
+ default:
17190
+ break;
18096
17191
  }
18097
17192
  }
18098
17193
  document.getElementById("".concat(this.jSPlugin.id, "-ez-ptz-container")).style = "background-image:linear-gradient(".concat(direction === 0 ? 180 : direction === 1 ? 0 : direction === 2 ? 90 : 270, "deg, #1d8dd8 0%, rgba(100,143,252,0.00) 30%)");
@@ -18115,12 +17210,6 @@ var Ptz = /*#__PURE__*/function () {
18115
17210
  if (rt.code == 200) ; else {
18116
17211
  //document.getElementById('ptz-img-container').childNodes[0].src = nextPtzImgFailed;
18117
17212
  // layer.msg(data.msg);
18118
- console.log(rt.code, _this2.codeHandler.matchInfo(rt.code, type === 'start' ? 'ptzStart' : 'ptzStop'));
18119
- _this2.pluginStatus.loadingSetText({
18120
- text: _this2.codeHandler.matchInfo(rt.code, type === 'start' ? 'ptzStart' : 'ptzStop').msg,
18121
- color: 'red',
18122
- delayClear: 2000
18123
- });
18124
17213
  if (rt.code == 60005 || rt.code == 60002 || rt.code == 60003 || rt.code == 60004) {
18125
17214
  document.getElementById("".concat(_this2.jSPlugin.id, "-ez-ptz-container")).style = "background-image:linear-gradient(".concat(direction === 0 ? 180 : direction === 1 ? 0 : direction === 2 ? 90 : 270, "deg, #f45656 0%, rgba(100,143,252,0.00) 30%)");
18126
17215
  }
@@ -22869,6 +21958,9 @@ var Ptz = /*#__PURE__*/function () {
22869
21958
  case 'ULPFEC':
22870
21959
  description.fecMechanisms.push(codec.name.toUpperCase());
22871
21960
  break;
21961
+ default:
21962
+ // only RED and ULPFEC are recognized as FEC mechanisms.
21963
+ break;
22872
21964
  }
22873
21965
  }
22874
21966
  }
@@ -23174,6 +22266,7 @@ var Ptz = /*#__PURE__*/function () {
23174
22266
  case 'a=recvonly':
23175
22267
  case 'a=inactive':
23176
22268
  return lines[i].substr(2);
22269
+ default:
23177
22270
  // FIXME: What should happen here?
23178
22271
  }
23179
22272
  }
@@ -23554,15 +22647,10 @@ Janus$1.init = function (options) {
23554
22647
  Janus$1.attachMediaStream = function (element, stream) {
23555
22648
  if (Janus$1.webRTCAdapter.browserDetails.browser === 'chrome') {
23556
22649
  var chromever = Janus$1.webRTCAdapter.browserDetails.version;
23557
- // if(chromever >= 52) {
23558
- // element.srcObject = stream;
23559
- // } else if(typeof element.src !== 'undefined') {
23560
- // element.src = URL.createObjectURL(stream);
23561
- // } else {
23562
- // Janus.error("Error attaching stream to element");
23563
- // }
23564
22650
  if (chromever >= 52) {
23565
22651
  element.srcObject = stream;
22652
+ } else if (typeof element.src !== 'undefined') {
22653
+ element.src = URL.createObjectURL(stream);
23566
22654
  } else {
23567
22655
  Janus$1.error("Error attaching stream to element");
23568
22656
  }
@@ -26972,7 +26060,7 @@ Janus.init({
26972
26060
  // No remote video yet
26973
26061
  //$('#audioright').append('<video class="rounded centered" id="waitingvideo" width=320 height=240 />');
26974
26062
  if (spinner == null) {
26975
- document.getElementById('audioright');
26063
+ var target = document.getElementById('audioright');
26976
26064
  //spinner = new Spinner({top:100}).spin(target);
26977
26065
  } else {
26978
26066
  spinner.spin();
@@ -27047,10 +26135,8 @@ window.tts = tts;
27047
26135
  var Talk = /*#__PURE__*/function () {
27048
26136
  function Talk(jSPlugin) {
27049
26137
  var _this = this;
27050
- _classCallCheck$1(this, Talk);
26138
+ _classCallCheck(this, Talk);
27051
26139
  this.jSPlugin = jSPlugin;
27052
- this.codeHandler = new UikitCode();
27053
- this.pluginStatus = new Status(this, this.jSPlugin.params.id);
27054
26140
  var audioLeft = document.createElement('div');
27055
26141
  audioLeft.id = "audioleft";
27056
26142
  var audioRight = document.createElement('div');
@@ -27099,7 +26185,7 @@ var Talk = /*#__PURE__*/function () {
27099
26185
  // });
27100
26186
  // });
27101
26187
  }
27102
- _createClass$1(Talk, [{
26188
+ _createClass(Talk, [{
27103
26189
  key: "toString",
27104
26190
  value: function toString() {
27105
26191
  return "".concat(this.coreX, "-").concat(this.coreY);
@@ -27110,11 +26196,6 @@ var Talk = /*#__PURE__*/function () {
27110
26196
  var _this2 = this;
27111
26197
  if (this.jSPlugin.capacity && this.jSPlugin.capacity.support_talk && !(this.jSPlugin.capacity && (this.jSPlugin.capacity.support_talk === '3' || this.jSPlugin.capacity.support_talk === '1'))) {
27112
26198
  if (typeof this.jSPlugin.params.handleError === 'function') {
27113
- this.pluginStatus.loadingSetText({
27114
- text: "设备不支持对讲",
27115
- color: 'red',
27116
- delayClear: 2000
27117
- });
27118
26199
  this.jSPlugin.params.handleError({
27119
26200
  msg: "设备不支持对讲",
27120
26201
  retcode: -1000,
@@ -27165,12 +26246,6 @@ var Talk = /*#__PURE__*/function () {
27165
26246
  window.startTalk();
27166
26247
  }
27167
26248
  } else {
27168
- console.log(data.code, _this2.codeHandler.matchInfo(data.code, 'talk'));
27169
- _this2.pluginStatus.loadingSetText({
27170
- text: _this2.codeHandler.matchInfo(data.code, 'talk').msg || data.msg,
27171
- color: 'red',
27172
- delayClear: 2000
27173
- });
27174
26249
  if (typeof _this2.jSPlugin.params.handleError === 'function') {
27175
26250
  _this2.jSPlugin.params.handleError({
27176
26251
  msg: data.msg,
@@ -27199,7 +26274,7 @@ var Talk = /*#__PURE__*/function () {
27199
26274
  var MobilePtz = /*#__PURE__*/function () {
27200
26275
  function MobilePtz(jSPlugin) {
27201
26276
  var _this = this;
27202
- _classCallCheck$1(this, MobilePtz);
26277
+ _classCallCheck(this, MobilePtz);
27203
26278
  this.jSPlugin = jSPlugin;
27204
26279
  var oS = document.createElement('style');
27205
26280
  oS.innerHTML = "\n body{\n padding: 0;\n margin: 0;\n }\n #mobile-ez-ptz-container {\n display: inline-block;\n width: 375px;\n text-align: center;\n }\n .live-ptz-title{\n height: 25px;\n font-size: 18px;\n color: #2c2c2c;\n text-align: center;\n font-weight: 700;\n margin: 24px 0 12px;\n }\n .live-ptz-intro {\n margin-bottom: 24px;\n color: #aaaaaa;\n }\n .mobile-ez-ptz-wrap {\n background-image: linear-gradient(180deg, #f6f8ff 0%, #ededed6b 50%)\n }\n #mobile-ez-ptz-container .mobile-ez-ptz-container {\n position: relative;\n width: 260px;\n height: 260px;\n background: rgba(255, 255, 255, 0.80);\n border: 1px solid rgba(255, 255, 255, 0.80);\n border-radius: 100%;\n cursor: pointer;\n overflow: hidden;\n margin: auto;\n }\n\n #mobile-ez-ptz-container .mobile-ez-ptz-container .mobile-ez-ptz-icon.top {\n width: 0;\n height: 0;\n border-left: 6px solid transparent;\n border-right: 6px solid transparent;\n border-bottom: 6px solid #aaaaaa;\n position: absolute;\n display: inline-block;\n left: calc(50% - 6px);\n top: 10px;\n }\n\n #mobile-ez-ptz-container .mobile-ez-ptz-container .mobile-ez-ptz-icon.top.active {\n border-bottom-color: #1890FF;\n }\n\n #mobile-ez-ptz-container .mobile-ez-ptz-container .mobile-ez-ptz-icon.bottom {\n width: 0;\n height: 0;\n border-left: 6px solid transparent;\n border-right: 6px solid transparent;\n border-top: 6px solid #aaaaaa;\n position: absolute;\n display: inline-block;\n left: calc(50% - 6px);\n bottom: 10px;\n }\n\n #mobile-ez-ptz-container .mobile-ez-ptz-container .mobile-ez-ptz-icon.bottom.active {\n border-top-color: #1890FF;\n\n }\n\n #mobile-ez-ptz-container .mobile-ez-ptz-container .mobile-ez-ptz-icon.right {\n width: 0;\n height: 0;\n border-top: 6px solid transparent;\n border-bottom: 6px solid transparent;\n border-left: 6px solid #aaaaaa;\n position: absolute;\n display: inline-block;\n top: calc(50% - 6px);\n right: 10px;\n }\n\n #mobile-ez-ptz-container .mobile-ez-ptz-container .mobile-ez-ptz-icon.right.active {\n border-left-color: #1890FF;\n\n }\n\n #mobile-ez-ptz-container .mobile-ez-ptz-container .mobile-ez-ptz-icon.left {\n width: 0;\n height: 0;\n border-top: 6px solid transparent;\n border-bottom: 6px solid transparent;\n border-right: 6px solid #aaaaaa;\n position: absolute;\n display: inline-block;\n top: calc(50% - 6px);\n left: 10px;\n }\n\n #mobile-ez-ptz-container .mobile-ez-ptz-container .mobile-ez-ptz-icon.left.active {\n border-right-color: #1890FF;\n\n }\n\n #mobile-ez-ptz-container .mobile-ez-ptz-container .ez-ptz-main.center {\n width: 52px;\n height: 52px;\n background: #FFFFFF;\n border: 2px solid #eee;\n border-radius: 100%;\n top: calc(50% - 26px);\n left: calc(50% - 26px);\n position: absolute;\n /* box-shadow: 0px -39px 40px 6px #1890ff; */\n }\n\n #mobile-ez-ptz-container .mobile-ez-ptz-wrap {\n display: inline-block;\n padding: 24px 24px;\n border-radius: 100%;\n overflow: hidden;\n }\n\n #mobile-ez-ptz-container .ez-ptz-close {\n position: absolute;\n color: #FFFFFF;\n top: 0;\n right: 0px;\n }";
@@ -27230,7 +26305,7 @@ var MobilePtz = /*#__PURE__*/function () {
27230
26305
  mobileContainer.appendChild(ptzWrap);
27231
26306
  }
27232
26307
  //document.getElementById(jSPlugin.id).appendChild(mobileContainer);
27233
- insertAfter$1(mobileContainer, document.getElementById("".concat(this.jSPlugin.id, "-wrap")));
26308
+ insertAfter(mobileContainer, document.getElementById("".concat(this.jSPlugin.id, "-wrap")));
27234
26309
  // 云台控制事件绑定
27235
26310
  // 云台控制
27236
26311
  document.getElementById("mobile-ez-ptz-item").ontouchstart = function (e) {
@@ -27255,7 +26330,7 @@ var MobilePtz = /*#__PURE__*/function () {
27255
26330
  _this._handlePtzTouch(e, 'stop');
27256
26331
  };
27257
26332
  }
27258
- _createClass$1(MobilePtz, [{
26333
+ _createClass(MobilePtz, [{
27259
26334
  key: "show",
27260
26335
  value: function show() {
27261
26336
  document.getElementById("mobile-ez-ptz-item").style = "display: inline-block";
@@ -27335,8 +26410,8 @@ var MobilePtz = /*#__PURE__*/function () {
27335
26410
  }();
27336
26411
 
27337
26412
  var retcode = 0;
27338
- var msg = "成功";
27339
- var data$7 = {
26413
+ var msg$1 = "成功";
26414
+ var data$1 = {
27340
26415
  header: {
27341
26416
  color: "#FFFFFF",
27342
26417
  backgroundColor: "#000000",
@@ -27458,11 +26533,11 @@ var data$7 = {
27458
26533
  };
27459
26534
  var emptyData = {
27460
26535
  retcode: retcode,
27461
- msg: msg,
27462
- data: data$7
26536
+ msg: msg$1,
26537
+ data: data$1
27463
26538
  };
27464
26539
 
27465
- var data$6 = {
26540
+ var data$2 = {
27466
26541
  header: {
27467
26542
  color: "#FFFFFF",
27468
26543
  backgroundColor: "#000000",
@@ -27563,10 +26638,10 @@ var data$6 = {
27563
26638
  }
27564
26639
  };
27565
26640
  var mobileLiveFullData = {
27566
- data: data$6
26641
+ data: data$2
27567
26642
  };
27568
26643
 
27569
- var data$5 = {
26644
+ var data$3 = {
27570
26645
  header: {
27571
26646
  color: "#FFFFFF",
27572
26647
  backgroundColor: "#000000",
@@ -27673,7 +26748,7 @@ var data$5 = {
27673
26748
  }
27674
26749
  };
27675
26750
  var mobileRecFullData = {
27676
- data: data$5
26751
+ data: data$3
27677
26752
  };
27678
26753
 
27679
26754
  var data$4 = {
@@ -27790,7 +26865,7 @@ var pcLiveFullData = {
27790
26865
  data: data$4
27791
26866
  };
27792
26867
 
27793
- var data$3 = {
26868
+ var data$5 = {
27794
26869
  header: {
27795
26870
  color: "#FFFFFF",
27796
26871
  backgroundColor: "#000000",
@@ -27895,10 +26970,10 @@ var data$3 = {
27895
26970
  }
27896
26971
  };
27897
26972
  var pcLiveSecurityData = {
27898
- data: data$3
26973
+ data: data$5
27899
26974
  };
27900
26975
 
27901
- var data$2 = {
26976
+ var data$6 = {
27902
26977
  header: {
27903
26978
  color: "#FFFFFF",
27904
26979
  backgroundColor: "#000000",
@@ -27999,10 +27074,10 @@ var data$2 = {
27999
27074
  }
28000
27075
  };
28001
27076
  var pcLiveSimpleData = {
28002
- data: data$2
27077
+ data: data$6
28003
27078
  };
28004
27079
 
28005
- var data$1 = {
27080
+ var data$7 = {
28006
27081
  header: {
28007
27082
  color: "#FFFFFF",
28008
27083
  backgroundColor: "#000000",
@@ -28103,10 +27178,10 @@ var data$1 = {
28103
27178
  }
28104
27179
  };
28105
27180
  var pcLiveVoiceData = {
28106
- data: data$1
27181
+ data: data$7
28107
27182
  };
28108
27183
 
28109
- var data = {
27184
+ var data$8 = {
28110
27185
  header: {
28111
27186
  color: "#FFFFFF",
28112
27187
  backgroundColor: "#000000",
@@ -28207,7 +27282,7 @@ var data = {
28207
27282
  }
28208
27283
  };
28209
27284
  var pcRecFullDataData = {
28210
- data: data
27285
+ data: data$8
28211
27286
  };
28212
27287
 
28213
27288
  var officeTemplateList = [{
@@ -28306,7 +27381,7 @@ var officeTemplateList = [{
28306
27381
  var Zoom = /*#__PURE__*/function () {
28307
27382
  function Zoom(jSPlugin) {
28308
27383
  var _this = this;
28309
- _classCallCheck$1(this, Zoom);
27384
+ _classCallCheck(this, Zoom);
28310
27385
  this.jSPlugin = jSPlugin;
28311
27386
  this.enableZoom = false;
28312
27387
  this.isMouseDown = false, this.videoWidth = 1920;
@@ -28349,12 +27424,12 @@ var Zoom = /*#__PURE__*/function () {
28349
27424
  // console.log("鼠标进入", event);
28350
27425
  // });
28351
27426
  }
28352
- _createClass$1(Zoom, [{
27427
+ _createClass(Zoom, [{
28353
27428
  key: "onMouseDown",
28354
27429
  value: function onMouseDown(event) {
28355
- this.currentPosition;
28356
- this.currentScale;
28357
- var enableZoom = this.enableZoom;
27430
+ var currentPosition = this.currentPosition,
27431
+ currentScale = this.currentScale,
27432
+ enableZoom = this.enableZoom;
28358
27433
  if (!enableZoom) {
28359
27434
  return false;
28360
27435
  }
@@ -28571,7 +27646,7 @@ function lineLength(point1, point2) {
28571
27646
  var MobileZoom = /*#__PURE__*/function () {
28572
27647
  function MobileZoom(jSPlugin) {
28573
27648
  var _this = this;
28574
- _classCallCheck$1(this, MobileZoom);
27649
+ _classCallCheck(this, MobileZoom);
28575
27650
  this.jSPlugin = jSPlugin;
28576
27651
  this.enableZoom = false;
28577
27652
  this.isDubboTouch = false, this.videoWidth = 0;
@@ -28628,14 +27703,9 @@ var MobileZoom = /*#__PURE__*/function () {
28628
27703
  // this.currentPosition.right = info.width;
28629
27704
  // this.currentPosition.bottom = info.height;
28630
27705
  }
28631
- _createClass$1(MobileZoom, [{
27706
+ _createClass(MobileZoom, [{
28632
27707
  key: "onTouchstart",
28633
27708
  value: function onTouchstart(event) {
28634
- //xuehb 开始手机端电子放大前校验回调状态
28635
- var verifyStatus = this.jSPlugin.beforeMobileZoomVerify();
28636
- if (!verifyStatus) {
28637
- return false;
28638
- }
28639
27709
  if (!this.inited) {
28640
27710
  var info = this.jSPlugin.jSPlugin._JSPlayM4_GetFrameInfo(0);
28641
27711
  this.videoWidth = info.width;
@@ -28644,8 +27714,8 @@ var MobileZoom = /*#__PURE__*/function () {
28644
27714
  this.currentPosition.bottom = info.height;
28645
27715
  this.inited = true;
28646
27716
  }
28647
- var currentPosition = this.currentPosition;
28648
- this.currentScale;
27717
+ var currentPosition = this.currentPosition,
27718
+ currentScale = this.currentScale;
28649
27719
  console.log("双指按下", currentPosition);
28650
27720
  var touches = event.touches;
28651
27721
  var events = touches[0];
@@ -28670,11 +27740,6 @@ var MobileZoom = /*#__PURE__*/function () {
28670
27740
  var isDubboTouch = this.isDubboTouch,
28671
27741
  currentPosition = this.currentPosition,
28672
27742
  clientRect = this.clientRect;
28673
- //xuehb 开始手机端电子放大前校验回调状态
28674
- var verifyStatus = this.jSPlugin.beforeMobileZoomVerify();
28675
- if (!verifyStatus) {
28676
- return false;
28677
- }
28678
27743
  // console.log("event.touches.lenght",event.touches.length);
28679
27744
  if (event.touches.length === 1) {
28680
27745
  var events = event.touches[0];
@@ -28745,13 +27810,6 @@ var MobileZoom = /*#__PURE__*/function () {
28745
27810
  document.getElementById("".concat(this.jSPlugin.id, "-zoom-container")).style.display = "none";
28746
27811
  this.renderDot();
28747
27812
  }
28748
- //xuehb 重置放大
28749
- }, {
28750
- key: "resetZoom",
28751
- value: function resetZoom() {
28752
- this.currentScale = 1;
28753
- document.getElementById("".concat(this.jSPlugin.id, "-zoom-container")).style.display = "none";
28754
- }
28755
27813
  }, {
28756
27814
  key: "doScale",
28757
27815
  value: function doScale() {
@@ -28813,13 +27871,11 @@ var MEDIAWIDTH = 500;
28813
27871
  var Theme = /*#__PURE__*/function () {
28814
27872
  function Theme(jSPlugin) {
28815
27873
  var _this = this;
28816
- _classCallCheck$1(this, Theme);
27874
+ _classCallCheck(this, Theme);
28817
27875
  this.jSPlugin = jSPlugin;
28818
27876
  this.isNeedRenderHeader = false;
28819
27877
  this.isNeedRenderFooter = false;
28820
- this.autoFocus = 0;
28821
- this.autoFocusTimer = null;
28822
- this.recordTimer = null;
27878
+ this.autoFocus = 0, this.autoFocusTimer = null, this.recordTimer = null;
28823
27879
  this.nextRate = 1;
28824
27880
  this.showHD = false;
28825
27881
  this.themeInited = false;
@@ -28842,7 +27898,6 @@ var Theme = /*#__PURE__*/function () {
28842
27898
  type: matchEzopenUrl(jSPlugin.url).type
28843
27899
  }
28844
27900
  };
28845
- this.pluginStatus = new Status(this, this.jSPlugin.params.id);
28846
27901
  console.log(" matchEzopenUrl(jSPlugin.url)", matchEzopenUrl(jSPlugin.url), this.decoderState.state);
28847
27902
  this.inited = false;
28848
27903
  this.isMobile = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i);
@@ -28892,7 +27947,7 @@ var Theme = /*#__PURE__*/function () {
28892
27947
  addCss("".concat(this.jSPlugin.staticPath, "/speed/speed.css"));
28893
27948
  addCss("".concat(this.jSPlugin.staticPath, "/css/theme.css"));
28894
27949
  }
28895
- _createClass$1(Theme, [{
27950
+ _createClass(Theme, [{
28896
27951
  key: "fetchThemeData",
28897
27952
  value: function fetchThemeData(themeId) {
28898
27953
  var _this2 = this;
@@ -29039,17 +28094,6 @@ var Theme = /*#__PURE__*/function () {
29039
28094
  }) >= 0;
29040
28095
  if (isNeedRoom) {
29041
28096
  if (this.isMobile) {
29042
- //xuehb 开始手机端电子放大前校验回调,真正可以阻止放大的方法
29043
- this.jSPlugin.beforeMobileZoomVerify = function () {
29044
- //xuehb 播放状态才可以电子放大
29045
- var play = _this4.decoderState.state.play;
29046
- console.log('手机端电子放大前校验回调play------------', play);
29047
- if (!play) {
29048
- return false;
29049
- } else {
29050
- return true;
29051
- }
29052
- };
29053
28097
  this.jSPlugin.Zoom = new MobileZoom(this.jSPlugin);
29054
28098
  } else {
29055
28099
  this.jSPlugin.Zoom = new Zoom(this.jSPlugin);
@@ -29228,12 +28272,10 @@ var Theme = /*#__PURE__*/function () {
29228
28272
  document.getElementById("".concat(_this5.jSPlugin.id, "-speed-content")).children[1].children[0].style.color = options[item] ? activeColor : color;
29229
28273
  document.getElementById("".concat(_this5.jSPlugin.id, "-speed-content")).children[1].children[0].style.borderColor = options[item] ? activeColor : color;
29230
28274
  }
29231
- if (document.getElementById("".concat(_this5.jSPlugin.id, "-select-mask"))) {
29232
- if (_this5.isMobile && options[item]) {
29233
- document.getElementById("".concat(_this5.jSPlugin.id, "-select-mask")).style.display = "block";
29234
- } else {
29235
- document.getElementById("".concat(_this5.jSPlugin.id, "-select-mask")).style.display = "none";
29236
- }
28275
+ if (_this5.isMobile && options[item]) {
28276
+ document.getElementById("".concat(_this5.jSPlugin.id, "-select-mask")).style.display = "block";
28277
+ } else {
28278
+ document.getElementById("".concat(_this5.jSPlugin.id, "-select-mask")).style.display = "none";
29237
28279
  }
29238
28280
  break;
29239
28281
  case 'cloudRec':
@@ -29257,6 +28299,8 @@ var Theme = /*#__PURE__*/function () {
29257
28299
  document.getElementById("".concat(_this5.jSPlugin.id, "-rec-content")).children[0].children[0].style.fill = options[item] ? activeColor : color;
29258
28300
  }
29259
28301
  break;
28302
+ default:
28303
+ break;
29260
28304
  }
29261
28305
  _this5.decoderState.state = Object.assign(_this5.decoderState.state, options);
29262
28306
  });
@@ -29538,24 +28582,6 @@ var Theme = /*#__PURE__*/function () {
29538
28582
  }
29539
28583
  }
29540
28584
  }
29541
- }, {
29542
- key: "setDisabled",
29543
- value: function setDisabled(status) {
29544
- var _this$decoderState$st = this.decoderState.state,
29545
- sound = _this$decoderState$st.sound,
29546
- hd = _this$decoderState$st.hd;
29547
- //设置按钮禁止点击状态
29548
- document.getElementById(sound ? "".concat(this.jSPlugin.id, "-sound-icon") : "".concat(this.jSPlugin.id, "-nosound-icon")) != null && document.getElementById(sound ? "".concat(this.jSPlugin.id, "-sound-icon") : "".concat(this.jSPlugin.id, "-nosound-icon")).setAttribute('style', status ? 'cursor: not-allowed;fill: gray' : 'cursor: default');
29549
- document.getElementById("".concat(this.jSPlugin.id, "-recordvideo-icon")) != null && document.getElementById("".concat(this.jSPlugin.id, "-recordvideo-icon")).setAttribute('style', status ? 'cursor: not-allowed;fill: gray' : 'cursor: default');
29550
- document.getElementById("".concat(this.jSPlugin.id, "-capturePicture-icon")) != null && document.getElementById("".concat(this.jSPlugin.id, "-capturePicture-icon")).setAttribute('style', status ? 'cursor: not-allowed;fill: gray' : 'cursor: default');
29551
- document.getElementById("".concat(this.jSPlugin.id, "-talk-icon")) != null && document.getElementById("".concat(this.jSPlugin.id, "-talk-icon")).setAttribute('style', status ? 'cursor: not-allowed;fill: gray' : 'cursor: default');
29552
- document.getElementById("".concat(this.jSPlugin.id, "-zoom-icon")) != null && document.getElementById("".concat(this.jSPlugin.id, "-zoom-icon")).setAttribute('style', status ? 'cursor: not-allowed;fill: gray' : 'cursor: default');
29553
- document.getElementById("".concat(this.jSPlugin.id, "-pantile-icon")) != null && document.getElementById("".concat(this.jSPlugin.id, "-pantile-icon")).setAttribute('style', status ? 'cursor: not-allowed;fill: gray' : 'cursor: default');
29554
- // document.getElementById(`${this.jSPlugin.id}-expend-icon`).setAttribute('style', status ? 'cursor: not-allowed;fill: gray' : 'cursor: default');
29555
- // document.getElementById(`${this.jSPlugin.id}-webExpend-icon`).setAttribute('style', status ? 'cursor: not-allowed;fill: gray' : 'cursor: default');
29556
- document.getElementById(hd ? "".concat(this.jSPlugin.id, "-hdSelect-icon") : "".concat(this.jSPlugin.id, "-sdSelect-icon")) != null && document.getElementById(hd ? "".concat(this.jSPlugin.id, "-hdSelect-icon") : "".concat(this.jSPlugin.id, "-sdSelect-icon")).setAttribute('style', status ? 'cursor: not-allowed;fill: gray' : 'cursor: default');
29557
- document.getElementById("".concat(this.jSPlugin.id, "-speed-text")) != null && document.getElementById("".concat(this.jSPlugin.id, "-speed-text")).setAttribute('style', document.getElementById("".concat(this.jSPlugin.id, "-speed-text")).getAttribute('style') + ';' + (status ? 'cursor: not-allowed;color: gray;border-color: gray;' : 'cursor: default;color: #ffffff;border-color: #ffffff;'));
29558
- }
29559
28585
  }, {
29560
28586
  key: "matchBtn",
29561
28587
  value: function matchBtn(btnId) {
@@ -29590,58 +28616,32 @@ var Theme = /*#__PURE__*/function () {
29590
28616
  case 'play':
29591
28617
  btnItem.title = "播放/结束播放";
29592
28618
  btnItem.id = btnId;
29593
- btnItem.domString = '<div style="height: 100%">' + "<svg id=\"".concat(this.jSPlugin.id + '-play-icon', "\" class=\"theme-icon-item-icon\" style=\"display:none\" width=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" height=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" fill=\"").concat(btnItem.color, "\" viewBox=\"-6 -6 32 32\">\n <path id=\"Stroke-1\" class=\"st1\" d=\"M10.5,1.7c-4.9,0-8.8,4-8.8,8.8s4,8.8,8.8,8.8s8.8-4,8.8-8.8S15.4,1.7,10.5,1.7z M10.5,2.7\n c4.3,0,7.8,3.5,7.8,7.8s-3.5,7.8-7.8,7.8s-7.8-3.5-7.8-7.8S6.2,2.7,10.5,2.7z\"/>\n <path class=\"st2\" d=\"M8.7,8C9,8,9.3,8.3,9.3,8.6v3.8C9.3,12.7,9,13,8.7,13C8.3,13,8,12.7,8,12.4V8.6C8,8.3,8.3,8,8.7,8z\"/>\n <path id=\"Rectangle-Copy-10\" class=\"st2\" d=\"M12.8,8c0.3,0,0.6,0.3,0.6,0.6v3.8c0,0.3-0.3,0.6-0.6,0.6c-0.3,0-0.6-0.3-0.6-0.6V8.6\n C12.2,8.3,12.5,8,12.8,8z\"/>\n </svg>") + "<svg id=\"".concat(this.jSPlugin.id + '-stop-icon', "\" class=\"theme-icon-item-icon\" fill=\"").concat(btnItem.color, "\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" width=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" height=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" viewBox=\"-6 -6 32 32\">") + '<path d="M13,9.8L10.1,8C9.9,7.9,9.7,7.9,9.5,7.9c-0.6,0-1,0.4-1,1v3.7c0,0.2,0.1,0.4,0.2,0.5c0.3,0.5,0.9,0.6,1.4,0.3 l2.9-1.8c0.1-0.1,0.2-0.2,0.3-0.3C13.6,10.7,13.4,10.1,13,9.8z" />' + '<path d="M10.5,1.9c-4.9,0-8.8,4-8.8,8.8c0,4.9,4,8.8,8.8,8.8s8.8-4,8.8-8.8C19.4,5.8,15.4,1.9,10.5,1.9z M10.5,18.5 c-4.3,0-7.8-3.5-7.8-7.8s3.5-7.8,7.8-7.8c4.3,0,7.8,3.5,7.8,7.8S14.9,18.5,10.5,18.5z" />' + '</svg>' + '</div>';
28619
+ btnItem.domString = '<div style="height: 100%">' + "<svg class=\"theme-icon-item-icon\" style=\"display:none\" width=\"".concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" height=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" fill=\"").concat(btnItem.color, "\" viewBox=\"-6 -6 32 32\">\n <path id=\"Stroke-1\" class=\"st1\" d=\"M10.5,1.7c-4.9,0-8.8,4-8.8,8.8s4,8.8,8.8,8.8s8.8-4,8.8-8.8S15.4,1.7,10.5,1.7z M10.5,2.7\n c4.3,0,7.8,3.5,7.8,7.8s-3.5,7.8-7.8,7.8s-7.8-3.5-7.8-7.8S6.2,2.7,10.5,2.7z\"/>\n <path class=\"st2\" d=\"M8.7,8C9,8,9.3,8.3,9.3,8.6v3.8C9.3,12.7,9,13,8.7,13C8.3,13,8,12.7,8,12.4V8.6C8,8.3,8.3,8,8.7,8z\"/>\n <path id=\"Rectangle-Copy-10\" class=\"st2\" d=\"M12.8,8c0.3,0,0.6,0.3,0.6,0.6v3.8c0,0.3-0.3,0.6-0.6,0.6c-0.3,0-0.6-0.3-0.6-0.6V8.6\n C12.2,8.3,12.5,8,12.8,8z\"/>\n </svg>") + "<svg class=\"theme-icon-item-icon\" fill=\"".concat(btnItem.color, "\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" width=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" height=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" viewBox=\"-6 -6 32 32\">") + '<path d="M13,9.8L10.1,8C9.9,7.9,9.7,7.9,9.5,7.9c-0.6,0-1,0.4-1,1v3.7c0,0.2,0.1,0.4,0.2,0.5c0.3,0.5,0.9,0.6,1.4,0.3 l2.9-1.8c0.1-0.1,0.2-0.2,0.3-0.3C13.6,10.7,13.4,10.1,13,9.8z" />' + '<path d="M10.5,1.9c-4.9,0-8.8,4-8.8,8.8c0,4.9,4,8.8,8.8,8.8s8.8-4,8.8-8.8C19.4,5.8,15.4,1.9,10.5,1.9z M10.5,18.5 c-4.3,0-7.8-3.5-7.8-7.8s3.5-7.8,7.8-7.8c4.3,0,7.8,3.5,7.8,7.8S14.9,18.5,10.5,18.5z" />' + '</svg>' + '</div>';
29594
28620
  btnItem.onclick = function () {
29595
28621
  var _this9$decoderState$s = _this9.decoderState.state,
29596
28622
  play = _this9$decoderState$s.play,
29597
- isEditing = _this9$decoderState$s.isEditing,
29598
- rec = _this9$decoderState$s.rec,
29599
- cloudRec = _this9$decoderState$s.cloudRec,
29600
- recordvideo = _this9$decoderState$s.recordvideo;
28623
+ isEditing = _this9$decoderState$s.isEditing;
29601
28624
  if (isEditing) {
29602
28625
  return false;
29603
28626
  }
29604
28627
  if (play) {
29605
- if (rec || cloudRec) {
29606
- //回放时调用暂停,而不是结束播放
29607
- _this9.jSPlugin.pause();
29608
- } else {
29609
- _this9.jSPlugin.stop();
29610
- }
29611
- //停止录像并关闭录像计时
29612
- if (recordvideo) {
29613
- // this.jSPlugin.stopSave();
29614
- _this9.setDecoderState({
29615
- recordvideo: false
29616
- });
29617
- }
29618
- _this9.jSPlugin.Zoom.stopZoom();
28628
+ _this9.jSPlugin.stop();
29619
28629
  } else {
29620
- if (rec || cloudRec) {
29621
- //回放时调用恢复播放状态
29622
- _this9.jSPlugin.resume();
29623
- } else {
29624
- _this9.jSPlugin.play();
29625
- }
29626
- //xuehb 重置手机端电子放大状态
29627
- _this9.resetMobileZoomStatus();
28630
+ _this9.jSPlugin.play();
29628
28631
  }
29629
28632
  _this9.setDecoderState({
29630
- zoom: false,
29631
28633
  play: !play
29632
28634
  });
29633
- _this9.setDisabled(play);
29634
28635
  };
29635
28636
  return btnItem;
29636
28637
  case 'sound':
29637
28638
  btnItem.title = "声音";
29638
28639
  btnItem.id = btnId;
29639
- btnItem.domString = '<span style="height: 100%">' + "<svg class=\"theme-icon-item-icon\" id=\"".concat(this.jSPlugin.id, "-nosound-icon\" style=\"display:none\" fill=\"").concat(btnItem.color, "\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" width=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" height=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" viewBox=\"-6 -6 32 32\">\n <path d=\"M8.5,4.2c0.8-0.7,2.1-0.2,2.2,0.9l0,0.1v10c0,1.1-1.2,1.7-2.1,1.1l-0.1-0.1l-3.3-2.8C5,13.2,5,12.9,5.1,12.7 c0.2-0.2,0.4-0.2,0.6-0.1l0.1,0.1l3.3,2.8c0.2,0.2,0.5,0.1,0.5-0.2l0-0.1v-10c0-0.3-0.3-0.4-0.5-0.3L9.2,5L5.9,7.8 C5.6,7.9,5.3,7.9,5.1,7.7C5,7.5,5,7.3,5.1,7.1L5.2,7L8.5,4.2z\"/>\n <path d=\"M5.5,6.9C5.8,6.9,6,7.1,6,7.4c0,0.2-0.2,0.4-0.4,0.5l-0.1,0h-2C3.4,7.9,3.3,8,3.2,8.2l0,0.1v4 c0,0.2,0.1,0.3,0.3,0.3l0.1,0h2C5.8,12.5,6,12.7,6,13c0,0.2-0.2,0.4-0.4,0.5l-0.1,0h-2c-0.7,0-1.3-0.5-1.3-1.2l0-0.1v-4 c0-0.7,0.5-1.3,1.2-1.3l0.1,0H5.5z\"/>\n <path d=\"M17.4,7.9c0.2-0.2,0.5-0.2,0.7,0c0.2,0.2,0.2,0.4,0.1,0.6l-0.1,0.1l-3.8,3.8c-0.2,0.2-0.5,0.2-0.7,0 c-0.2-0.2-0.2-0.4-0.1-0.6l0.1-0.1L17.4,7.9z\"/>\n <path d=\"M13.7,7.9c0.2-0.2,0.4-0.2,0.6-0.1l0.1,0.1l3.8,3.8c0.2,0.2,0.2,0.5,0,0.7c-0.2,0.2-0.4,0.2-0.6,0.1l-0.1-0.1 l-3.7-3.8C13.5,8.4,13.5,8.1,13.7,7.9z\"/>\n </svg>") + "<svg class=\"theme-icon-item-icon\" id=\"".concat(this.jSPlugin.id, "-sound-icon\" style=\"display:inline-block\" width=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" height=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" fill=\"").concat(btnItem.color, "\" viewBox=\"-6 -6 32 32\">\n <path d=\"M13.2,7.1c0.1-0.2,0.5-0.3,0.7-0.2c1.1,0.7,1.9,2.2,1.9,3.7c0,1.6-0.7,3-1.9,3.7\n c-0.2,0.1-0.5,0.1-0.7-0.2c-0.1-0.2-0.1-0.5,0.2-0.7c0.8-0.5,1.4-1.6,1.4-2.9c0-1.3-0.6-2.4-1.4-2.9C13.1,7.6,13,7.3,13.2,7.1z\"/>\n <path d=\"M15.7,4.5c0.2-0.2,0.5-0.2,0.7-0.1C18,5.8,19,8.2,19,10.7c0,2.5-1,4.8-2.7,6.3\n c-0.2,0.2-0.5,0.2-0.7-0.1c-0.2-0.2-0.2-0.5,0.1-0.7c1.4-1.2,2.3-3.3,2.3-5.5c0-2.2-0.9-4.3-2.3-5.5C15.5,5,15.5,4.7,15.7,4.5z\"/>\n <path id=\"Stroke-5\" class=\"st1\" d=\"M8.5,4.7c0.8-0.7,2.1-0.2,2.2,0.9l0,0.1v10c0,1.1-1.2,1.7-2.1,1.1l-0.1-0.1l-3.3-2.8\n C5,13.7,5,13.4,5.1,13.2c0.2-0.2,0.4-0.2,0.6-0.1l0.1,0.1l3.3,2.8c0.2,0.2,0.5,0.1,0.5-0.2l0-0.1v-10c0-0.3-0.3-0.4-0.5-0.3l-0.1,0\n L5.9,8.3C5.6,8.4,5.3,8.4,5.1,8.2C5,8,5,7.7,5.1,7.6l0.1-0.1L8.5,4.7z\"/>\n <path d=\"M5.5,7.4C5.8,7.4,6,7.6,6,7.9c0,0.2-0.2,0.4-0.4,0.5l-0.1,0h-2c-0.2,0-0.3,0.1-0.3,0.3l0,0.1v4\n c0,0.2,0.1,0.3,0.3,0.3l0.1,0h2C5.8,13,6,13.2,6,13.5c0,0.2-0.2,0.4-0.4,0.5l-0.1,0h-2c-0.7,0-1.3-0.5-1.3-1.2l0-0.1v-4\n c0-0.7,0.5-1.3,1.2-1.3l0.1,0H5.5z\"/>\n </svg>") + '</span>';
28640
+ btnItem.domString = '<span style="height: 100%">' + "<svg class=\"theme-icon-item-icon\" style=\"display:none\" fill=\"".concat(btnItem.color, "\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" width=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" height=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" viewBox=\"-6 -6 32 32\">\n <path d=\"M8.5,4.2c0.8-0.7,2.1-0.2,2.2,0.9l0,0.1v10c0,1.1-1.2,1.7-2.1,1.1l-0.1-0.1l-3.3-2.8C5,13.2,5,12.9,5.1,12.7 c0.2-0.2,0.4-0.2,0.6-0.1l0.1,0.1l3.3,2.8c0.2,0.2,0.5,0.1,0.5-0.2l0-0.1v-10c0-0.3-0.3-0.4-0.5-0.3L9.2,5L5.9,7.8 C5.6,7.9,5.3,7.9,5.1,7.7C5,7.5,5,7.3,5.1,7.1L5.2,7L8.5,4.2z\"/>\n <path d=\"M5.5,6.9C5.8,6.9,6,7.1,6,7.4c0,0.2-0.2,0.4-0.4,0.5l-0.1,0h-2C3.4,7.9,3.3,8,3.2,8.2l0,0.1v4 c0,0.2,0.1,0.3,0.3,0.3l0.1,0h2C5.8,12.5,6,12.7,6,13c0,0.2-0.2,0.4-0.4,0.5l-0.1,0h-2c-0.7,0-1.3-0.5-1.3-1.2l0-0.1v-4 c0-0.7,0.5-1.3,1.2-1.3l0.1,0H5.5z\"/>\n <path d=\"M17.4,7.9c0.2-0.2,0.5-0.2,0.7,0c0.2,0.2,0.2,0.4,0.1,0.6l-0.1,0.1l-3.8,3.8c-0.2,0.2-0.5,0.2-0.7,0 c-0.2-0.2-0.2-0.4-0.1-0.6l0.1-0.1L17.4,7.9z\"/>\n <path d=\"M13.7,7.9c0.2-0.2,0.4-0.2,0.6-0.1l0.1,0.1l3.8,3.8c0.2,0.2,0.2,0.5,0,0.7c-0.2,0.2-0.4,0.2-0.6,0.1l-0.1-0.1 l-3.7-3.8C13.5,8.4,13.5,8.1,13.7,7.9z\"/>\n </svg>") + "<svg class=\"theme-icon-item-icon\" style=\"display:inline-block\" width=\"".concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" height=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" fill=\"").concat(btnItem.color, "\" viewBox=\"-6 -6 32 32\">\n <path d=\"M13.2,7.1c0.1-0.2,0.5-0.3,0.7-0.2c1.1,0.7,1.9,2.2,1.9,3.7c0,1.6-0.7,3-1.9,3.7\n c-0.2,0.1-0.5,0.1-0.7-0.2c-0.1-0.2-0.1-0.5,0.2-0.7c0.8-0.5,1.4-1.6,1.4-2.9c0-1.3-0.6-2.4-1.4-2.9C13.1,7.6,13,7.3,13.2,7.1z\"/>\n <path d=\"M15.7,4.5c0.2-0.2,0.5-0.2,0.7-0.1C18,5.8,19,8.2,19,10.7c0,2.5-1,4.8-2.7,6.3\n c-0.2,0.2-0.5,0.2-0.7-0.1c-0.2-0.2-0.2-0.5,0.1-0.7c1.4-1.2,2.3-3.3,2.3-5.5c0-2.2-0.9-4.3-2.3-5.5C15.5,5,15.5,4.7,15.7,4.5z\"/>\n <path id=\"Stroke-5\" class=\"st1\" d=\"M8.5,4.7c0.8-0.7,2.1-0.2,2.2,0.9l0,0.1v10c0,1.1-1.2,1.7-2.1,1.1l-0.1-0.1l-3.3-2.8\n C5,13.7,5,13.4,5.1,13.2c0.2-0.2,0.4-0.2,0.6-0.1l0.1,0.1l3.3,2.8c0.2,0.2,0.5,0.1,0.5-0.2l0-0.1v-10c0-0.3-0.3-0.4-0.5-0.3l-0.1,0\n L5.9,8.3C5.6,8.4,5.3,8.4,5.1,8.2C5,8,5,7.7,5.1,7.6l0.1-0.1L8.5,4.7z\"/>\n <path d=\"M5.5,7.4C5.8,7.4,6,7.6,6,7.9c0,0.2-0.2,0.4-0.4,0.5l-0.1,0h-2c-0.2,0-0.3,0.1-0.3,0.3l0,0.1v4\n c0,0.2,0.1,0.3,0.3,0.3l0.1,0h2C5.8,13,6,13.2,6,13.5c0,0.2-0.2,0.4-0.4,0.5l-0.1,0h-2c-0.7,0-1.3-0.5-1.3-1.2l0-0.1v-4\n c0-0.7,0.5-1.3,1.2-1.3l0.1,0H5.5z\"/>\n </svg>") + '</span>';
29640
28641
  btnItem.onclick = function () {
29641
28642
  var _this9$decoderState$s2 = _this9.decoderState.state,
29642
28643
  play = _this9$decoderState$s2.play,
29643
- sound = _this9$decoderState$s2.sound,
29644
- talk = _this9$decoderState$s2.talk;
28644
+ sound = _this9$decoderState$s2.sound;
29645
28645
  if (play) {
29646
28646
  if (sound) {
29647
28647
  _this9.jSPlugin.closeSound();
@@ -29649,13 +28649,10 @@ var Theme = /*#__PURE__*/function () {
29649
28649
  sound: false
29650
28650
  });
29651
28651
  } else {
29652
- //xuehb 判断是否打开对讲了,对讲情况下不可以打开声音
29653
- if (!talk) {
29654
- _this9.jSPlugin.openSound();
29655
- _this9.setDecoderState({
29656
- sound: true
29657
- });
29658
- }
28652
+ _this9.jSPlugin.openSound();
28653
+ _this9.setDecoderState({
28654
+ sound: true
28655
+ });
29659
28656
  }
29660
28657
  }
29661
28658
  };
@@ -29663,7 +28660,7 @@ var Theme = /*#__PURE__*/function () {
29663
28660
  case 'recordvideo':
29664
28661
  btnItem.title = "录屏";
29665
28662
  btnItem.id = btnId;
29666
- btnItem.domString = "<svg id=\"".concat(this.jSPlugin.id, "-recordvideo-icon\" class=\"theme-icon-item-icon\" fill=\"").concat(btnItem.color, "\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" width=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" height=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" viewBox=\"-6 -6 32 32\">") + '<path d="M11.6,5.3H4.7c-1.4,0-2.5,1.1-2.5,2.5v5.9c0,1.4,1.1,2.5,2.5,2.5h6.9c1.4,0,2.5-1.1,2.5-2.5V7.7 C14.1,6.4,13,5.3,11.6,5.3z M4.7,6.3h6.9c0.8,0,1.5,0.7,1.5,1.5v5.9c0,0.8-0.7,1.5-1.5,1.5H4.7c-0.8,0-1.5-0.7-1.5-1.5V7.7 C3.3,6.9,3.9,6.3,4.7,6.3z" />' + '<path d="M16.6,6.7c0.9-0.8,2.3-0.1,2.4,1l0,0.1v5.7c0,1.2-1.3,1.9-2.3,1.2l-0.1-0.1L13.3,12 c-0.2-0.2-0.2-0.5-0.1-0.7c0.2-0.2,0.4-0.2,0.6-0.1l0.1,0.1l3.3,2.7c0.3,0.2,0.7,0.1,0.8-0.3l0-0.1V7.8c0-0.4-0.4-0.6-0.7-0.4 l-0.1,0l-3.3,2.7c-0.2,0.2-0.5,0.1-0.7-0.1c-0.2-0.2-0.1-0.5,0-0.6l0.1-0.1L16.6,6.7z" />' + '</svg>';
28663
+ btnItem.domString = "<svg class=\"theme-icon-item-icon\" fill=\"".concat(btnItem.color, "\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" width=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" height=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" viewBox=\"-6 -6 32 32\">") + '<path d="M11.6,5.3H4.7c-1.4,0-2.5,1.1-2.5,2.5v5.9c0,1.4,1.1,2.5,2.5,2.5h6.9c1.4,0,2.5-1.1,2.5-2.5V7.7 C14.1,6.4,13,5.3,11.6,5.3z M4.7,6.3h6.9c0.8,0,1.5,0.7,1.5,1.5v5.9c0,0.8-0.7,1.5-1.5,1.5H4.7c-0.8,0-1.5-0.7-1.5-1.5V7.7 C3.3,6.9,3.9,6.3,4.7,6.3z" />' + '<path d="M16.6,6.7c0.9-0.8,2.3-0.1,2.4,1l0,0.1v5.7c0,1.2-1.3,1.9-2.3,1.2l-0.1-0.1L13.3,12 c-0.2-0.2-0.2-0.5-0.1-0.7c0.2-0.2,0.4-0.2,0.6-0.1l0.1,0.1l3.3,2.7c0.3,0.2,0.7,0.1,0.8-0.3l0-0.1V7.8c0-0.4-0.4-0.6-0.7-0.4 l-0.1,0l-3.3,2.7c-0.2,0.2-0.5,0.1-0.7-0.1c-0.2-0.2-0.1-0.5,0-0.6l0.1-0.1L16.6,6.7z" />' + '</svg>';
29667
28664
  btnItem.onclick = function () {
29668
28665
  var _this9$decoderState$s3 = _this9.decoderState.state,
29669
28666
  play = _this9$decoderState$s3.play,
@@ -29686,7 +28683,7 @@ var Theme = /*#__PURE__*/function () {
29686
28683
  case 'capturePicture':
29687
28684
  btnItem.title = "截图";
29688
28685
  btnItem.id = btnId;
29689
- btnItem.domString = "<svg id=\"".concat(this.jSPlugin.id, "-capturePicture-icon\" class=\"theme-icon-item-icon\" fill=\"").concat(btnItem.color, "\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" width=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" height=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" viewBox=\"-6 -6 32 32\">") + '<path d="M10.8,7.7c-2,0-3.7,1.6-3.7,3.7S8.7,15,10.8,15c2,0,3.7-1.6,3.7-3.7S12.8,7.7,10.8,7.7z M10.8,8.7c1.5,0,2.7,1.2,2.7,2.7S12.2,14,10.8,14c-1.5,0-2.7-1.2-2.7-2.7S9.3,8.7,10.8,8.7z" />' + '<path d="M8.6,3.7l-0.1,0C8,3.7,7.7,4,7.5,4.3l-1,1.7l-1.3,0C4,6.1,3.1,7,3.1,8.2v7.1 c0,1.2,0.9,2.1,2.1,2.1h11.1c1.2,0,2.1-0.9,2.1-2.1V8.2l0-0.1c-0.1-1.1-1-1.9-2.1-1.9l-1.3,0l-1.1-1.8c-0.2-0.4-0.7-0.6-1.1-0.6H8.6 z M8.6,4.7h4.2c0.1,0,0.2,0.1,0.3,0.1l1.2,2c0.1,0.2,0.3,0.2,0.4,0.2h1.6c0.6,0,1.1,0.5,1.1,1.1v7.1c0,0.6-0.5,1.1-1.1,1.1H5.1 c-0.6,0-1.1-0.5-1.1-1.1V8.2c0-0.6,0.5-1.1,1.1-1.1h1.6c0.2,0,0.3-0.1,0.4-0.2l1.2-2C8.4,4.7,8.5,4.7,8.6,4.7z" />' + '</svg>';
28686
+ btnItem.domString = "<svg class=\"theme-icon-item-icon\" fill=\"".concat(btnItem.color, "\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" width=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" height=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" viewBox=\"-6 -6 32 32\">") + '<path d="M10.8,7.7c-2,0-3.7,1.6-3.7,3.7S8.7,15,10.8,15c2,0,3.7-1.6,3.7-3.7S12.8,7.7,10.8,7.7z M10.8,8.7c1.5,0,2.7,1.2,2.7,2.7S12.2,14,10.8,14c-1.5,0-2.7-1.2-2.7-2.7S9.3,8.7,10.8,8.7z" />' + '<path d="M8.6,3.7l-0.1,0C8,3.7,7.7,4,7.5,4.3l-1,1.7l-1.3,0C4,6.1,3.1,7,3.1,8.2v7.1 c0,1.2,0.9,2.1,2.1,2.1h11.1c1.2,0,2.1-0.9,2.1-2.1V8.2l0-0.1c-0.1-1.1-1-1.9-2.1-1.9l-1.3,0l-1.1-1.8c-0.2-0.4-0.7-0.6-1.1-0.6H8.6 z M8.6,4.7h4.2c0.1,0,0.2,0.1,0.3,0.1l1.2,2c0.1,0.2,0.3,0.2,0.4,0.2h1.6c0.6,0,1.1,0.5,1.1,1.1v7.1c0,0.6-0.5,1.1-1.1,1.1H5.1 c-0.6,0-1.1-0.5-1.1-1.1V8.2c0-0.6,0.5-1.1,1.1-1.1h1.6c0.2,0,0.3-0.1,0.4-0.2l1.2-2C8.4,4.7,8.5,4.7,8.6,4.7z" />' + '</svg>';
29690
28687
  btnItem.onclick = function () {
29691
28688
  var play = _this9.decoderState.state.play;
29692
28689
  if (play) {
@@ -29699,48 +28696,45 @@ var Theme = /*#__PURE__*/function () {
29699
28696
  case 'talk':
29700
28697
  btnItem.title = "对讲";
29701
28698
  btnItem.id = btnId;
29702
- btnItem.domString = '<div></div>' + "<svg id=\"".concat(this.jSPlugin.id, "-talk-icon\" class=\"theme-icon-item-icon\" fill=\"").concat(btnItem.color, "\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" width=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" height=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" viewBox=\"-6 -6 32 32\">") + '<path d="M10.1,2.7C8.5,2.7,7.2,4,7.2,5.6v5.2c0,1.6,1.3,2.9,2.9,2.9l0.2,0c1.5-0.1,2.7-1.4,2.7-2.9V5.6 C13,4,11.7,2.7,10.1,2.7z M10.1,3.7c1.1,0,1.9,0.9,1.9,1.9v5.2c0,1-0.8,1.8-1.8,1.9l-0.1,0c-1,0-1.9-0.9-1.9-1.9V5.6 C8.2,4.5,9,3.7,10.1,3.7z" />' + '<path d="M15.1,8.5c0.2,0,0.4,0.2,0.5,0.4l0,0.1v1.7c0,3-2.5,5.5-5.5,5.5c-3,0-5.4-2.3-5.5-5.3l0-0.2V9 c0-0.3,0.2-0.5,0.5-0.5c0.2,0,0.4,0.2,0.5,0.4l0,0.1v1.7c0,2.5,2,4.5,4.5,4.5c2.4,0,4.4-1.9,4.5-4.3l0-0.2V9 C14.6,8.7,14.8,8.5,15.1,8.5z" />' + '<path d="M13.5,17.7c0.3,0,0.5,0.2,0.5,0.5c0,0.2-0.2,0.4-0.4,0.5l-0.1,0h-7c-0.3,0-0.5-0.2-0.5-0.5 c0-0.2,0.2-0.4,0.4-0.5l0.1,0H13.5z" />' + '<path d="M10.1,15.2c0.2,0,0.4,0.2,0.5,0.4l0,0.1v2.5c0,0.3-0.2,0.5-0.5,0.5c-0.2,0-0.4-0.2-0.5-0.4l0-0.1 v-2.5C9.6,15.4,9.8,15.2,10.1,15.2z" />' + '</svg>';
28699
+ btnItem.domString = '<div></div>' + "<svg class=\"theme-icon-item-icon\" fill=\"".concat(btnItem.color, "\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" width=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" height=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" viewBox=\"-6 -6 32 32\">") + '<path d="M10.1,2.7C8.5,2.7,7.2,4,7.2,5.6v5.2c0,1.6,1.3,2.9,2.9,2.9l0.2,0c1.5-0.1,2.7-1.4,2.7-2.9V5.6 C13,4,11.7,2.7,10.1,2.7z M10.1,3.7c1.1,0,1.9,0.9,1.9,1.9v5.2c0,1-0.8,1.8-1.8,1.9l-0.1,0c-1,0-1.9-0.9-1.9-1.9V5.6 C8.2,4.5,9,3.7,10.1,3.7z" />' + '<path d="M15.1,8.5c0.2,0,0.4,0.2,0.5,0.4l0,0.1v1.7c0,3-2.5,5.5-5.5,5.5c-3,0-5.4-2.3-5.5-5.3l0-0.2V9 c0-0.3,0.2-0.5,0.5-0.5c0.2,0,0.4,0.2,0.5,0.4l0,0.1v1.7c0,2.5,2,4.5,4.5,4.5c2.4,0,4.4-1.9,4.5-4.3l0-0.2V9 C14.6,8.7,14.8,8.5,15.1,8.5z" />' + '<path d="M13.5,17.7c0.3,0,0.5,0.2,0.5,0.5c0,0.2-0.2,0.4-0.4,0.5l-0.1,0h-7c-0.3,0-0.5-0.2-0.5-0.5 c0-0.2,0.2-0.4,0.4-0.5l0.1,0H13.5z" />' + '<path d="M10.1,15.2c0.2,0,0.4,0.2,0.5,0.4l0,0.1v2.5c0,0.3-0.2,0.5-0.5,0.5c-0.2,0-0.4-0.2-0.5-0.4l0-0.1 v-2.5C9.6,15.4,9.8,15.2,10.1,15.2z" />' + '</svg>';
29703
28700
  btnItem.onclick = function () {
29704
28701
  var _this9$decoderState$s4 = _this9.decoderState.state,
29705
28702
  talk = _this9$decoderState$s4.talk,
29706
- sound = _this9$decoderState$s4.sound,
29707
- play = _this9$decoderState$s4.play;
29708
- if (play) {
29709
- if (talk) {
29710
- console.log('结束对讲');
28703
+ sound = _this9$decoderState$s4.sound;
28704
+ if (talk) {
28705
+ console.log('结束对讲');
28706
+ _this9.setDecoderState({
28707
+ talk: false
28708
+ });
28709
+ _this9.jSPlugin.Talk.stopTalk();
28710
+ var isReOpenSound = lodash.findIndex(_this9.themeData.footer.btnList, function (v) {
28711
+ return v.iconId === 'sound' && v.isrender === 1 && v.defaultActive === 1;
28712
+ }) > -1;
28713
+ if (_this9.themeData && isReOpenSound) {
28714
+ _this9.jSPlugin.openSound();
29711
28715
  _this9.setDecoderState({
29712
- talk: false
28716
+ sound: true
29713
28717
  });
29714
- _this9.jSPlugin.Talk.stopTalk();
29715
- var isReOpenSound = lodash.findIndex(_this9.themeData.footer.btnList, function (v) {
29716
- return v.iconId === 'sound' && v.isrender === 1 && v.defaultActive === 1;
29717
- }) > -1;
29718
- if (_this9.themeData && isReOpenSound) {
29719
- _this9.jSPlugin.openSound();
29720
- _this9.setDecoderState({
29721
- sound: true
29722
- });
29723
- }
29724
- } else {
29725
- console.log('开始对讲');
28718
+ }
28719
+ } else {
28720
+ console.log('开始对讲');
28721
+ _this9.setDecoderState({
28722
+ talk: true
28723
+ });
28724
+ if (sound) {
28725
+ _this9.jSPlugin.closeSound();
29726
28726
  _this9.setDecoderState({
29727
- talk: true
28727
+ sound: false
29728
28728
  });
29729
- if (sound) {
29730
- _this9.jSPlugin.closeSound();
29731
- _this9.setDecoderState({
29732
- sound: false
29733
- });
29734
- }
29735
- _this9.jSPlugin.Talk.startTalk();
29736
28729
  }
28730
+ _this9.jSPlugin.Talk.startTalk();
29737
28731
  }
29738
28732
  };
29739
28733
  return btnItem;
29740
28734
  case 'zoom':
29741
28735
  btnItem.title = "电子放大";
29742
28736
  btnItem.id = btnId;
29743
- btnItem.domString = '<div></div>' + "<svg id=\"".concat(this.jSPlugin.id, "-zoom-icon\" class=\"theme-icon-item-icon\" fill=\"").concat(btnItem.color, "\" version=\"1.1\" id=\"\u56FE\u5C42_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n width=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" height=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" viewBox=\"5 -6 5 32\" style=\"enable-background:new 0 0 20 20.1;\" xml:space=\"preserve\">\n <path class=\"st1\" d=\"M8.8,2.6c3.5,0,6.2,2.8,6.2,6.2s-2.8,6.2-6.2,6.2s-6.2-2.8-6.2-6.2S5.3,2.6,8.8,2.6z M8.8,3.9\n c-2.8,0-5,2.2-5,5s2.2,5,5,5s5-2.2,5-5S11.5,3.9,8.8,3.9z M12.7,12.7l3.9,3.9\"/>\n <path class=\"st2\" d=\"M11.2,9.5h-5c-0.3,0-0.6-0.3-0.6-0.6s0.3-0.6,0.6-0.6h5c0.3,0,0.6,0.3,0.6,0.6S11.6,9.5,11.2,9.5z\"/>\n <path class=\"st2\" d=\"M8.7,12c-0.3,0-0.6-0.3-0.6-0.6v-5c0-0.3,0.3-0.6,0.6-0.6s0.6,0.3,0.6,0.6v5C9.3,11.8,9.1,12,8.7,12z\"/>\n <path class=\"st2\" d=\"M16.9,17.6c-0.1,0-0.3-0.1-0.4-0.2l-3.9-3.9c-0.2-0.2-0.2-0.6,0-0.8s0.6-0.2,0.8,0l3.9,3.9\n c0.2,0.2,0.2,0.6,0,0.8C17.2,17.5,17,17.6,16.9,17.6z\"/>\n </svg>");
28737
+ btnItem.domString = '<div></div>' + "<svg class=\"theme-icon-item-icon\" fill=\"".concat(btnItem.color, "\" version=\"1.1\" id=\"\u56FE\u5C42_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n width=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" height=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" viewBox=\"5 -6 5 32\" style=\"enable-background:new 0 0 20 20.1;\" xml:space=\"preserve\">\n <path class=\"st1\" d=\"M8.8,2.6c3.5,0,6.2,2.8,6.2,6.2s-2.8,6.2-6.2,6.2s-6.2-2.8-6.2-6.2S5.3,2.6,8.8,2.6z M8.8,3.9\n c-2.8,0-5,2.2-5,5s2.2,5,5,5s5-2.2,5-5S11.5,3.9,8.8,3.9z M12.7,12.7l3.9,3.9\"/>\n <path class=\"st2\" d=\"M11.2,9.5h-5c-0.3,0-0.6-0.3-0.6-0.6s0.3-0.6,0.6-0.6h5c0.3,0,0.6,0.3,0.6,0.6S11.6,9.5,11.2,9.5z\"/>\n <path class=\"st2\" d=\"M8.7,12c-0.3,0-0.6-0.3-0.6-0.6v-5c0-0.3,0.3-0.6,0.6-0.6s0.6,0.3,0.6,0.6v5C9.3,11.8,9.1,12,8.7,12z\"/>\n <path class=\"st2\" d=\"M16.9,17.6c-0.1,0-0.3-0.1-0.4-0.2l-3.9-3.9c-0.2-0.2-0.2-0.6,0-0.8s0.6-0.2,0.8,0l3.9,3.9\n c0.2,0.2,0.2,0.6,0,0.8C17.2,17.5,17,17.6,16.9,17.6z\"/>\n </svg>");
29744
28738
  btnItem.onclick = function () {
29745
28739
  var _this9$decoderState$s5 = _this9.decoderState.state,
29746
28740
  zoom = _this9$decoderState$s5.zoom,
@@ -29766,47 +28760,44 @@ var Theme = /*#__PURE__*/function () {
29766
28760
  case 'pantile':
29767
28761
  btnItem.title = "云台控制";
29768
28762
  btnItem.id = btnId;
29769
- btnItem.domString = "<svg id=\"".concat(this.jSPlugin.id, "-pantile-icon\" class=\"theme-icon-item-icon\" fill=\"").concat(btnItem.color, "\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" width=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" height=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" viewBox=\"-6 -6 32 32\">") + '<path d="M10.2,7.8c1.6,0,2.9,1.3,2.9,2.9s-1.3,2.9-2.9,2.9s-2.9-1.3-2.9-2.9S8.5,7.8,10.2,7.8z M10.2,8.8c-1.1,0-1.9,0.9-1.9,1.9s0.9,1.9,1.9,1.9s1.9-0.9,1.9-1.9S11.2,8.8,10.2,8.8z" />' + '<path d="M8.8,3.5c0.7-0.6,1.8-0.6,2.5-0.1l0.1,0.1l1.4,1.1c0.2,0.2,0.3,0.5,0.1,0.7 c-0.2,0.2-0.4,0.2-0.6,0.1l-0.1,0l-1.4-1.1C10.5,3.9,10,3.9,9.6,4.2L9.4,4.3L8,5.4C7.8,5.5,7.5,5.5,7.3,5.3c-0.2-0.2-0.1-0.5,0-0.6 l0.1-0.1L8.8,3.5z" />' + '<path d="M2.5,12.3c-0.6-0.7-0.6-1.8-0.1-2.5l0.1-0.1l1.1-1.4c0.2-0.2,0.5-0.3,0.7-0.1 c0.2,0.2,0.2,0.4,0.1,0.6l0,0.1l-1.1,1.4C3,10.6,3,11.1,3.2,11.5l0.1,0.1L4.4,13c0.2,0.2,0.1,0.5-0.1,0.7c-0.2,0.2-0.5,0.1-0.6,0 l-0.1-0.1L2.5,12.3z" />' + '<path d="M17.7,12.3c0.6-0.7,0.6-1.8,0.1-2.5l-0.1-0.1l-1.1-1.4c-0.2-0.2-0.5-0.3-0.7-0.1 c-0.2,0.2-0.2,0.4-0.1,0.6l0,0.1l1.1,1.4c0.3,0.4,0.3,0.9,0.1,1.3l-0.1,0.1L15.8,13c-0.2,0.2-0.1,0.5,0.1,0.7c0.2,0.2,0.5,0.1,0.6,0 l0.1-0.1L17.7,12.3z" />' + '<path d="M8.8,18.2c0.7,0.6,1.8,0.6,2.5,0.1l0.1-0.1l1.4-1.1c0.2-0.2,0.3-0.5,0.1-0.7 c-0.2-0.2-0.4-0.2-0.6-0.1l-0.1,0l-1.4,1.1c-0.4,0.3-0.9,0.3-1.3,0.1l-0.1-0.1L8,16.3c-0.2-0.2-0.5-0.1-0.7,0.1 c-0.2,0.2-0.1,0.5,0,0.6l0.1,0.1L8.8,18.2z" />' + '</svg>';
28763
+ btnItem.domString = "<svg class=\"theme-icon-item-icon\" fill=\"".concat(btnItem.color, "\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" width=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" height=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" viewBox=\"-6 -6 32 32\">") + '<path d="M10.2,7.8c1.6,0,2.9,1.3,2.9,2.9s-1.3,2.9-2.9,2.9s-2.9-1.3-2.9-2.9S8.5,7.8,10.2,7.8z M10.2,8.8c-1.1,0-1.9,0.9-1.9,1.9s0.9,1.9,1.9,1.9s1.9-0.9,1.9-1.9S11.2,8.8,10.2,8.8z" />' + '<path d="M8.8,3.5c0.7-0.6,1.8-0.6,2.5-0.1l0.1,0.1l1.4,1.1c0.2,0.2,0.3,0.5,0.1,0.7 c-0.2,0.2-0.4,0.2-0.6,0.1l-0.1,0l-1.4-1.1C10.5,3.9,10,3.9,9.6,4.2L9.4,4.3L8,5.4C7.8,5.5,7.5,5.5,7.3,5.3c-0.2-0.2-0.1-0.5,0-0.6 l0.1-0.1L8.8,3.5z" />' + '<path d="M2.5,12.3c-0.6-0.7-0.6-1.8-0.1-2.5l0.1-0.1l1.1-1.4c0.2-0.2,0.5-0.3,0.7-0.1 c0.2,0.2,0.2,0.4,0.1,0.6l0,0.1l-1.1,1.4C3,10.6,3,11.1,3.2,11.5l0.1,0.1L4.4,13c0.2,0.2,0.1,0.5-0.1,0.7c-0.2,0.2-0.5,0.1-0.6,0 l-0.1-0.1L2.5,12.3z" />' + '<path d="M17.7,12.3c0.6-0.7,0.6-1.8,0.1-2.5l-0.1-0.1l-1.1-1.4c-0.2-0.2-0.5-0.3-0.7-0.1 c-0.2,0.2-0.2,0.4-0.1,0.6l0,0.1l1.1,1.4c0.3,0.4,0.3,0.9,0.1,1.3l-0.1,0.1L15.8,13c-0.2,0.2-0.1,0.5,0.1,0.7c0.2,0.2,0.5,0.1,0.6,0 l0.1-0.1L17.7,12.3z" />' + '<path d="M8.8,18.2c0.7,0.6,1.8,0.6,2.5,0.1l0.1-0.1l1.4-1.1c0.2-0.2,0.3-0.5,0.1-0.7 c-0.2-0.2-0.4-0.2-0.6-0.1l-0.1,0l-1.4,1.1c-0.4,0.3-0.9,0.3-1.3,0.1l-0.1-0.1L8,16.3c-0.2-0.2-0.5-0.1-0.7,0.1 c-0.2,0.2-0.1,0.5,0,0.6l0.1,0.1L8.8,18.2z" />' + '</svg>';
29770
28764
  btnItem.onclick = function () {
29771
28765
  var _this9$decoderState$s6 = _this9.decoderState.state,
29772
- play = _this9$decoderState$s6.play,
29773
28766
  pantile = _this9$decoderState$s6.pantile,
29774
28767
  expend = _this9$decoderState$s6.expend;
29775
- if (play) {
29776
- if (!pantile) {
29777
- console.log('显示云台');
29778
- if (_this9.isMobile && !expend) {
29779
- console.log("移动端,非全屏状态不展示云台");
29780
- // 移动端,非全屏状态不展示云台
29781
- return false;
29782
- }
29783
- _this9.Ptz.show();
29784
- _this9.setDecoderState({
29785
- pantile: true
29786
- });
29787
- } else {
29788
- console.log('隐藏云台');
29789
- _this9.Ptz.hide();
29790
- _this9.setDecoderState({
29791
- pantile: false
29792
- });
28768
+ if (!pantile) {
28769
+ console.log('显示云台');
28770
+ if (_this9.isMobile && !expend) {
28771
+ console.log("移动端,非全屏状态不展示云台");
28772
+ // 移动端,非全屏状态不展示云台
28773
+ return false;
29793
28774
  }
28775
+ _this9.Ptz.show();
28776
+ _this9.setDecoderState({
28777
+ pantile: true
28778
+ });
28779
+ } else {
28780
+ console.log('隐藏云台');
28781
+ _this9.Ptz.hide();
28782
+ _this9.setDecoderState({
28783
+ pantile: false
28784
+ });
29794
28785
  }
29795
28786
  };
29796
28787
  return btnItem;
29797
28788
  case 'expend':
29798
28789
  btnItem.title = "全局全屏";
29799
28790
  btnItem.id = btnId;
29800
- btnItem.domString = "<span><svg id=\"".concat(this.jSPlugin.id, "-expend-icon\" class=\"theme-icon-item-icon\" fill=\"").concat(btnItem.color, "\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" width=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" height=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" viewBox=\"-6 -6 32 32\">") + '<path d="M3.4,7.6c-0.3,0-0.5-0.2-0.5-0.5V5.3c0-1.2,1-2.3,2.2-2.3h1.8c0.3,0,0.5,0.2,0.5,0.5S7.2,4.1,6.9,4.1H5.2 c-0.7,0-1.2,0.6-1.2,1.3v1.8C3.9,7.4,3.7,7.6,3.4,7.6z" />' + '<path d="M6.9,18.1H5.2c-1.2,0-2.2-1-2.2-2.2v-1.8c0-0.3,0.2-0.5,0.5-0.5s0.5,0.2,0.5,0.5v1.8c0,0.7,0.6,1.2,1.2,1.2 h1.8c0.3,0,0.5,0.2,0.5,0.5S7.2,18.1,6.9,18.1z" />' + '<path d="M15.7,18.1h-1.8c-0.3,0-0.5-0.2-0.5-0.5s0.2-0.5,0.5-0.5h1.8c0.7,0,1.2-0.6,1.2-1.2v-1.8 c0-0.3,0.2-0.5,0.5-0.5s0.5,0.2,0.5,0.5v1.8C17.9,17.1,16.9,18.1,15.7,18.1z" />' + '<path d="M17.4,7.6c-0.3,0-0.5-0.2-0.5-0.5V5.3c0-0.7-0.6-1.3-1.2-1.3h-1.8c-0.3,0-0.5-0.2-0.5-0.5s0.2-0.5,0.5-0.5h1.8 c1.2,0,2.2,1,2.2,2.3v1.8C17.9,7.4,17.7,7.6,17.4,7.6z" />' + '</svg>' + "<svg class=\"theme-icon-item-icon\" style=\"display:none\" width=\"".concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" height=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" fill=\"").concat(btnItem.color, "\" viewBox=\"-6 -6 32 32\">\n <path class=\"st1\" d=\"M5.7,8.1H3.9c-0.3,0-0.6-0.2-0.6-0.6S3.6,7,3.9,7h1.9c0.7,0,1.3-0.6,1.3-1.3V3.8c0-0.3,0.2-0.6,0.6-0.6\n s0.6,0.2,0.6,0.6v1.9C8.2,7,7.1,8.1,5.7,8.1z\"/>\n <path class=\"st1\" d=\"M7.6,17.7c-0.3,0-0.6-0.2-0.6-0.6v-1.9c0-0.7-0.6-1.3-1.3-1.3H3.9c-0.3,0-0.6-0.2-0.6-0.6s0.2-0.6,0.6-0.6h1.9\n c1.3,0,2.4,1.1,2.4,2.4v1.9C8.2,17.5,7.9,17.7,7.6,17.7z\"/>\n <path class=\"st1\" d=\"M13.4,17.7c-0.3,0-0.6-0.2-0.6-0.6v-1.9c0-1.3,1.1-2.4,2.4-2.4h1.9c0.3,0,0.6,0.2,0.6,0.6S17.5,14,17.2,14\n h-1.9c-0.7,0-1.3,0.6-1.3,1.3v1.9C14,17.5,13.8,17.7,13.4,17.7z\"/>\n <path class=\"st1\" d=\"M17.2,8.1h-1.9c-1.3,0-2.4-1.1-2.4-2.4V3.8c0-0.3,0.2-0.6,0.6-0.6S14,3.5,14,3.8v1.9C14,6.4,14.6,7,15.3,7h1.9\n c0.3,0,0.6,0.2,0.6,0.6S17.5,8.1,17.2,8.1z\"/>\n </svg>\n </span>");
28791
+ btnItem.domString = "<span><svg class=\"theme-icon-item-icon\" fill=\"".concat(btnItem.color, "\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" width=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" height=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" viewBox=\"-6 -6 32 32\">") + '<path d="M3.4,7.6c-0.3,0-0.5-0.2-0.5-0.5V5.3c0-1.2,1-2.3,2.2-2.3h1.8c0.3,0,0.5,0.2,0.5,0.5S7.2,4.1,6.9,4.1H5.2 c-0.7,0-1.2,0.6-1.2,1.3v1.8C3.9,7.4,3.7,7.6,3.4,7.6z" />' + '<path d="M6.9,18.1H5.2c-1.2,0-2.2-1-2.2-2.2v-1.8c0-0.3,0.2-0.5,0.5-0.5s0.5,0.2,0.5,0.5v1.8c0,0.7,0.6,1.2,1.2,1.2 h1.8c0.3,0,0.5,0.2,0.5,0.5S7.2,18.1,6.9,18.1z" />' + '<path d="M15.7,18.1h-1.8c-0.3,0-0.5-0.2-0.5-0.5s0.2-0.5,0.5-0.5h1.8c0.7,0,1.2-0.6,1.2-1.2v-1.8 c0-0.3,0.2-0.5,0.5-0.5s0.5,0.2,0.5,0.5v1.8C17.9,17.1,16.9,18.1,15.7,18.1z" />' + '<path d="M17.4,7.6c-0.3,0-0.5-0.2-0.5-0.5V5.3c0-0.7-0.6-1.3-1.2-1.3h-1.8c-0.3,0-0.5-0.2-0.5-0.5s0.2-0.5,0.5-0.5h1.8 c1.2,0,2.2,1,2.2,2.3v1.8C17.9,7.4,17.7,7.6,17.4,7.6z" />' + '</svg>' + "<svg class=\"theme-icon-item-icon\" style=\"display:none\" width=\"".concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" height=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" fill=\"").concat(btnItem.color, "\" viewBox=\"-6 -6 32 32\">\n <path class=\"st1\" d=\"M5.7,8.1H3.9c-0.3,0-0.6-0.2-0.6-0.6S3.6,7,3.9,7h1.9c0.7,0,1.3-0.6,1.3-1.3V3.8c0-0.3,0.2-0.6,0.6-0.6\n s0.6,0.2,0.6,0.6v1.9C8.2,7,7.1,8.1,5.7,8.1z\"/>\n <path class=\"st1\" d=\"M7.6,17.7c-0.3,0-0.6-0.2-0.6-0.6v-1.9c0-0.7-0.6-1.3-1.3-1.3H3.9c-0.3,0-0.6-0.2-0.6-0.6s0.2-0.6,0.6-0.6h1.9\n c1.3,0,2.4,1.1,2.4,2.4v1.9C8.2,17.5,7.9,17.7,7.6,17.7z\"/>\n <path class=\"st1\" d=\"M13.4,17.7c-0.3,0-0.6-0.2-0.6-0.6v-1.9c0-1.3,1.1-2.4,2.4-2.4h1.9c0.3,0,0.6,0.2,0.6,0.6S17.5,14,17.2,14\n h-1.9c-0.7,0-1.3,0.6-1.3,1.3v1.9C14,17.5,13.8,17.7,13.4,17.7z\"/>\n <path class=\"st1\" d=\"M17.2,8.1h-1.9c-1.3,0-2.4-1.1-2.4-2.4V3.8c0-0.3,0.2-0.6,0.6-0.6S14,3.5,14,3.8v1.9C14,6.4,14.6,7,15.3,7h1.9\n c0.3,0,0.6,0.2,0.6,0.6S17.5,8.1,17.2,8.1z\"/>\n </svg>\n </span>");
29801
28792
  btnItem.onclick = function () {
29802
28793
  var _this9$decoderState$s7 = _this9.decoderState.state,
29803
28794
  webExpend = _this9$decoderState$s7.webExpend,
29804
- expend = _this9$decoderState$s7.expend;
29805
- _this9$decoderState$s7.play;
29806
- var pantile = _this9$decoderState$s7.pantile;
29807
- // if (!play) {
29808
- // return false;
29809
- // }
28795
+ expend = _this9$decoderState$s7.expend,
28796
+ play = _this9$decoderState$s7.play,
28797
+ pantile = _this9$decoderState$s7.pantile;
28798
+ if (!play) {
28799
+ return false;
28800
+ }
29810
28801
  if (webExpend) {
29811
28802
  console.log("正在网站全屏");
29812
28803
  return false;
@@ -29870,43 +28861,31 @@ var Theme = /*#__PURE__*/function () {
29870
28861
  case 'webExpend':
29871
28862
  btnItem.title = "网页全屏";
29872
28863
  btnItem.id = btnId;
29873
- btnItem.domString = "<span><svg id=\"".concat(this.jSPlugin.id, "-webExpend-icon\" class=\"theme-icon-item-icon\" fill=\"").concat(btnItem.color, "\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" width=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" height=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" viewBox=\"-6 -6 32 32\">") + '<path d="M3.1,7.6c-0.3,0-0.5-0.2-0.5-0.5V5.3c0-1.2,1-2.3,2.2-2.3h1.8c0.3,0,0.5,0.2,0.5,0.5S6.8,4.1,6.6,4.1H4.8 c-0.7,0-1.2,0.6-1.2,1.3v1.8C3.6,7.4,3.3,7.6,3.1,7.6z" />' + '<path d="M15.3,18.1h-1.8c-0.3,0-0.5-0.2-0.5-0.5s0.2-0.5,0.5-0.5h1.8c0.7,0,1.2-0.6,1.2-1.2v-1.8 c0-0.3,0.2-0.5,0.5-0.5s0.5,0.2,0.5,0.5v1.8C17.6,17.1,16.6,18.1,15.3,18.1z" />' + '<circle class="st2" cx="10.2" cy="10.4" r="1.1"/>' + '</svg>' + "<svg class=\"theme-icon-item-icon\" fill=\"".concat(btnItem.color, "\" style=\"display:none;\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" width=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" height=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" viewBox=\"-6 -6 32 32\">\n <path class=\"st1\" d=\"M5.4,8.1H3.5C3.2,8.1,3,7.9,3,7.6s0.2-0.5,0.5-0.5h1.9c0.8,0,1.4-0.6,1.4-1.4V3.8c0-0.3,0.2-0.5,0.5-0.5\n s0.5,0.2,0.5,0.5v1.9C7.7,7,6.7,8.1,5.4,8.1z\"/>\n <path class=\"st1\" d=\"M13.1,17.7c-0.3,0-0.5-0.2-0.5-0.5v-1.9c0-1.3,1.1-2.4,2.4-2.4h1.9c0.3,0,0.5,0.2,0.5,0.5s-0.2,0.5-0.5,0.5H15\n c-0.8,0-1.4,0.6-1.4,1.4v1.9C13.6,17.4,13.4,17.7,13.1,17.7z\"/>\n <circle class=\"st2\" cx=\"10.2\" cy=\"10.4\" r=\"1.1\"/>\n ") + '</svg></span>';
28864
+ btnItem.domString = "<span><svg class=\"theme-icon-item-icon\" fill=\"".concat(btnItem.color, "\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" width=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" height=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" viewBox=\"-6 -6 32 32\">") + '<path d="M3.1,7.6c-0.3,0-0.5-0.2-0.5-0.5V5.3c0-1.2,1-2.3,2.2-2.3h1.8c0.3,0,0.5,0.2,0.5,0.5S6.8,4.1,6.6,4.1H4.8 c-0.7,0-1.2,0.6-1.2,1.3v1.8C3.6,7.4,3.3,7.6,3.1,7.6z" />' + '<path d="M15.3,18.1h-1.8c-0.3,0-0.5-0.2-0.5-0.5s0.2-0.5,0.5-0.5h1.8c0.7,0,1.2-0.6,1.2-1.2v-1.8 c0-0.3,0.2-0.5,0.5-0.5s0.5,0.2,0.5,0.5v1.8C17.6,17.1,16.6,18.1,15.3,18.1z" />' + '<circle class="st2" cx="10.2" cy="10.4" r="1.1"/>' + '</svg>' + "<svg class=\"theme-icon-item-icon\" fill=\"".concat(btnItem.color, "\" style=\"display:none;\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" width=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" height=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" viewBox=\"-6 -6 32 32\">\n <path class=\"st1\" d=\"M5.4,8.1H3.5C3.2,8.1,3,7.9,3,7.6s0.2-0.5,0.5-0.5h1.9c0.8,0,1.4-0.6,1.4-1.4V3.8c0-0.3,0.2-0.5,0.5-0.5\n s0.5,0.2,0.5,0.5v1.9C7.7,7,6.7,8.1,5.4,8.1z\"/>\n <path class=\"st1\" d=\"M13.1,17.7c-0.3,0-0.5-0.2-0.5-0.5v-1.9c0-1.3,1.1-2.4,2.4-2.4h1.9c0.3,0,0.5,0.2,0.5,0.5s-0.2,0.5-0.5,0.5H15\n c-0.8,0-1.4,0.6-1.4,1.4v1.9C13.6,17.4,13.4,17.7,13.1,17.7z\"/>\n <circle class=\"st2\" cx=\"10.2\" cy=\"10.4\" r=\"1.1\"/>\n ") + '</svg></span>';
29874
28865
  btnItem.onclick = function () {
29875
28866
  var _this9$decoderState$s8 = _this9.decoderState.state,
29876
28867
  webExpend = _this9$decoderState$s8.webExpend,
29877
- expend = _this9$decoderState$s8.expend;
29878
- _this9$decoderState$s8.play;
29879
- // if (!play) {
29880
- // return false;
29881
- // }
28868
+ expend = _this9$decoderState$s8.expend,
28869
+ play = _this9$decoderState$s8.play;
28870
+ if (!play) {
28871
+ return false;
28872
+ }
29882
28873
  if (expend) {
29883
28874
  console.log("正在全局全屏");
29884
28875
  return false;
29885
28876
  }
29886
- if (_this9.jSPlugin.recTimer) {
29887
- clearInterval(_this9.jSPlugin.recTimer);
29888
- }
29889
28877
  if (!webExpend) {
29890
28878
  console.log("执行网页全屏");
29891
28879
  var footerDOMHeight = 0;
29892
28880
  var headerDOMHeight = 0;
29893
- var that = _this9;
29894
- ['fullscreenchange', 'webkitfullscreenchange', 'mozfullscreenchange'].forEach(function (item) {
29895
- // 监听全屏事件触发
29896
- window.addEventListener(item, function fullscreenchange(e) {
29897
- var isFullScreen = document.fullScreen || document.mozFullScreen || document.webkitIsFullScreen;
29898
- if (isFullScreen) {
29899
- if (document.getElementById("".concat(that.jSPlugin.id, "-loading-item-0"))) {
29900
- document.getElementById("".concat(that.jSPlugin.id, "-loading-item-0")).style.height = window.screen.height - parseInt(window.getComputedStyle(document.getElementById("".concat(that.jSPlugin.id, "-headControl"))).height, 10) + 'px';
29901
- }
29902
- } else {
29903
- if (document.getElementById("".concat(that.jSPlugin.id, "-loading-item-0"))) {
29904
- document.getElementById("".concat(that.jSPlugin.id, "-loading-item-0")).style.height = that.jSPlugin.height + parseInt(window.getComputedStyle(document.getElementById("".concat(that.jSPlugin.id, "-headControl"))).height, 10) + 'px';
29905
- }
29906
- }
29907
- return isFullScreen;
29908
- });
29909
- });
28881
+ // ['fullscreenchange', 'webkitfullscreenchange', 'mozfullscreenchange'].forEach((item) => {
28882
+ // window.addEventListener(item, (data) => fullscreenchange("fullscreenchange", data));
28883
+ // });
28884
+ // // 监听全屏事件触发
28885
+ // function fullscreenchange() {
28886
+ // let isFullScreen = document.fullScreen || document.mozFullScreen || document.webkitIsFullScreen;
28887
+ // return isFullScreen;
28888
+ // }
29910
28889
  var width = window.screen.width;
29911
28890
  var height = window.screen.height;
29912
28891
  var promise = requestFullScreenPromise(document.getElementById("".concat(_this9.jSPlugin.id, "-wrap")));
@@ -29944,67 +28923,37 @@ var Theme = /*#__PURE__*/function () {
29944
28923
  btnItem.id = btnId;
29945
28924
  btnItem.domString = "<ul id=\"".concat(this.jSPlugin.id, "-hdSelect\" class=\"hd speed-select ").concat(this.isMobile ? "mobile" : "", "\" style=\"display:none;\">") // + `<li class="selectOption" style="width: 60px;height: 32px;text-align: center;line-height: 32px;list-style: none;cursor: pointer;font-size: 13px;color: rgba(0, 0, 0, .85);" name="option" id="${this.jSPlugin.id}-select-hd">高清</li>`
29946
28925
  // + `<li class="selectOption" style="width: 60px;height: 32px;text-align: center;line-height: 32px;list-style: none;cursor: pointer;font-size: 13px;color: rgba(0, 0, 0, .85);" name="option" id="${this.jSPlugin.id}-select-sd">标清</li>`
29947
- + "<li class=\"selectOption default\" style=\"height: 45px;text-align: center;line-height: 45px;list-style: none;cursor: pointer;\" name=\"option\" id=\"".concat(this.jSPlugin.id, "-select-hd\">\u9AD8\u6E05</li>") + "<li class=\"selectOption default\" style=\"height: 45px;text-align: center;line-height: 45px;list-style: none;cursor: pointer;\" name=\"option\" id=\"".concat(this.jSPlugin.id, "-select-sd\">\u6807\u6E05</li>") + "<li class=\"selectOption cancel\" style=\"".concat(this.isMobile ? "" : "display:none;", "\" name=\"option\" id=\"").concat(this.jSPlugin.id, "-select-speed\">\u53D6\u6D88</li>") + '</ul>' + "<span><svg id=\"".concat(this.jSPlugin.id, "-hdSelect-icon\" class=\"theme-icon-item-icon\" fill=\"").concat(btnItem.color, "\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" width=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" height=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" viewBox=\"-6 -6 32 32\">") + '<path d="M17.4,16.5H3.1c-0.8,0-1.4-0.6-1.4-1.4V5.4c0-0.9,0.7-1.6,1.6-1.6h14.1c0.8,0,1.4,0.6,1.4,1.4v9.8 C18.8,15.9,18.2,16.5,17.4,16.5z M3.3,5C3.1,5,2.9,5.2,2.9,5.4v9.7c0,0.2,0.1,0.3,0.3,0.3h14.3c0.2,0,0.3-0.1,0.3-0.3V5.3 c0-0.2-0.1-0.3-0.3-0.3H3.3z" />' + '<path d="M13.3,13.6h-1.6c-0.4,0-0.7-0.3-0.7-0.7V7.4c0-0.4,0.3-0.7,0.7-0.7h1.6c1.2,0,2.2,1,2.2,2.2v2.4 C15.6,12.6,14.6,13.6,13.3,13.6z M12.2,12.5h1.1c0.6,0,1.1-0.5,1.1-1.1V9c0-0.6-0.5-1.1-1.1-1.1h-1.1V12.5z" />' + '<path d="M5.5,13.6c-0.3,0-0.6-0.2-0.6-0.6V7.3C5,7,5.2,6.8,5.5,6.8S6.1,7,6.1,7.3v5.7C6.1,13.4,5.8,13.6,5.5,13.6z" />' + '<path d="M9.2,13.6c-0.3,0-0.6-0.2-0.6-0.6V7.3c0-0.3,0.2-0.6,0.6-0.6S9.8,7,9.8,7.3v5.7C9.8,13.4,9.5,13.6,9.2,13.6z" />' + '<rect x="5.6" y="9.6" width="3.6" height="1.1" />' + '</svg>' + "<svg id=\"".concat(this.jSPlugin.id, "-sdSelect-icon\" class=\"theme-icon-item-icon\" style=\"display:none\" fill=\"").concat(btnItem.color, "\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" width=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" height=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" viewBox=\"-6 -8 40 44\">\n <path d=\"M24.1,23.8h-20c-1.1,0-1.9-0.9-1.9-1.9V8.4c0-1.2,1-2.2,2.1-2.2h19.7c1.1,0,1.9,0.9,1.9,1.9v13.8\n C26,23,25.1,23.8,24.1,23.8z M4.3,7.7C4,7.7,3.7,8,3.7,8.4v13.5c0,0.2,0.2,0.4,0.4,0.4h20c0.2,0,0.4-0.2,0.4-0.4V8.2\n c0-0.2-0.2-0.4-0.4-0.4H4.3z\"/>\n <path d=\"M18.4,19.8h-2.2c-0.5,0-0.9-0.4-0.9-0.9v-7.8c0-0.5,0.4-0.9,0.9-0.9h2.2c1.7,0,3.1,1.4,3.1,3.1v3.3\n C21.5,18.4,20.1,19.8,18.4,19.8z M16.7,18.3h1.6c0.9,0,1.6-0.7,1.6-1.6v-3.3c0-0.9-0.7-1.6-1.6-1.6h-1.6V18.3z\"/>\n <path d=\"M10.5,19.8c1.2,0,2.1-0.3,2.7-0.9c0.6-0.6,0.9-1.3,0.9-2.1c0-0.8-0.3-1.4-0.9-1.8c-0.4-0.2-1.1-0.5-2.2-0.8\n l0,0l-1-0.2c-0.4-0.1-0.8-0.2-1-0.4c-0.4-0.2-0.6-0.5-0.6-0.9c0-0.4,0.1-0.6,0.4-0.9s0.7-0.3,1.3-0.3c0.8,0,1.4,0.2,1.8,0.6\n c0.2,0.3,0.3,0.6,0.4,0.9l0,0h1.4c0-0.6-0.2-1.1-0.5-1.6c-0.6-0.8-1.6-1.2-2.9-1.2c-1,0-1.8,0.3-2.4,0.8c-0.6,0.5-0.9,1.2-0.9,2\n c0,0.7,0.3,1.3,1,1.7c0.4,0.2,0.9,0.4,1.7,0.6l0,0l1.2,0.3c0.6,0.2,1.1,0.3,1.3,0.4c0.3,0.2,0.5,0.5,0.5,0.9c0,0.5-0.2,0.9-0.6,1.1\n s-0.9,0.4-1.5,0.4c-0.9,0-1.6-0.2-2-0.7c-0.2-0.3-0.3-0.6-0.4-1.1l0,0H6.8c0,0.9,0.3,1.6,0.9,2.2C8.2,19.5,9.2,19.8,10.5,19.8z\"/>\n <defs>\n <filter id=\"Adobe_OpacityMaskFilter\" filterUnits=\"userSpaceOnUse\" x=\"15.2\" y=\"10.3\" width=\"6.2\" height=\"9.5\">\n <feColorMatrix type=\"matrix\" values=\"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0\"/>\n </filter>\n </defs>\n <mask maskUnits=\"userSpaceOnUse\" x=\"15.2\" y=\"10.3\" width=\"6.2\" height=\"9.5\" id=\"mask-2_2_\">\n <g class=\"st2\">\n <path id=\"path-1_2_\" class=\"st3\" d=\"M24.1,23.1h-20c-0.6,0-1.2-0.5-1.2-1.2V8.2C2.9,7.5,3.5,7,4.1,7h19.7c0.8,0,1.4,0.6,1.4,1.4\n v13.5C25.2,22.6,24.7,23.1,24.1,23.1z\"/>\n </g>\n </mask>\n <defs>\n <filter id=\"Adobe_OpacityMaskFilter_1_\" filterUnits=\"userSpaceOnUse\" x=\"6.8\" y=\"10.3\" width=\"7.3\" height=\"9.5\">\n <feColorMatrix type=\"matrix\" values=\"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0\"/>\n </filter>\n </defs>\n <mask maskUnits=\"userSpaceOnUse\" x=\"6.8\" y=\"10.3\" width=\"7.3\" height=\"9.5\" id=\"mask-2_3_\">\n <g class=\"st5\">\n <path id=\"path-1_3_\" class=\"st3\" d=\"M24.1,23.1h-20c-0.6,0-1.2-0.5-1.2-1.2V8.2C2.9,7.5,3.5,7,4.1,7h19.7c0.8,0,1.4,0.6,1.4,1.4\n v13.5C25.2,22.6,24.7,23.1,24.1,23.1z\"/>\n </g>\n </mask>\n </svg>\n ") + "<span class='speed-select-mask' style=\"display:none\" id=\"".concat(this.jSPlugin.id, "-select-hd-mask\"></span>") + '</span>';
28926
+ + "<li class=\"selectOption default\" style=\"height: 45px;text-align: center;line-height: 45px;list-style: none;cursor: pointer;\" name=\"option\" id=\"".concat(this.jSPlugin.id, "-select-hd\">\u9AD8\u6E05</li>") + "<li class=\"selectOption default\" style=\"height: 45px;text-align: center;line-height: 45px;list-style: none;cursor: pointer;\" name=\"option\" id=\"".concat(this.jSPlugin.id, "-select-sd\">\u6807\u6E05</li>") + "<li class=\"selectOption cancel\" style=\"".concat(this.isMobile ? "" : "display:none;", "\" name=\"option\" id=\"").concat(this.jSPlugin.id, "-select-speed\">\u53D6\u6D88</li>") + '</ul>' + "<span><svg class=\"theme-icon-item-icon\" fill=\"".concat(btnItem.color, "\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" width=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" height=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" viewBox=\"-6 -6 32 32\">") + '<path d="M17.4,16.5H3.1c-0.8,0-1.4-0.6-1.4-1.4V5.4c0-0.9,0.7-1.6,1.6-1.6h14.1c0.8,0,1.4,0.6,1.4,1.4v9.8 C18.8,15.9,18.2,16.5,17.4,16.5z M3.3,5C3.1,5,2.9,5.2,2.9,5.4v9.7c0,0.2,0.1,0.3,0.3,0.3h14.3c0.2,0,0.3-0.1,0.3-0.3V5.3 c0-0.2-0.1-0.3-0.3-0.3H3.3z" />' + '<path d="M13.3,13.6h-1.6c-0.4,0-0.7-0.3-0.7-0.7V7.4c0-0.4,0.3-0.7,0.7-0.7h1.6c1.2,0,2.2,1,2.2,2.2v2.4 C15.6,12.6,14.6,13.6,13.3,13.6z M12.2,12.5h1.1c0.6,0,1.1-0.5,1.1-1.1V9c0-0.6-0.5-1.1-1.1-1.1h-1.1V12.5z" />' + '<path d="M5.5,13.6c-0.3,0-0.6-0.2-0.6-0.6V7.3C5,7,5.2,6.8,5.5,6.8S6.1,7,6.1,7.3v5.7C6.1,13.4,5.8,13.6,5.5,13.6z" />' + '<path d="M9.2,13.6c-0.3,0-0.6-0.2-0.6-0.6V7.3c0-0.3,0.2-0.6,0.6-0.6S9.8,7,9.8,7.3v5.7C9.8,13.4,9.5,13.6,9.2,13.6z" />' + '<rect x="5.6" y="9.6" width="3.6" height="1.1" />' + '</svg>' + "<svg class=\"theme-icon-item-icon\" style=\"display:none\" fill=\"".concat(btnItem.color, "\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" width=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" height=\"").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "\" viewBox=\"-6 -8 40 44\">\n <path d=\"M24.1,23.8h-20c-1.1,0-1.9-0.9-1.9-1.9V8.4c0-1.2,1-2.2,2.1-2.2h19.7c1.1,0,1.9,0.9,1.9,1.9v13.8\n C26,23,25.1,23.8,24.1,23.8z M4.3,7.7C4,7.7,3.7,8,3.7,8.4v13.5c0,0.2,0.2,0.4,0.4,0.4h20c0.2,0,0.4-0.2,0.4-0.4V8.2\n c0-0.2-0.2-0.4-0.4-0.4H4.3z\"/>\n <path d=\"M18.4,19.8h-2.2c-0.5,0-0.9-0.4-0.9-0.9v-7.8c0-0.5,0.4-0.9,0.9-0.9h2.2c1.7,0,3.1,1.4,3.1,3.1v3.3\n C21.5,18.4,20.1,19.8,18.4,19.8z M16.7,18.3h1.6c0.9,0,1.6-0.7,1.6-1.6v-3.3c0-0.9-0.7-1.6-1.6-1.6h-1.6V18.3z\"/>\n <path d=\"M10.5,19.8c1.2,0,2.1-0.3,2.7-0.9c0.6-0.6,0.9-1.3,0.9-2.1c0-0.8-0.3-1.4-0.9-1.8c-0.4-0.2-1.1-0.5-2.2-0.8\n l0,0l-1-0.2c-0.4-0.1-0.8-0.2-1-0.4c-0.4-0.2-0.6-0.5-0.6-0.9c0-0.4,0.1-0.6,0.4-0.9s0.7-0.3,1.3-0.3c0.8,0,1.4,0.2,1.8,0.6\n c0.2,0.3,0.3,0.6,0.4,0.9l0,0h1.4c0-0.6-0.2-1.1-0.5-1.6c-0.6-0.8-1.6-1.2-2.9-1.2c-1,0-1.8,0.3-2.4,0.8c-0.6,0.5-0.9,1.2-0.9,2\n c0,0.7,0.3,1.3,1,1.7c0.4,0.2,0.9,0.4,1.7,0.6l0,0l1.2,0.3c0.6,0.2,1.1,0.3,1.3,0.4c0.3,0.2,0.5,0.5,0.5,0.9c0,0.5-0.2,0.9-0.6,1.1\n s-0.9,0.4-1.5,0.4c-0.9,0-1.6-0.2-2-0.7c-0.2-0.3-0.3-0.6-0.4-1.1l0,0H6.8c0,0.9,0.3,1.6,0.9,2.2C8.2,19.5,9.2,19.8,10.5,19.8z\"/>\n <defs>\n <filter id=\"Adobe_OpacityMaskFilter\" filterUnits=\"userSpaceOnUse\" x=\"15.2\" y=\"10.3\" width=\"6.2\" height=\"9.5\">\n <feColorMatrix type=\"matrix\" values=\"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0\"/>\n </filter>\n </defs>\n <mask maskUnits=\"userSpaceOnUse\" x=\"15.2\" y=\"10.3\" width=\"6.2\" height=\"9.5\" id=\"mask-2_2_\">\n <g class=\"st2\">\n <path id=\"path-1_2_\" class=\"st3\" d=\"M24.1,23.1h-20c-0.6,0-1.2-0.5-1.2-1.2V8.2C2.9,7.5,3.5,7,4.1,7h19.7c0.8,0,1.4,0.6,1.4,1.4\n v13.5C25.2,22.6,24.7,23.1,24.1,23.1z\"/>\n </g>\n </mask>\n <defs>\n <filter id=\"Adobe_OpacityMaskFilter_1_\" filterUnits=\"userSpaceOnUse\" x=\"6.8\" y=\"10.3\" width=\"7.3\" height=\"9.5\">\n <feColorMatrix type=\"matrix\" values=\"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0\"/>\n </filter>\n </defs>\n <mask maskUnits=\"userSpaceOnUse\" x=\"6.8\" y=\"10.3\" width=\"7.3\" height=\"9.5\" id=\"mask-2_3_\">\n <g class=\"st5\">\n <path id=\"path-1_3_\" class=\"st3\" d=\"M24.1,23.1h-20c-0.6,0-1.2-0.5-1.2-1.2V8.2C2.9,7.5,3.5,7,4.1,7h19.7c0.8,0,1.4,0.6,1.4,1.4\n v13.5C25.2,22.6,24.7,23.1,24.1,23.1z\"/>\n </g>\n </mask>\n </svg>\n ") + "<span class='speed-select-mask' style=\"display:none\" id=\"".concat(this.jSPlugin.id, "-select-hd-mask\"></span>") + '</span>';
29948
28927
  btnItem.onclick = function (e) {
29949
28928
  var _this9$decoderState$s9 = _this9.decoderState.state,
29950
28929
  hd = _this9$decoderState$s9.hd,
29951
- expend = _this9$decoderState$s9.expend,
29952
- recordvideo = _this9$decoderState$s9.recordvideo,
29953
- play = _this9$decoderState$s9.play;
29954
- if (play) {
29955
- // 选择清晰度选项时才触发事件
29956
- if (hd && e.target.id === "".concat(_this9.jSPlugin.id, "-select-sd")) {
29957
- //decoder.changePlayUrl({ hd: false });
29958
- console.log("切换到标清");
29959
- _this9.jSPlugin.changeVideoLevel(0);
29960
- _this9.setDecoderState({
29961
- hd: false
29962
- });
29963
- //xuehb 重置手机端电子放大状态
29964
- _this9.resetMobileZoomStatus();
29965
- //切换清晰度时停止录像并关闭录像计时
29966
- if (recordvideo) {
29967
- // this.jSPlugin.stopSave();
29968
- _this9.setDecoderState({
29969
- recordvideo: false
29970
- });
29971
- }
29972
- _this9.setDecoderState({
29973
- zoom: false
29974
- });
29975
- _this9.jSPlugin.Zoom.stopZoom();
29976
- } else if (!hd && e.target.id === "".concat(_this9.jSPlugin.id, "-select-hd")) {
29977
- _this9.jSPlugin.changeVideoLevel(1);
29978
- _this9.setDecoderState({
29979
- hd: true
29980
- });
29981
- //xuehb 重置手机端电子放大状态
29982
- _this9.resetMobileZoomStatus();
29983
- //切换清晰度时停止录像并关闭录像计时
29984
- if (recordvideo) {
29985
- // this.jSPlugin.stopSave();
29986
- _this9.setDecoderState({
29987
- recordvideo: false
29988
- });
29989
- }
29990
- _this9.setDecoderState({
29991
- zoom: false
29992
- });
29993
- _this9.jSPlugin.Zoom.stopZoom();
29994
- }
29995
- _this9.showHD = !_this9.showHD;
29996
- if (document.getElementById("".concat(_this9.jSPlugin.id, "-hdSelect"))) {
29997
- document.getElementById("".concat(_this9.jSPlugin.id, "-hdSelect")).style.display = document.getElementById("".concat(_this9.jSPlugin.id, "-hdSelect")).style.display === 'none' ? 'block' : 'none';
29998
- if (_this9.isMobile) {
29999
- document.getElementById("".concat(_this9.jSPlugin.id, "-select-hd-mask")).style.display = document.getElementById("".concat(_this9.jSPlugin.id, "-select-hd-mask")).style.display === 'none' ? 'block' : 'none';
30000
- }
30001
- }
30002
- if (_this9.isMobile && expend && _this9.showHD) {
30003
- document.getElementById("".concat(_this9.jSPlugin.id, "-hdSelect")).className = "hd speed-select mobile expend";
30004
- } else {
30005
- document.getElementById("".concat(_this9.jSPlugin.id, "-hdSelect")).className = _this9.isMobile ? "hd speed-select mobile" : "speed-select";
28930
+ expend = _this9$decoderState$s9.expend;
28931
+ // 选择清晰度选项时才触发事件
28932
+ if (hd && e.target.id === "".concat(_this9.jSPlugin.id, "-select-sd")) {
28933
+ //decoder.changePlayUrl({ hd: false });
28934
+ console.log("切换到标清");
28935
+ _this9.jSPlugin.changeVideoLevel(0);
28936
+ _this9.setDecoderState({
28937
+ hd: false
28938
+ });
28939
+ } else if (!hd && e.target.id === "".concat(_this9.jSPlugin.id, "-select-hd")) {
28940
+ _this9.jSPlugin.changeVideoLevel(1);
28941
+ _this9.setDecoderState({
28942
+ hd: true
28943
+ });
28944
+ }
28945
+ _this9.showHD = !_this9.showHD;
28946
+ if (document.getElementById("".concat(_this9.jSPlugin.id, "-hdSelect"))) {
28947
+ document.getElementById("".concat(_this9.jSPlugin.id, "-hdSelect")).style.display = document.getElementById("".concat(_this9.jSPlugin.id, "-hdSelect")).style.display === 'none' ? 'block' : 'none';
28948
+ if (_this9.isMobile) {
28949
+ document.getElementById("".concat(_this9.jSPlugin.id, "-select-hd-mask")).style.display = document.getElementById("".concat(_this9.jSPlugin.id, "-select-hd-mask")).style.display === 'none' ? 'block' : 'none';
30006
28950
  }
30007
28951
  }
28952
+ if (_this9.isMobile && expend && _this9.showHD) {
28953
+ document.getElementById("".concat(_this9.jSPlugin.id, "-hdSelect")).className = "hd speed-select mobile expend";
28954
+ } else {
28955
+ document.getElementById("".concat(_this9.jSPlugin.id, "-hdSelect")).className = _this9.isMobile ? "hd speed-select mobile" : "speed-select";
28956
+ }
30008
28957
  };
30009
28958
  return btnItem;
30010
28959
  case 'speed':
@@ -30013,10 +28962,6 @@ var Theme = /*#__PURE__*/function () {
30013
28962
  btnItem.domString = "<ul id=\"".concat(this.jSPlugin.id, "-speedSelect\" class=\"speed speed-select ").concat(this.isMobile ? "mobile" : "", "\" style=\"display:none;\">") + "<li class=\"selectOption default\" style=\"height: 45px;text-align: center;line-height: 45px;list-style: none;cursor: pointer;font-size: 13px;\" name=\"option\" id=\"".concat(this.jSPlugin.id, "-select-speed4\">4\u500D</li>") + "<li class=\"selectOption default\" style=\"height: 45px;text-align: center;line-height: 45px;list-style: none;cursor: pointer;font-size: 13px;\" name=\"option\" id=\"".concat(this.jSPlugin.id, "-select-speed2\">2\u500D</li>") + "<li class=\"selectOption active\" style=\"height: 45px;text-align: center;line-height: 45px;list-style: none;cursor: pointer;font-size: 13px;\" name=\"option\" id=\"".concat(this.jSPlugin.id, "-select-speed1\">1\u500D\uFF08\u6B63\u5E38\u64AD\u653E\uFF09</li>") + "<li class=\"selectOption default\" style=\"height: 45px;text-align: center;line-height: 45px;list-style: none;cursor: pointer;font-size: 13px;\" name=\"option\" id=\"".concat(this.jSPlugin.id, "-select-speed05\">0.5\u500D</li>") + "<li class=\"selectOption cancel\" style=\"".concat(this.isMobile ? "" : "display:none;", "\" name=\"option\" id=\"").concat(this.jSPlugin.id, "-select-speed\">\u53D6\u6D88</li>") + '</ul>' + "<span>\n <div style=\"font-size: 12px;\n vertical-align: bottom;\n display: inline-flex;\n padding: 0px 7px;\n width: 48px;\n line-height: 24px;\n justify-content: center;\n border: 1px solid ".concat(btnItem.color, ";\n text-align: center;border-radius: 12.5px;\"\n id=\"").concat(this.jSPlugin.id, "-speed-text\"\n >").concat(this.nextRate === 1 ? "倍速" : "".concat(this.nextRate, "\u500D").replace("3", "0.5"), "</div>\n ") + "<span class='speed-select-mask' style=\"display:none\" id=\"".concat(this.jSPlugin.id, "-select-mask\"></span>") + '</span>';
30014
28963
  if (!this.isMobile) {
30015
28964
  btnItem.onmouseenter = function (e) {
30016
- var play = _this9.decoderState.state.play;
30017
- if (!play) {
30018
- return false;
30019
- }
30020
28965
  console.log("鼠标移入", e);
30021
28966
  _this9.setDecoderState({
30022
28967
  speed: true
@@ -30026,10 +28971,6 @@ var Theme = /*#__PURE__*/function () {
30026
28971
  }
30027
28972
  };
30028
28973
  btnItem.onmouseleave = function (e) {
30029
- var play = _this9.decoderState.state.play;
30030
- if (!play) {
30031
- return false;
30032
- }
30033
28974
  console.log("鼠标移出", e);
30034
28975
  _this9.setDecoderState({
30035
28976
  speed: false
@@ -30042,12 +28983,7 @@ var Theme = /*#__PURE__*/function () {
30042
28983
  btnItem.onclick = function (e) {
30043
28984
  var _this9$decoderState$s10 = _this9.decoderState.state,
30044
28985
  speed = _this9$decoderState$s10.speed,
30045
- expend = _this9$decoderState$s10.expend,
30046
- play = _this9$decoderState$s10.play;
30047
- //xuehb 播放状态才可以设置倍数
30048
- if (!play) {
30049
- return false;
30050
- }
28986
+ expend = _this9$decoderState$s10.expend;
30051
28987
  if (!speed && _this9.isMobile) {
30052
28988
  document.getElementById("".concat(_this9.jSPlugin.id, "-speedSelect")).className = expend ? "speed speed-select mobile expend" : "speed speed-select mobile";
30053
28989
  }
@@ -30065,7 +29001,6 @@ var Theme = /*#__PURE__*/function () {
30065
29001
  _this9.nextRate = 1;
30066
29002
  _this9.jSPlugin.jSPlugin.JS_Speed(_this9.nextRate);
30067
29003
  _this9.changeRecSpeed(1);
30068
- _this9.jSPlugin.speed = 1;
30069
29004
  _this9.setDecoderState({
30070
29005
  speed: !speed
30071
29006
  });
@@ -30075,7 +29010,6 @@ var Theme = /*#__PURE__*/function () {
30075
29010
  _this9.nextRate = 2;
30076
29011
  _this9.jSPlugin.jSPlugin.JS_Speed(_this9.nextRate);
30077
29012
  _this9.changeRecSpeed(2);
30078
- _this9.jSPlugin.speed = 2;
30079
29013
  _this9.setDecoderState({
30080
29014
  speed: !speed
30081
29015
  });
@@ -30085,7 +29019,6 @@ var Theme = /*#__PURE__*/function () {
30085
29019
  _this9.nextRate = 4;
30086
29020
  _this9.jSPlugin.jSPlugin.JS_Speed(_this9.nextRate);
30087
29021
  _this9.changeRecSpeed(4);
30088
- _this9.jSPlugin.speed = 4;
30089
29022
  _this9.setDecoderState({
30090
29023
  speed: !speed
30091
29024
  });
@@ -30095,7 +29028,6 @@ var Theme = /*#__PURE__*/function () {
30095
29028
  _this9.nextRate = 3;
30096
29029
  _this9.jSPlugin.jSPlugin.JS_Speed(_this9.nextRate);
30097
29030
  _this9.changeRecSpeed(0.5);
30098
- _this9.jSPlugin.speed = 0.5;
30099
29031
  _this9.setDecoderState({
30100
29032
  speed: !speed
30101
29033
  });
@@ -30152,25 +29084,11 @@ var Theme = /*#__PURE__*/function () {
30152
29084
  });
30153
29085
  _this9.jSPlugin.changePlayUrl({
30154
29086
  type: 'cloud.rec'
30155
- }, function () {
30156
- //xuehb changePlayUrl这个方法异步的,要在成功修改URL后再获取回放时间段
30157
- console.log(_this9.jSPlugin);
30158
- var initDate = getQueryString("begin", _this9.jSPlugin.url) || new Date().Format('yyyyMMdd');
30159
- _this9.Rec.renderRec("".concat(initDate.slice(0, 4), "-").concat(initDate.slice(4, 6), "-").concat(initDate.slice(6, 8)));
30160
- //xuehb 重置放大倍数
30161
- var zoom = _this9.decoderState.state.zoom;
30162
- if (zoom) {
30163
- _this9.setDecoderState({
30164
- zoom: false
30165
- });
30166
- _this9.jSPlugin.Zoom.stopZoom();
30167
- }
30168
29087
  });
30169
29088
  console.log(_this9.jSPlugin);
30170
- // var initDate = getQueryString("begin", this.jSPlugin.url) || new Date().Format('yyyyMMdd');
30171
- // this.Rec.renderRec(`${initDate.slice(0, 4)}-${initDate.slice(4, 6)}-${initDate.slice(6, 8)}`);
29089
+ var initDate = getQueryString("begin", _this9.jSPlugin.url) || new Date().Format('yyyyMMdd');
29090
+ _this9.Rec.renderRec("".concat(initDate.slice(0, 4), "-").concat(initDate.slice(4, 6), "-").concat(initDate.slice(6, 8)));
30172
29091
  };
30173
-
30174
29092
  return btnItem;
30175
29093
  case 'rec':
30176
29094
  btnItem.title = "本地存储";
@@ -30185,26 +29103,11 @@ var Theme = /*#__PURE__*/function () {
30185
29103
  });
30186
29104
  _this9.jSPlugin.changePlayUrl({
30187
29105
  type: 'rec'
30188
- }, function () {
30189
- //xuehb 这个方法异步的,要在成功修改URL后再获取回放时间段
30190
- console.log('---------本地回放');
30191
- console.log(_this9.jSPlugin);
30192
- var initDate = getQueryString("begin", _this9.jSPlugin.url) || new Date().Format('yyyyMMdd');
30193
- _this9.Rec.renderRec("".concat(initDate.slice(0, 4), "-").concat(initDate.slice(4, 6), "-").concat(initDate.slice(6, 8)));
30194
- //xuehb 重置放大倍数
30195
- var zoom = _this9.decoderState.state.zoom;
30196
- if (zoom) {
30197
- _this9.setDecoderState({
30198
- zoom: false
30199
- });
30200
- _this9.jSPlugin.Zoom.stopZoom();
30201
- }
30202
29106
  });
30203
29107
  console.log(_this9.jSPlugin);
30204
- // var initDate = getQueryString("begin", this.jSPlugin.url) || new Date().Format('yyyyMMdd');
30205
- // this.Rec.renderRec(`${initDate.slice(0, 4)}-${initDate.slice(4, 6)}-${initDate.slice(6, 8)}`);
29108
+ var initDate = getQueryString("begin", _this9.jSPlugin.url) || new Date().Format('yyyyMMdd');
29109
+ _this9.Rec.renderRec("".concat(initDate.slice(0, 4), "-").concat(initDate.slice(4, 6), "-").concat(initDate.slice(6, 8)));
30206
29110
  };
30207
-
30208
29111
  return btnItem;
30209
29112
  default:
30210
29113
  return btnItem;
@@ -30339,7 +29242,7 @@ var Theme = /*#__PURE__*/function () {
30339
29242
  };
30340
29243
  footerContainer.style = styleToString(footerStyle);
30341
29244
  footerContainer.innerHTML = "<div id=\"".concat(this.jSPlugin.id, "-audioControls\" class=\"footer-controls\" style='display:flex;height:").concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "px;justify-content: space-between;width:100%;z-index:999;position: relative;'><div id='").concat(this.jSPlugin.id, "-audioControls-left' class=\"footer-controls-left\" style='display:flex;margin-lefacti'></div><div id='").concat(this.jSPlugin.id, "-audioControls-right' class=\"footer-controls-right\" style='display:flex'></div></div>");
30342
- insertAfter$1(footerContainer, document.getElementById(videoId));
29245
+ insertAfter(footerContainer, document.getElementById(videoId));
30343
29246
  } else {
30344
29247
  if (document.getElementById("".concat(this.jSPlugin.id, "-ez-iframe-footer-container"))) {
30345
29248
  document.getElementById("".concat(this.jSPlugin.id, "-ez-iframe-footer-container")).style.marginTop = "-".concat(this.jSPlugin.width > MEDIAWIDTH ? 48 : 32, "px");
@@ -30374,16 +29277,13 @@ var Theme = /*#__PURE__*/function () {
30374
29277
  if (document.getElementById("".concat(this.jSPlugin.id, "-headControl-right"))) {
30375
29278
  document.getElementById("".concat(this.jSPlugin.id, "-headControl-right")).style.display = "none";
30376
29279
  }
30377
- //xuehb changeRecSpeed传入,用来重置播放速度 resetMobileZoomStatus 重置手机放大状态方法
30378
- this.Rec = new MobileRec(this.jSPlugin, this.changeRecSpeed, this.resetMobileZoomStatus);
29280
+ this.Rec = new MobileRec(this.jSPlugin);
30379
29281
  } else {
30380
29282
  if (this.Rec) {
30381
29283
  // 如果回放已经定义,只需要初始化渲染
30382
29284
  this.Rec.unSyncTimeLine();
30383
29285
  this.Rec.recInit();
30384
29286
  } else {
30385
- this.jSPlugin.decoderState = this.decoderState;
30386
- this.jSPlugin.setDecoderState = this.setDecoderState;
30387
29287
  this.Rec = new Rec(this.jSPlugin);
30388
29288
  }
30389
29289
 
@@ -30448,35 +29348,12 @@ var Theme = /*#__PURE__*/function () {
30448
29348
  //设备信息
30449
29349
  this.getDeviceInfo();
30450
29350
  }
30451
- //xuehb 重置手机端电子放大状态
30452
- }, {
30453
- key: "resetMobileZoomStatus",
30454
- value: function resetMobileZoomStatus() {
30455
- if (this.isMobile) {
30456
- var zoomidDom = document.getElementById("".concat(this.jSPlugin.id, "-zoom-container"));
30457
- if (zoomidDom && zoomidDom.style && zoomidDom.style.display != 'none') {
30458
- console.log('结束电子放大');
30459
- zoomidDom.style.display = "none";
30460
- }
30461
- //xuehb 重置放大倍数
30462
- this.jSPlugin.Zoom.resetZoom();
30463
- }
30464
- }
30465
29351
  }, {
30466
29352
  key: "getDeviceInfo",
30467
29353
  value: function getDeviceInfo() {
30468
29354
  var _this12 = this;
30469
29355
  var deviceAPISuccess = function deviceAPISuccess(data) {
30470
29356
  if (data.code == 200 && data.data) {
30471
- if (data.data.isEncrypt) {
30472
- setTimeout(function () {
30473
- _this12.pluginStatus.loadingClear();
30474
- _this12.pluginStatus.loadingSetText({
30475
- text: "设备已加密",
30476
- color: 'red'
30477
- });
30478
- }, 1500);
30479
- }
30480
29357
  // 设备序列号
30481
29358
  if (document.getElementById("".concat(_this12.jSPlugin.id, "-deviceName-content"))) {
30482
29359
  document.getElementById("".concat(_this12.jSPlugin.id, "-deviceName-content")).style.maxWidth = "100%";
@@ -30534,10 +29411,10 @@ var Theme = /*#__PURE__*/function () {
30534
29411
  key: "webExpend",
30535
29412
  value: function webExpend() {
30536
29413
  var _this13 = this;
30537
- var _this$decoderState$st2 = this.decoderState.state;
30538
- _this$decoderState$st2.webExpend;
30539
- var expend = _this$decoderState$st2.expend,
30540
- play = _this$decoderState$st2.play;
29414
+ var _this$decoderState$st = this.decoderState.state,
29415
+ webExpend = _this$decoderState$st.webExpend,
29416
+ expend = _this$decoderState$st.expend,
29417
+ play = _this$decoderState$st.play;
30541
29418
  if (!play) {
30542
29419
  return false;
30543
29420
  }
@@ -30575,11 +29452,11 @@ var Theme = /*#__PURE__*/function () {
30575
29452
  key: "expend",
30576
29453
  value: function expend() {
30577
29454
  var _this14 = this;
30578
- var _this$decoderState$st3 = this.decoderState.state,
30579
- webExpend = _this$decoderState$st3.webExpend;
30580
- _this$decoderState$st3.expend;
30581
- var play = _this$decoderState$st3.play;
30582
- _this$decoderState$st3.pantile;
29455
+ var _this$decoderState$st2 = this.decoderState.state,
29456
+ webExpend = _this$decoderState$st2.webExpend,
29457
+ expend = _this$decoderState$st2.expend,
29458
+ play = _this$decoderState$st2.play,
29459
+ pantile = _this$decoderState$st2.pantile;
30583
29460
  if (!play) {
30584
29461
  return false;
30585
29462
  }
@@ -30639,7 +29516,7 @@ Date.prototype.Format = function (fmt) {
30639
29516
  };
30640
29517
  var Monitor = /*#__PURE__*/function () {
30641
29518
  function Monitor(params, jsPlugin) {
30642
- _classCallCheck$1(this, Monitor);
29519
+ _classCallCheck(this, Monitor);
30643
29520
  this.params = params;
30644
29521
  this.state = {};
30645
29522
  this.jsPlugin = jsPlugin;
@@ -30658,7 +29535,7 @@ var Monitor = /*#__PURE__*/function () {
30658
29535
  }
30659
29536
  }
30660
29537
  /** 生成uuid */
30661
- _createClass$1(Monitor, [{
29538
+ _createClass(Monitor, [{
30662
29539
  key: "uuid",
30663
29540
  value: function uuid() {
30664
29541
  var s = [];
@@ -31243,8 +30120,6 @@ var Monitor = /*#__PURE__*/function () {
31243
30120
  _this.opt.isReliesReady = true;
31244
30121
  });
31245
30122
  });
31246
- }, function () {
31247
- return !!window.adapter;
31248
30123
  });
31249
30124
  } // 创建DOM
31250
30125
 
@@ -31720,7 +30595,7 @@ var Monitor = /*#__PURE__*/function () {
31720
30595
 
31721
30596
  var _this = this;
31722
30597
  window.addEventListener("message", function (event) {
31723
- event.origin;
30598
+ var origin = event.origin;
31724
30599
  var id = _this.opt.id;
31725
30600
  if (event.data.type) {
31726
30601
  switch (event.data.type) {
@@ -32219,7 +31094,6 @@ var Monitor = /*#__PURE__*/function () {
32219
31094
  var EZUIKitV3 = EZUIKit;
32220
31095
  return EZUIKitV3;
32221
31096
  });
32222
- var EZUIKitV3$1 = EZUIKitV3;
32223
31097
 
32224
31098
  /* global setTimeout, clearTimeout */
32225
31099
  var dist = function debounce(fn) {
@@ -32277,519 +31151,11 @@ function defer() {
32277
31151
  return deferred;
32278
31152
  }
32279
31153
 
32280
- (function () {
32281
- var h;
32282
- function l(a) {
32283
- var b = 0;
32284
- return function () {
32285
- return b < a.length ? {
32286
- done: !1,
32287
- value: a[b++]
32288
- } : {
32289
- done: !0
32290
- };
32291
- };
32292
- }
32293
- var m = "function" == typeof Object.defineProperties ? Object.defineProperty : function (a, b, c) {
32294
- if (a == Array.prototype || a == Object.prototype) return a;
32295
- a[b] = c.value;
32296
- return a;
32297
- };
32298
- function n(a) {
32299
- a = ["object" == typeof globalThis && globalThis, a, "object" == typeof window && window, "object" == typeof self && self, "object" == typeof commonjsGlobal && commonjsGlobal];
32300
- for (var b = 0; b < a.length; ++b) {
32301
- var c = a[b];
32302
- if (c && c.Math == Math) return c;
32303
- }
32304
- throw Error("Cannot find global object");
32305
- }
32306
- var q = n(this);
32307
- function r(a, b) {
32308
- if (b) a: {
32309
- var c = q;
32310
- a = a.split(".");
32311
- for (var d = 0; d < a.length - 1; d++) {
32312
- var e = a[d];
32313
- if (!(e in c)) break a;
32314
- c = c[e];
32315
- }
32316
- a = a[a.length - 1];
32317
- d = c[a];
32318
- b = b(d);
32319
- b != d && null != b && m(c, a, {
32320
- configurable: !0,
32321
- writable: !0,
32322
- value: b
32323
- });
32324
- }
32325
- }
32326
- r("Symbol", function (a) {
32327
- function b(f) {
32328
- if (this instanceof b) throw new TypeError("Symbol is not a constructor");
32329
- return new c(d + (f || "") + "_" + e++, f);
32330
- }
32331
- function c(f, g) {
32332
- this.A = f;
32333
- m(this, "description", {
32334
- configurable: !0,
32335
- writable: !0,
32336
- value: g
32337
- });
32338
- }
32339
- if (a) return a;
32340
- c.prototype.toString = function () {
32341
- return this.A;
32342
- };
32343
- var d = "jscomp_symbol_" + (1E9 * Math.random() >>> 0) + "_",
32344
- e = 0;
32345
- return b;
32346
- });
32347
- r("Symbol.iterator", function (a) {
32348
- if (a) return a;
32349
- a = Symbol("Symbol.iterator");
32350
- for (var b = "Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "), c = 0; c < b.length; c++) {
32351
- var d = q[b[c]];
32352
- "function" === typeof d && "function" != typeof d.prototype[a] && m(d.prototype, a, {
32353
- configurable: !0,
32354
- writable: !0,
32355
- value: function () {
32356
- return u(l(this));
32357
- }
32358
- });
32359
- }
32360
- return a;
32361
- });
32362
- function u(a) {
32363
- a = {
32364
- next: a
32365
- };
32366
- a[Symbol.iterator] = function () {
32367
- return this;
32368
- };
32369
- return a;
32370
- }
32371
- function v(a) {
32372
- var b = "undefined" != typeof Symbol && Symbol.iterator && a[Symbol.iterator];
32373
- return b ? b.call(a) : {
32374
- next: l(a)
32375
- };
32376
- }
32377
- var w;
32378
- if ("function" == typeof Object.setPrototypeOf) w = Object.setPrototypeOf;else {
32379
- var y;
32380
- a: {
32381
- var z = {
32382
- a: !0
32383
- },
32384
- A = {};
32385
- try {
32386
- A.__proto__ = z;
32387
- y = A.a;
32388
- break a;
32389
- } catch (a) {}
32390
- y = !1;
32391
- }
32392
- w = y ? function (a, b) {
32393
- a.__proto__ = b;
32394
- if (a.__proto__ !== b) throw new TypeError(a + " is not extensible");
32395
- return a;
32396
- } : null;
32397
- }
32398
- var B = w;
32399
- function C() {
32400
- this.m = !1;
32401
- this.j = null;
32402
- this.v = void 0;
32403
- this.h = 1;
32404
- this.u = this.C = 0;
32405
- this.l = null;
32406
- }
32407
- function D(a) {
32408
- if (a.m) throw new TypeError("Generator is already running");
32409
- a.m = !0;
32410
- }
32411
- C.prototype.o = function (a) {
32412
- this.v = a;
32413
- };
32414
- C.prototype.s = function (a) {
32415
- this.l = {
32416
- D: a,
32417
- F: !0
32418
- };
32419
- this.h = this.C || this.u;
32420
- };
32421
- C.prototype.return = function (a) {
32422
- this.l = {
32423
- return: a
32424
- };
32425
- this.h = this.u;
32426
- };
32427
- function E(a, b) {
32428
- a.h = 3;
32429
- return {
32430
- value: b
32431
- };
32432
- }
32433
- function F(a) {
32434
- this.g = new C();
32435
- this.G = a;
32436
- }
32437
- F.prototype.o = function (a) {
32438
- D(this.g);
32439
- if (this.g.j) return G(this, this.g.j.next, a, this.g.o);
32440
- this.g.o(a);
32441
- return H(this);
32442
- };
32443
- function I(a, b) {
32444
- D(a.g);
32445
- var c = a.g.j;
32446
- if (c) return G(a, "return" in c ? c["return"] : function (d) {
32447
- return {
32448
- value: d,
32449
- done: !0
32450
- };
32451
- }, b, a.g.return);
32452
- a.g.return(b);
32453
- return H(a);
32454
- }
32455
- F.prototype.s = function (a) {
32456
- D(this.g);
32457
- if (this.g.j) return G(this, this.g.j["throw"], a, this.g.o);
32458
- this.g.s(a);
32459
- return H(this);
32460
- };
32461
- function G(a, b, c, d) {
32462
- try {
32463
- var e = b.call(a.g.j, c);
32464
- if (!(e instanceof Object)) throw new TypeError("Iterator result " + e + " is not an object");
32465
- if (!e.done) return a.g.m = !1, e;
32466
- var f = e.value;
32467
- } catch (g) {
32468
- return a.g.j = null, a.g.s(g), H(a);
32469
- }
32470
- a.g.j = null;
32471
- d.call(a.g, f);
32472
- return H(a);
32473
- }
32474
- function H(a) {
32475
- for (; a.g.h;) try {
32476
- var b = a.G(a.g);
32477
- if (b) return a.g.m = !1, {
32478
- value: b.value,
32479
- done: !1
32480
- };
32481
- } catch (c) {
32482
- a.g.v = void 0, a.g.s(c);
32483
- }
32484
- a.g.m = !1;
32485
- if (a.g.l) {
32486
- b = a.g.l;
32487
- a.g.l = null;
32488
- if (b.F) throw b.D;
32489
- return {
32490
- value: b.return,
32491
- done: !0
32492
- };
32493
- }
32494
- return {
32495
- value: void 0,
32496
- done: !0
32497
- };
32498
- }
32499
- function J(a) {
32500
- this.next = function (b) {
32501
- return a.o(b);
32502
- };
32503
- this.throw = function (b) {
32504
- return a.s(b);
32505
- };
32506
- this.return = function (b) {
32507
- return I(a, b);
32508
- };
32509
- this[Symbol.iterator] = function () {
32510
- return this;
32511
- };
32512
- }
32513
- function K(a, b) {
32514
- b = new J(new F(b));
32515
- B && a.prototype && B(b, a.prototype);
32516
- return b;
32517
- }
32518
- function L(a, b) {
32519
- a instanceof String && (a += "");
32520
- var c = 0,
32521
- d = !1,
32522
- e = {
32523
- next: function () {
32524
- if (!d && c < a.length) {
32525
- var f = c++;
32526
- return {
32527
- value: b(f, a[f]),
32528
- done: !1
32529
- };
32530
- }
32531
- d = !0;
32532
- return {
32533
- done: !0,
32534
- value: void 0
32535
- };
32536
- }
32537
- };
32538
- e[Symbol.iterator] = function () {
32539
- return e;
32540
- };
32541
- return e;
32542
- }
32543
- r("Array.prototype.entries", function (a) {
32544
- return a ? a : function () {
32545
- return L(this, function (b, c) {
32546
- return [b, c];
32547
- });
32548
- };
32549
- });
32550
- if ("undefined" !== typeof Blob && ("undefined" === typeof FormData || !FormData.prototype.keys)) {
32551
- var M = function (a, b) {
32552
- for (var c = 0; c < a.length; c++) b(a[c]);
32553
- },
32554
- N = function (a) {
32555
- return a.replace(/\r?\n|\r/g, "\r\n");
32556
- },
32557
- O = function (a, b, c) {
32558
- if (b instanceof Blob) {
32559
- c = void 0 !== c ? String(c + "") : "string" === typeof b.name ? b.name : "blob";
32560
- if (b.name !== c || "[object Blob]" === Object.prototype.toString.call(b)) b = new File([b], c);
32561
- return [String(a), b];
32562
- }
32563
- return [String(a), String(b)];
32564
- },
32565
- P = function (a, b) {
32566
- if (a.length < b) throw new TypeError(b + " argument required, but only " + a.length + " present.");
32567
- },
32568
- Q = "object" === typeof globalThis ? globalThis : "object" === typeof window ? window : "object" === typeof self ? self : this,
32569
- R = Q.FormData,
32570
- S = Q.XMLHttpRequest && Q.XMLHttpRequest.prototype.send,
32571
- T = Q.Request && Q.fetch,
32572
- U = Q.navigator && Q.navigator.sendBeacon,
32573
- V = Q.Element && Q.Element.prototype,
32574
- W = Q.Symbol && Symbol.toStringTag;
32575
- W && (Blob.prototype[W] || (Blob.prototype[W] = "Blob"), "File" in Q && !File.prototype[W] && (File.prototype[W] = "File"));
32576
- try {
32577
- new File([], "");
32578
- } catch (a) {
32579
- Q.File = function (b, c, d) {
32580
- b = new Blob(b, d || {});
32581
- Object.defineProperties(b, {
32582
- name: {
32583
- value: c
32584
- },
32585
- lastModified: {
32586
- value: +(d && void 0 !== d.lastModified ? new Date(d.lastModified) : new Date())
32587
- },
32588
- toString: {
32589
- value: function () {
32590
- return "[object File]";
32591
- }
32592
- }
32593
- });
32594
- W && Object.defineProperty(b, W, {
32595
- value: "File"
32596
- });
32597
- return b;
32598
- };
32599
- }
32600
- var escape = function (a) {
32601
- return a.replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22");
32602
- },
32603
- X = function (a) {
32604
- this.i = [];
32605
- var b = this;
32606
- a && M(a.elements, function (c) {
32607
- if (c.name && !c.disabled && "submit" !== c.type && "button" !== c.type && !c.matches("form fieldset[disabled] *")) if ("file" === c.type) {
32608
- var d = c.files && c.files.length ? c.files : [new File([], "", {
32609
- type: "application/octet-stream"
32610
- })];
32611
- M(d, function (e) {
32612
- b.append(c.name, e);
32613
- });
32614
- } else "select-multiple" === c.type || "select-one" === c.type ? M(c.options, function (e) {
32615
- !e.disabled && e.selected && b.append(c.name, e.value);
32616
- }) : "checkbox" === c.type || "radio" === c.type ? c.checked && b.append(c.name, c.value) : (d = "textarea" === c.type ? N(c.value) : c.value, b.append(c.name, d));
32617
- });
32618
- };
32619
- h = X.prototype;
32620
- h.append = function (a, b, c) {
32621
- P(arguments, 2);
32622
- this.i.push(O(a, b, c));
32623
- };
32624
- h.delete = function (a) {
32625
- P(arguments, 1);
32626
- var b = [];
32627
- a = String(a);
32628
- M(this.i, function (c) {
32629
- c[0] !== a && b.push(c);
32630
- });
32631
- this.i = b;
32632
- };
32633
- h.entries = function b() {
32634
- var c,
32635
- d = this;
32636
- return K(b, function (e) {
32637
- 1 == e.h && (c = 0);
32638
- if (3 != e.h) return c < d.i.length ? e = E(e, d.i[c]) : (e.h = 0, e = void 0), e;
32639
- c++;
32640
- e.h = 2;
32641
- });
32642
- };
32643
- h.forEach = function (b, c) {
32644
- P(arguments, 1);
32645
- for (var d = v(this), e = d.next(); !e.done; e = d.next()) {
32646
- var f = v(e.value);
32647
- e = f.next().value;
32648
- f = f.next().value;
32649
- b.call(c, f, e, this);
32650
- }
32651
- };
32652
- h.get = function (b) {
32653
- P(arguments, 1);
32654
- var c = this.i;
32655
- b = String(b);
32656
- for (var d = 0; d < c.length; d++) if (c[d][0] === b) return c[d][1];
32657
- return null;
32658
- };
32659
- h.getAll = function (b) {
32660
- P(arguments, 1);
32661
- var c = [];
32662
- b = String(b);
32663
- M(this.i, function (d) {
32664
- d[0] === b && c.push(d[1]);
32665
- });
32666
- return c;
32667
- };
32668
- h.has = function (b) {
32669
- P(arguments, 1);
32670
- b = String(b);
32671
- for (var c = 0; c < this.i.length; c++) if (this.i[c][0] === b) return !0;
32672
- return !1;
32673
- };
32674
- h.keys = function c() {
32675
- var d = this,
32676
- e,
32677
- f,
32678
- g,
32679
- k,
32680
- p;
32681
- return K(c, function (t) {
32682
- 1 == t.h && (e = v(d), f = e.next());
32683
- if (3 != t.h) {
32684
- if (f.done) {
32685
- t.h = 0;
32686
- return;
32687
- }
32688
- g = f.value;
32689
- k = v(g);
32690
- p = k.next().value;
32691
- return E(t, p);
32692
- }
32693
- f = e.next();
32694
- t.h = 2;
32695
- });
32696
- };
32697
- h.set = function (c, d, e) {
32698
- P(arguments, 2);
32699
- c = String(c);
32700
- var f = [],
32701
- g = O(c, d, e),
32702
- k = !0;
32703
- M(this.i, function (p) {
32704
- p[0] === c ? k && (k = !f.push(g)) : f.push(p);
32705
- });
32706
- k && f.push(g);
32707
- this.i = f;
32708
- };
32709
- h.values = function d() {
32710
- var e = this,
32711
- f,
32712
- g,
32713
- k,
32714
- p,
32715
- t;
32716
- return K(d, function (x) {
32717
- 1 == x.h && (f = v(e), g = f.next());
32718
- if (3 != x.h) {
32719
- if (g.done) {
32720
- x.h = 0;
32721
- return;
32722
- }
32723
- k = g.value;
32724
- p = v(k);
32725
- p.next();
32726
- t = p.next().value;
32727
- return E(x, t);
32728
- }
32729
- g = f.next();
32730
- x.h = 2;
32731
- });
32732
- };
32733
- X.prototype._asNative = function () {
32734
- for (var d = new R(), e = v(this), f = e.next(); !f.done; f = e.next()) {
32735
- var g = v(f.value);
32736
- f = g.next().value;
32737
- g = g.next().value;
32738
- d.append(f, g);
32739
- }
32740
- return d;
32741
- };
32742
- X.prototype._blob = function () {
32743
- var d = "----formdata-polyfill-" + Math.random(),
32744
- e = [],
32745
- f = "--" + d + '\r\nContent-Disposition: form-data; name="';
32746
- this.forEach(function (g, k) {
32747
- return "string" == typeof g ? e.push(f + escape(N(k)) + ('"\r\n\r\n' + N(g) + "\r\n")) : e.push(f + escape(N(k)) + ('"; filename="' + escape(g.name) + '"\r\nContent-Type: ' + (g.type || "application/octet-stream") + "\r\n\r\n"), g, "\r\n");
32748
- });
32749
- e.push("--" + d + "--");
32750
- return new Blob(e, {
32751
- type: "multipart/form-data; boundary=" + d
32752
- });
32753
- };
32754
- X.prototype[Symbol.iterator] = function () {
32755
- return this.entries();
32756
- };
32757
- X.prototype.toString = function () {
32758
- return "[object FormData]";
32759
- };
32760
- V && !V.matches && (V.matches = V.matchesSelector || V.mozMatchesSelector || V.msMatchesSelector || V.oMatchesSelector || V.webkitMatchesSelector || function (d) {
32761
- d = (this.document || this.ownerDocument).querySelectorAll(d);
32762
- for (var e = d.length; 0 <= --e && d.item(e) !== this;);
32763
- return -1 < e;
32764
- });
32765
- W && (X.prototype[W] = "FormData");
32766
- if (S) {
32767
- var Y = Q.XMLHttpRequest.prototype.setRequestHeader;
32768
- Q.XMLHttpRequest.prototype.setRequestHeader = function (d, e) {
32769
- Y.call(this, d, e);
32770
- "content-type" === d.toLowerCase() && (this.B = !0);
32771
- };
32772
- Q.XMLHttpRequest.prototype.send = function (d) {
32773
- d instanceof X ? (d = d._blob(), this.B || this.setRequestHeader("Content-Type", d.type), S.call(this, d)) : S.call(this, d);
32774
- };
32775
- }
32776
- T && (Q.fetch = function (d, e) {
32777
- e && e.body && e.body instanceof X && (e.body = e.body._blob());
32778
- return T.call(this, d, e);
32779
- });
32780
- U && (Q.navigator.sendBeacon = function (d, e) {
32781
- e instanceof X && (e = e._asNative());
32782
- return U.call(this, d, e);
32783
- });
32784
- Q.FormData = X;
32785
- }
32786
- })();
32787
-
32788
31154
  /**
32789
31155
  * Created by wangweijie5 on 2016/12/16.
32790
31156
  */
32791
31157
 
32792
- var _createClass = function () {
31158
+ var _createClass$1 = function () {
32793
31159
  function defineProperties(target, props) {
32794
31160
  for (var i = 0; i < props.length; i++) {
32795
31161
  var descriptor = props[i];
@@ -32805,7 +31171,7 @@ var _createClass = function () {
32805
31171
  return Constructor;
32806
31172
  };
32807
31173
  }();
32808
- function _classCallCheck(instance, Constructor) {
31174
+ function _classCallCheck$1(instance, Constructor) {
32809
31175
  if (!(instance instanceof Constructor)) {
32810
31176
  throw new TypeError("Cannot call a class as a function");
32811
31177
  }
@@ -32817,9 +31183,9 @@ var __instance = function () {
32817
31183
  return instance;
32818
31184
  };
32819
31185
  }();
32820
- (function () {
31186
+ var AudioRenderer = function () {
32821
31187
  function AudioRenderer() {
32822
- _classCallCheck(this, AudioRenderer);
31188
+ _classCallCheck$1(this, AudioRenderer);
32823
31189
  if (__instance()) return __instance();
32824
31190
 
32825
31191
  // 确保只有单例
@@ -32860,7 +31226,7 @@ var __instance = function () {
32860
31226
  * @returns 状态码
32861
31227
  */
32862
31228
 
32863
- _createClass(AudioRenderer, [{
31229
+ _createClass$1(AudioRenderer, [{
32864
31230
  key: 'Play',
32865
31231
  value: function Play(dataBuf, dataLen, audioInfo) {
32866
31232
  var bufferData = new ArrayBuffer(44 + dataLen);
@@ -33004,7 +31370,7 @@ var __instance = function () {
33004
31370
  }]);
33005
31371
  window.AudioRenderer = AudioRenderer;
33006
31372
  return AudioRenderer;
33007
- })();
31373
+ }();
33008
31374
 
33009
31375
  //顶点着色器
33010
31376
  //attribute修饰符用于声明由浏览器(javascript)传输给顶点着色器的变量值;
@@ -33027,8 +31393,8 @@ var fragmentYUVShader = ['precision highp float;', 'varying highp vec2 textureCo
33027
31393
  }
33028
31394
  }
33029
31395
 
33030
- /**
33031
- * 初始化WebGL上下文
31396
+ /**
31397
+ * 初始化WebGL上下文
33032
31398
  */
33033
31399
  RenderManager.prototype.initContextGL = function () {
33034
31400
  var canvas = this.canvasElement;
@@ -33045,10 +31411,10 @@ var fragmentYUVShader = ['precision highp float;', 'varying highp vec2 textureCo
33045
31411
  console.log("WebGL1.0");
33046
31412
  };
33047
31413
 
33048
- /**
33049
- * 初始化着色器程序
33050
- * @param vertexShaderScript 顶点着色器脚本
33051
- * @param fragmentShaderScript 片段着色器脚本
31414
+ /**
31415
+ * 初始化着色器程序
31416
+ * @param vertexShaderScript 顶点着色器脚本
31417
+ * @param fragmentShaderScript 片段着色器脚本
33052
31418
  */
33053
31419
  RenderManager.prototype.initProgram = function (vertexShaderScript, fragmentShaderScript) {
33054
31420
  var gl = this.contextGL;
@@ -33076,8 +31442,8 @@ var fragmentYUVShader = ['precision highp float;', 'varying highp vec2 textureCo
33076
31442
  return program;
33077
31443
  };
33078
31444
 
33079
- /**
33080
- * 初始化数据缓存
31445
+ /**
31446
+ * 初始化数据缓存
33081
31447
  */
33082
31448
  RenderManager.prototype.initBuffers = function () {
33083
31449
  var gl = this.contextGL;
@@ -33093,8 +31459,8 @@ var fragmentYUVShader = ['precision highp float;', 'varying highp vec2 textureCo
33093
31459
  this.texturePosBuffer = texturePosBuffer;
33094
31460
  };
33095
31461
 
33096
- /**
33097
- * 创建纹理
31462
+ /**
31463
+ * 创建纹理
33098
31464
  */
33099
31465
  RenderManager.prototype.initTexture = function () {
33100
31466
  var gl = this.contextGL;
@@ -33108,8 +31474,8 @@ var fragmentYUVShader = ['precision highp float;', 'varying highp vec2 textureCo
33108
31474
  return textureRef;
33109
31475
  };
33110
31476
 
33111
- /**
33112
- * 初始化YUV纹理
31477
+ /**
31478
+ * 初始化YUV纹理
33113
31479
  */
33114
31480
  RenderManager.prototype.initTextures = function () {
33115
31481
  var gl = this.contextGL;
@@ -33130,11 +31496,11 @@ var fragmentYUVShader = ['precision highp float;', 'varying highp vec2 textureCo
33130
31496
  gl.useProgram(null);
33131
31497
  };
33132
31498
 
33133
- /**
33134
- * 显示帧数据
33135
- * @param nWidth 宽度
33136
- * @param nHeight 高度
33137
- * @param nHeight 帧数据
31499
+ /**
31500
+ * 显示帧数据
31501
+ * @param nWidth 宽度
31502
+ * @param nHeight 高度
31503
+ * @param nHeight 帧数据
33138
31504
  */
33139
31505
  RenderManager.prototype.SR_DisplayFrameData = function (nWidth, nHeight, pData, dWidth, dHeight) {
33140
31506
  if (nWidth <= 0 || nHeight <= 0) {
@@ -33175,11 +31541,11 @@ var fragmentYUVShader = ['precision highp float;', 'varying highp vec2 textureCo
33175
31541
  gl.useProgram(null);
33176
31542
  };
33177
31543
 
33178
- /**
33179
- * 上传YUV数据到纹理
33180
- * @param nWidth 宽度
33181
- * @param nHeight 高度
33182
- * @param nHeight 帧数据
31544
+ /**
31545
+ * 上传YUV数据到纹理
31546
+ * @param nWidth 宽度
31547
+ * @param nHeight 高度
31548
+ * @param nHeight 帧数据
33183
31549
  */
33184
31550
  RenderManager.prototype.updateFrameData = function (width, height, data, dWidth, dHeight) {
33185
31551
  var gl = this.contextGL;
@@ -33250,9 +31616,9 @@ var fragmentYUVShader = ['precision highp float;', 'varying highp vec2 textureCo
33250
31616
  }
33251
31617
  };
33252
31618
 
33253
- /**
33254
- * 设置显示区域
33255
- * @param stDisplayRect 显示区域
31619
+ /**
31620
+ * 设置显示区域
31621
+ * @param stDisplayRect 显示区域
33256
31622
  */
33257
31623
  RenderManager.prototype.SR_SetDisplayRect = function (stDisplayRect) {
33258
31624
  var gl = this.contextGL;
@@ -33274,8 +31640,8 @@ var fragmentYUVShader = ['precision highp float;', 'varying highp vec2 textureCo
33274
31640
  gl.bindBuffer(gl.ARRAY_BUFFER, null);
33275
31641
  };
33276
31642
 
33277
- /**
33278
- * 释放显示资源
31643
+ /**
31644
+ * 释放显示资源
33279
31645
  */
33280
31646
  RenderManager.prototype.SR_Destroy = function () {
33281
31647
  var gl = this.contextGL;
@@ -33300,8 +31666,8 @@ var fragmentYUVShader = ['precision highp float;', 'varying highp vec2 textureCo
33300
31666
  // 插件资源静态域名
33301
31667
  var uikitStaticDomain = 'https://open.ys7.com';
33302
31668
  // const uikitStaticDomain = 'https://test13open.ys7.com';
33303
- var uikitStaticPathV2 = "".concat(uikitStaticDomain, "/console/ezuikit_static/v66/v2");
33304
- var uikitStaticPathV1 = "".concat(uikitStaticDomain, "/console/ezuikit_static/v66/v1");
31669
+ var uikitStaticPathV2 = "".concat(uikitStaticDomain, "/console/ezuikit_static/v65/v2");
31670
+ var uikitStaticPathV1 = "".concat(uikitStaticDomain, "/console/ezuikit_static/v65/v1");
33305
31671
 
33306
31672
  // iframe模板 - 兼容旧版本
33307
31673
  var matchTemplate = function matchTemplate(templateName, params) {
@@ -33380,7 +31746,7 @@ var isVersion2Available = function isVersion2Available() {
33380
31746
  var EZUIKitPlayer = /*#__PURE__*/function () {
33381
31747
  function EZUIKitPlayer(params) {
33382
31748
  var _this = this;
33383
- _classCallCheck$1(this, EZUIKitPlayer);
31749
+ _classCallCheck(this, EZUIKitPlayer);
33384
31750
  // 解决当ws连接建立但是没有推流导致未触发播放成功事件,
33385
31751
  // 此时切换设备执行 播放器 stop 时触发了播放成功事件导致设备序列号重置
33386
31752
  this.isStoping = false; // 是否在播放前 stop 执行过程中
@@ -33425,7 +31791,6 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
33425
31791
  };
33426
31792
  var isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
33427
31793
  this.isMobile = isMobile;
33428
-
33429
31794
  // 兼容多次初始化
33430
31795
  if (document.getElementById("".concat(this.id, "-wrap"))) {
33431
31796
  document.getElementById("".concat(this.id, "-wrap")).innerHTML = "";
@@ -33515,8 +31880,7 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
33515
31880
  _this.Monitor.dclog({
33516
31881
  url: _this.url,
33517
31882
  action: 0,
33518
- text: 'startInit',
33519
- isVersion2Available: isVersion2Available() ? 1 : 0
31883
+ text: 'startInit'
33520
31884
  });
33521
31885
  _this.Monitor.localInfoLog({
33522
31886
  Serial: matchEzopenUrl(_this.url).deviceSerial,
@@ -33556,10 +31920,6 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
33556
31920
  }
33557
31921
  })["catch"](function (err) {
33558
31922
  console.log("err", err);
33559
- if (_this.Theme) {
33560
- _this.Theme.setDisabled(true);
33561
- }
33562
- _this.pluginStatus.loadingClear();
33563
31923
  _this.pluginStatus.loadingSetText({
33564
31924
  text: err && err.msg || "获取播放地址失败",
33565
31925
  color: 'red'
@@ -33570,8 +31930,7 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
33570
31930
  _this.Monitor.dclog({
33571
31931
  url: _this.url,
33572
31932
  action: 0,
33573
- text: 'startInit',
33574
- isVersion2Available: isVersion2Available() ? 1 : 0
31933
+ text: 'startInit'
33575
31934
  });
33576
31935
  _this.Monitor.localInfoLog({
33577
31936
  Serial: matchEzopenUrl(_this.url).deviceSerial,
@@ -33585,14 +31944,11 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
33585
31944
  if (document.getElementById("".concat(params.id, "canvas_draw0"))) {
33586
31945
  document.getElementById("".concat(params.id, "canvas_draw0")).style.border = "none";
33587
31946
  }
33588
- //xuehb 初始化成功 2
33589
- _this.initSuccessTime = new Date().getTime();
33590
31947
  _this.Monitor.dclog({
33591
31948
  url: _this.url,
33592
31949
  action: 201,
33593
- d: _this.initSuccessTime - _this.initTime,
33594
- text: 'initSuccess',
33595
- isVersion2Available: isVersion2Available() ? 1 : 0
31950
+ d: new Date().getTime() - _this.initTime,
31951
+ text: 'initSuccess'
33596
31952
  });
33597
31953
  });
33598
31954
  }
@@ -33621,7 +31977,7 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
33621
31977
  doInit();
33622
31978
  }
33623
31979
  } else {
33624
- return new EZUIKitV3$1.EZUIKitPlayer(params);
31980
+ return new EZUIKitV3.EZUIKitPlayer(params);
33625
31981
  }
33626
31982
  // this.stop = debouncePromise(()=>this._stop(),0,true);
33627
31983
  this.play = dist(function (options) {
@@ -33630,9 +31986,8 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
33630
31986
  this.resume = dist(function (time) {
33631
31987
  return _this._resume(time);
33632
31988
  }, 500, true);
33633
- //xuehb
33634
- this.changePlayUrl = dist(function (options, callback) {
33635
- return _this._changePlayUrl(options, callback);
31989
+ this.changePlayUrl = dist(function (options) {
31990
+ return _this._changePlayUrl(options);
33636
31991
  }, 500);
33637
31992
  // 监听到页面退出
33638
31993
  // 研究院反馈,播放过程中退出页面需要执行停止视频,否则可能导致浏览器崩溃
@@ -33641,7 +31996,7 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
33641
31996
  _this.stop();
33642
31997
  });
33643
31998
  }
33644
- _createClass$1(EZUIKitPlayer, [{
31999
+ _createClass(EZUIKitPlayer, [{
33645
32000
  key: "initEZUIKitPlayer",
33646
32001
  value: function initEZUIKitPlayer(params) {
33647
32002
  var _this2 = this;
@@ -33714,14 +32069,7 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
33714
32069
  console.log(iWndIndex, iErrorCode, oError);
33715
32070
  if (iErrorCode === 1003) {
33716
32071
  console.log("断流");
33717
- _this2.Theme.setDecoderState({
33718
- play: false
33719
- });
33720
- _this2.pluginStatus.setPlayStatus({
33721
- play: false
33722
- });
33723
32072
  if (!jSPlugin.bPlay) {
33724
- _this2.pluginStatus.loadingClear();
33725
32073
  _this2.pluginStatus.loadingSetText({
33726
32074
  text: "连接断开,请重试",
33727
32075
  color: 'red'
@@ -33735,95 +32083,7 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
33735
32083
  type: "handleError"
33736
32084
  });
33737
32085
  }
33738
- } else {
33739
- //推流异常时展示响应提示
33740
- if (oError.errorCode != 1) {
33741
- var errorInfo = _this2.errorHander.matchErrorInfo(oError.errorCode);
33742
- var msg = '连接断开,请重试';
33743
- if (errorInfo && errorInfo.msg) {
33744
- msg = errorInfo.msg;
33745
- } else if (errorInfo && errorInfo.description) {
33746
- msg = errorInfo.description;
33747
- }
33748
- _this2.Theme.setDecoderState({
33749
- play: false
33750
- });
33751
- _this2.pluginStatus.setPlayStatus({
33752
- play: false
33753
- });
33754
- _this2.pluginStatus.loadingClear();
33755
- _this2.pluginStatus.loadingSetText({
33756
- text: msg,
33757
- color: 'red'
33758
- });
33759
- } else {
33760
- _this2.pluginStatus.loadingClear();
33761
- if (_this2.Theme) {
33762
- _this2.Theme.setDisabled(false);
33763
- }
33764
- }
33765
32086
  }
33766
- },
33767
- //xuehb 开启取流 4
33768
- openStreamCallback: function openStreamCallback() {
33769
- //开启取流回调 4
33770
- console.log("开启取流");
33771
- _this2.openStreamTime = new Date().getTime();
33772
- _this2.Monitor.dclog({
33773
- url: _this2.url,
33774
- action: 224,
33775
- d: _this2.openStreamTime - _this2.gotWsUrlTime,
33776
- text: 'openStream',
33777
- isVersion2Available: isVersion2Available() ? 1 : 0
33778
- });
33779
- },
33780
- //xuehb 完成取流返回流头 5
33781
- getStreamHeaderCallback: function getStreamHeaderCallback() {
33782
- console.log("完成取流返回流头");
33783
- _this2.getStreamHeaderTime = new Date().getTime();
33784
- _this2.Monitor.dclog({
33785
- url: _this2.url,
33786
- action: 225,
33787
- d: _this2.getStreamHeaderTime - _this2.openStreamTime,
33788
- text: 'getStreamHeader',
33789
- isVersion2Available: isVersion2Available() ? 1 : 0
33790
- });
33791
- },
33792
- //xuehb 返回视频流 6
33793
- getVideoStreamCallback: function getVideoStreamCallback() {
33794
- console.log("返回视频流(首次)");
33795
- _this2.getVideoStreamTime = new Date().getTime();
33796
- _this2.Monitor.dclog({
33797
- url: _this2.url,
33798
- action: 226,
33799
- d: _this2.getVideoStreamTime - _this2.getStreamHeaderTime,
33800
- text: 'getVideoStream',
33801
- isVersion2Available: isVersion2Available() ? 1 : 0
33802
- });
33803
- },
33804
- //xuehb 出现首帧画面(播放成功) 7
33805
- appearFirstFrameCallback: function appearFirstFrameCallback() {
33806
- console.log("出现首帧画面(播放成功)");
33807
- _this2.appearFirstFrameTime = new Date().getTime();
33808
- _this2.Monitor.dclog({
33809
- url: _this2.url,
33810
- action: 227,
33811
- d: _this2.appearFirstFrameTime - _this2.getStreamHeaderTime,
33812
- text: 'appearFirstFrame',
33813
- isVersion2Available: isVersion2Available() ? 1 : 0
33814
- });
33815
- },
33816
- //xuehb 平均成功取流的出流耗时 8
33817
- averageStreamSuccessCallback: function averageStreamSuccessCallback() {
33818
- console.log("平均成功取流的出流耗时");
33819
- _this2.averageStreamSuccessTime = _this2.initSuccessTime - _this2.initTime + (_this2.gotWsUrlTime - _this2.startGetWsUrlTime) + (_this2.appearFirstFrameTime - _this2.openStreamTime);
33820
- _this2.Monitor.dclog({
33821
- url: _this2.url,
33822
- action: 228,
33823
- d: _this2.averageStreamSuccessTime,
33824
- text: 'averageStreamSuccess',
33825
- isVersion2Available: isVersion2Available() ? 1 : 0
33826
- });
33827
32087
  }
33828
32088
  };
33829
32089
  _this2.env = {
@@ -33861,10 +32121,6 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
33861
32121
  msg: "初始化成功"
33862
32122
  }
33863
32123
  });
33864
- if (params.url.indexOf('rec') != -1) {
33865
- //传入rec播放地址时将主题切换至回放
33866
- _this2.Theme.changeTheme(_this2.isMobile ? "mobileRec" : "pcRec");
33867
- }
33868
32124
  }
33869
32125
  }, 50);
33870
32126
  } else {
@@ -33889,69 +32145,9 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
33889
32145
  text: '初始化播放器完成'
33890
32146
  });
33891
32147
  jSPlugin.EventCallback = {
33892
- //xuehb 开启取流 4
33893
- openStreamCallback: function openStreamCallback() {
33894
- console.log("开启取流---v1");
33895
- _this2.openStreamTime = new Date().getTime();
33896
- _this2.Monitor.dclog({
33897
- url: _this2.url,
33898
- action: 224,
33899
- d: _this2.openStreamTime - _this2.gotWsUrlTime,
33900
- text: 'openStream',
33901
- isVersion2Available: isVersion2Available() ? 1 : 0
33902
- });
33903
- },
33904
- //xuehb 完成取流返回流头 5
33905
- getStreamHeaderCallback: function getStreamHeaderCallback() {
33906
- console.log("完成取流返回流头");
33907
- _this2.getStreamHeaderTime = new Date().getTime();
33908
- _this2.Monitor.dclog({
33909
- url: _this2.url,
33910
- action: 225,
33911
- d: _this2.getStreamHeaderTime - _this2.openStreamTime,
33912
- text: 'getStreamHeader',
33913
- isVersion2Available: isVersion2Available() ? 1 : 0
33914
- });
33915
- },
33916
- //xuehb 返回视频流 6
33917
- getVideoStreamCallback: function getVideoStreamCallback() {
33918
- console.log("返回视频流(首次)");
33919
- _this2.getVideoStreamTime = new Date().getTime();
33920
- _this2.Monitor.dclog({
33921
- url: _this2.url,
33922
- action: 226,
33923
- d: _this2.getVideoStreamTime - _this2.getStreamHeaderTime,
33924
- text: 'getVideoStream',
33925
- isVersion2Available: isVersion2Available() ? 1 : 0
33926
- });
33927
- },
33928
- //xuehb 出现首帧画面(播放成功) 7
33929
- appearFirstFrameCallback: function appearFirstFrameCallback() {
33930
- console.log("出现首帧画面(播放成功)");
33931
- _this2.appearFirstFrameTime = new Date().getTime();
33932
- _this2.Monitor.dclog({
33933
- url: _this2.url,
33934
- action: 227,
33935
- d: _this2.appearFirstFrameTime - _this2.getStreamHeaderTime,
33936
- text: 'appearFirstFrame',
33937
- isVersion2Available: isVersion2Available() ? 1 : 0
33938
- });
33939
- },
33940
- //xuehb 平均成功取流的出流耗时 8
33941
- averageStreamSuccessCallback: function averageStreamSuccessCallback() {
33942
- console.log("平均成功取流的出流耗时");
33943
- _this2.averageStreamSuccessTime = _this2.initSuccessTime - _this2.initTime + (_this2.gotWsUrlTime - _this2.startGetWsUrlTime) + (_this2.appearFirstFrameTime - _this2.openStreamTime);
33944
- _this2.Monitor.dclog({
33945
- url: _this2.url,
33946
- action: 228,
33947
- d: _this2.averageStreamSuccessTime,
33948
- text: 'averageStreamSuccess',
33949
- isVersion2Available: isVersion2Available() ? 1 : 0
33950
- });
33951
- },
33952
32148
  loadEventHandler: function loadEventHandler() {},
33953
- zoomEventResponse: function zoomEventResponse( /*iMode, aPoint*/
33954
- ) {//电子放大回调
32149
+ zoomEventResponse: function /*iMode, aPoint*/
32150
+ zoomEventResponse() {//电子放大回调
33955
32151
  },
33956
32152
  windowEventSelect: function windowEventSelect(iWndIndex) {//插件选中窗口回调
33957
32153
  },
@@ -33960,14 +32156,7 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
33960
32156
  console.log(iWndIndex, iErrorCode, oError);
33961
32157
  if (iErrorCode === 1003) {
33962
32158
  console.log("断流");
33963
- _this2.Theme.setDecoderState({
33964
- play: false
33965
- });
33966
- _this2.pluginStatus.setPlayStatus({
33967
- play: false
33968
- });
33969
32159
  if (!jSPlugin.bPlay) {
33970
- _this2.pluginStatus.loadingClear();
33971
32160
  _this2.pluginStatus.loadingSetText({
33972
32161
  text: "连接断开,请重试",
33973
32162
  color: 'red'
@@ -33981,33 +32170,6 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
33981
32170
  type: "handleError"
33982
32171
  });
33983
32172
  }
33984
- } else {
33985
- //推流异常时展示响应提示
33986
- if (oError.errorCode != 1) {
33987
- var errorInfo = _this2.errorHander.matchErrorInfo(oError.errorCode);
33988
- var msg = '连接断开,请重试';
33989
- if (errorInfo && errorInfo.msg) {
33990
- msg = errorInfo.msg;
33991
- } else if (errorInfo && errorInfo.description) {
33992
- msg = errorInfo.description;
33993
- }
33994
- _this2.Theme.setDecoderState({
33995
- play: false
33996
- });
33997
- _this2.pluginStatus.setPlayStatus({
33998
- play: false
33999
- });
34000
- _this2.pluginStatus.loadingClear();
34001
- _this2.pluginStatus.loadingSetText({
34002
- text: msg,
34003
- color: 'red'
34004
- });
34005
- } else {
34006
- _this2.pluginStatus.loadingClear();
34007
- if (_this2.Theme) {
34008
- _this2.Theme.setDisabled(false);
34009
- }
34010
- }
34011
32173
  }
34012
32174
  },
34013
32175
  windowEventOver: function windowEventOver(iWndIndex) {},
@@ -34017,9 +32179,8 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
34017
32179
  firstFrameDisplay: function firstFrameDisplay(iWndIndex, iWidth, iHeight) {
34018
32180
  console.log(iWidth, iHeight);
34019
32181
  jSPlugin.JS_SetCanFullScreen(false);
34020
- // this.pluginStatus.loadingClear();
32182
+ _this2.pluginStatus.loadingClear();
34021
32183
  },
34022
-
34023
32184
  performanceLack: function performanceLack() {},
34024
32185
  mouseEvent: function mouseEvent(iMouseEventType, iMouseX, iMouseY) {}
34025
32186
  };
@@ -34055,10 +32216,6 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
34055
32216
  msg: "初始化成功"
34056
32217
  }
34057
32218
  });
34058
- if (params.url.indexOf('rec') != -1) {
34059
- //传入rec播放地址时将主题切换至回放
34060
- _this2.Theme.changeTheme(_this2.isMobile ? "mobileRec" : "pcRec");
34061
- }
34062
32219
  }
34063
32220
  };
34064
32221
  var initDecoderPromise = new Promise(initDecoder);
@@ -34069,15 +32226,6 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
34069
32226
  value: function _getRealUrlPromise(accessToken, url) {
34070
32227
  var _this3 = this;
34071
32228
  console.log("\u83B7\u53D6\u64AD\u653E\u5730\u5740 url => ".concat(url, " ").concat(this.accessToken));
34072
- console.log('开始获取wsurl');
34073
- //xuehb 开始获取wsurl
34074
- this.startGetWsUrlTime = new Date().getTime();
34075
- this.Monitor.dclog({
34076
- url: this.url,
34077
- action: 222,
34078
- text: 'startGetWsUrl',
34079
- isVersion2Available: isVersion2Available() ? 1 : 0
34080
- });
34081
32229
  var apiDomain = this.env.domain;
34082
32230
  if (this.env) {
34083
32231
  apiDomain = this.env.domain;
@@ -34087,9 +32235,9 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
34087
32235
  var apiUrl = apiDomain + "/api/lapp/live/url/ezopen";
34088
32236
  var data = new FormData();
34089
32237
  data.append("ezopen", url);
34090
- data.append("isFlv", false);
32238
+ data.append("isFlv", "false");
34091
32239
  data.append("userAgent", window.navigator.userAgent);
34092
- data.append("isHttp", false);
32240
+ data.append("isHttp", "false");
34093
32241
  data.append("accessToken", accessToken);
34094
32242
  fetch(apiUrl, {
34095
32243
  method: "POST",
@@ -34324,10 +32472,6 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
34324
32472
  resolve(realUrl);
34325
32473
  }
34326
32474
  } else {
34327
- if (_this3.Theme) {
34328
- _this3.Theme.setDisabled(true);
34329
- }
34330
- _this3.pluginStatus.loadingClear();
34331
32475
  _this3.pluginStatus.loadingSetText({
34332
32476
  text: data.msg,
34333
32477
  color: 'red'
@@ -34411,15 +32555,6 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
34411
32555
  if (this.env && this.env.wsUrl) {
34412
32556
  wsUrl = this.env.wsUrl;
34413
32557
  }
34414
- //xuehb todo 完成获取URL 3
34415
- this.gotWsUrlTime = new Date().getTime();
34416
- this.Monitor.dclog({
34417
- url: this.url,
34418
- action: 223,
34419
- d: this.gotWsUrlTime - this.startGetWsUrlTime,
34420
- text: 'getWsUrlSuccess',
34421
- isVersion2Available: isVersion2Available() ? 1 : 0
34422
- });
34423
32558
  var wsParams = {
34424
32559
  playURL: getPlayParams(data).websocketStreamingParam
34425
32560
  };
@@ -34463,7 +32598,7 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
34463
32598
  type: "handleSuccess"
34464
32599
  });
34465
32600
  }
34466
- successCallback(wsParams);
32601
+ successCallback();
34467
32602
  _this4.Monitor.dclog({
34468
32603
  url: _this4.url,
34469
32604
  action: 211,
@@ -34491,21 +32626,11 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
34491
32626
  if (_this4.jSPlugin.bPlay) {
34492
32627
  return false;
34493
32628
  }
34494
- if (err && err.errorCode) {
34495
- var errorInfo = _this4.errorHander.matchErrorInfo(err.errorCode);
34496
- if (_this4.Theme) {
34497
- _this4.Theme.setDisabled(true);
34498
- }
34499
- if (errorInfo && errorInfo.msg) {
34500
- msg = errorInfo.msg;
34501
- } else if (errorInfo && errorInfo.description) {
34502
- msg = errorInfo.description;
34503
- } else {
34504
- msg = '播放失败,请检查设备及客户端网络';
34505
- }
34506
- retcode = err.errorCode;
32629
+ if (err && err.oError && err.oError.errorCode) {
32630
+ var errorInfo = _this4.errorHander.matchErrorInfo(err.oError.errorCode);
32631
+ msg = errorInfo && errorInfo.description ? errorInfo.description : '播放失败,请检查设备及客户端网络';
32632
+ retcode = err.oError.errorCode;
34507
32633
  }
34508
- _this4.pluginStatus.loadingClear();
34509
32634
  _this4.pluginStatus.loadingSetText({
34510
32635
  text: msg,
34511
32636
  color: 'red'
@@ -34577,21 +32702,13 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
34577
32702
  _this5.jSPlugin.JS_Stop(0).then(function () {
34578
32703
  console.log("\u64AD\u653E\u524D stop \u6267\u884C\u6210\u529F this.url => ".concat(_this5.url, " ").concat(_this5.accessToken));
34579
32704
  _this5._getRealUrlPromise(_this5.accessToken, _this5.url).then(function (data) {
34580
- _this5._pluginPlay(data, function (params) {
34581
- // if (params.playURL.indexOf('playback') != -1) {
34582
- // //传入rec播放地址时将主题切换至回放
34583
- // this.Theme.changeTheme(this.isMobile ? "mobileRec" :"pcRec");
34584
- // }
34585
- resolve(true);
32705
+ _this5._pluginPlay(data, function () {
32706
+ return resolve(true);
34586
32707
  }, function () {
34587
32708
  return reject(false);
34588
32709
  });
34589
32710
  })["catch"](function (err) {
34590
32711
  var msg = err.msg ? err.msg : '播放失败,请检查设备及客户端网络';
34591
- if (_this5.Theme) {
34592
- _this5.Theme.setDisabled(true);
34593
- }
34594
- _this5.pluginStatus.loadingClear();
34595
32712
  _this5.pluginStatus.loadingSetText({
34596
32713
  text: msg,
34597
32714
  color: 'red'
@@ -34604,12 +32721,7 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
34604
32721
  type: "handleError"
34605
32722
  });
34606
32723
  }
34607
- reject({
34608
- retcode: err.oError ? err.oError.errorCode : -1,
34609
- msg: msg,
34610
- id: _this5.params.id,
34611
- type: "handleError"
34612
- });
32724
+ reject(false);
34613
32725
  });
34614
32726
  });
34615
32727
  });
@@ -34699,39 +32811,20 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
34699
32811
  // 回放倍速
34700
32812
  if (this.Theme && this.Theme.Rec) {
34701
32813
  this.Theme.changeRecSpeed(1);
34702
- this.Theme.nextRate = 1;
34703
- this.speed = 1;
34704
- this.Theme.setDecoderState({
34705
- speed: false
34706
- });
34707
32814
  }
34708
32815
  }
34709
-
34710
- //xuehb 添加回调
34711
32816
  }, {
34712
32817
  key: "_changePlayUrl",
34713
32818
  value: function _changePlayUrl(options) {
34714
32819
  var _this8 = this;
34715
- var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};
34716
32820
  console.log('_changePlayUrl');
34717
- console.log(options);
34718
32821
  this.reSetTheme();
34719
- this.getDeviceCapacity({
34720
- accessToken: options.accessToken,
34721
- deviceSerial: options.deviceSerial
34722
- });
34723
32822
  var initUrl = this.url;
34724
32823
  var url = matchUrl(initUrl, options);
34725
32824
  if (options.accessToken) {
34726
32825
  this.accessToken = options.accessToken;
34727
32826
  }
34728
32827
  this.url = url;
34729
- //xuehb
34730
- callback();
34731
- this.pluginStatus.loadingStart(this.id);
34732
- this.pluginStatus.loadingSetText({
34733
- text: '加载中,请稍后'
34734
- });
34735
32828
  var promise = new Promise(function (resolve, reject) {
34736
32829
  var changePlayUrlParams = {
34737
32830
  url: url
@@ -34750,36 +32843,9 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
34750
32843
  if (_this8.Theme && _this8.Theme.decoderState.state.expend) {
34751
32844
  _this8.Theme.expend();
34752
32845
  }
34753
- if (options.type) {
34754
- if (options.type == 'rec' || options.type == 'cloud.rec') {
34755
- _this8.Theme.changeTheme(_this8.isMobile ? "mobileRec" : "pcRec");
34756
- } else {
34757
- _this8.Theme.changeTheme(_this8.isMobile ? "mobileLive" : "pcLive");
34758
- }
34759
- } else {
34760
- if (_this8.url.indexOf('.rec') > -1) {
34761
- _this8.Theme.changeTheme(_this8.isMobile ? "mobileRec" : "pcRec");
34762
- } else {
34763
- _this8.Theme.changeTheme(_this8.isMobile ? "mobileLive" : "pcLive");
34764
- }
34765
- }
34766
- if (options && options.begin && options.deviceSerial) {
34767
- _this8.Theme.Rec.setDatepickerDate(options.begin);
34768
- }
34769
- _this8.Theme.setDisabled(false);
34770
32846
  resolve(url);
34771
32847
  })["catch"](function (err) {
34772
32848
  reject(url);
34773
- if (err && err.msg) {
34774
- if (_this8.Theme) {
34775
- _this8.Theme.setDisabled(true);
34776
- }
34777
- _this8.pluginStatus.loadingClear();
34778
- _this8.pluginStatus.loadingSetText({
34779
- text: err.msg,
34780
- color: 'red'
34781
- });
34782
- }
34783
32849
  });
34784
32850
  });
34785
32851
  /**
@@ -34796,7 +32862,6 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
34796
32862
  if (matchOptions.url) {
34797
32863
  return matchOptions.url;
34798
32864
  }
34799
- console.log('--------------matchInitUrl', matchInitUrl);
34800
32865
  var type = matchInitUrl.split("/")[4].split(".")[matchInitUrl.split("/")[4].split(".").length - 1].split("?")[0];
34801
32866
  if (type === 'rec' && matchInitUrl.indexOf(".cloud.rec") !== -1) {
34802
32867
  type = 'cloud.rec';
@@ -35332,7 +33397,7 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
35332
33397
  }
35333
33398
  }, {
35334
33399
  key: "getDeviceCapacity",
35335
- value: function getDeviceCapacity(params) {
33400
+ value: function getDeviceCapacity() {
35336
33401
  var _this17 = this;
35337
33402
  var apiDomain = this.env.domain;
35338
33403
  if (this.env) {
@@ -35344,7 +33409,7 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
35344
33409
  _this17.capacity = data.data;
35345
33410
  }
35346
33411
  };
35347
- var capacityParams = params || {
33412
+ var capacityParams = {
35348
33413
  accessToken: this.accessToken,
35349
33414
  deviceSerial: matchEzopenUrl(this.url).deviceSerial
35350
33415
  };
@@ -35361,13 +33426,11 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
35361
33426
  value: function pause() {
35362
33427
  var _this18 = this;
35363
33428
  // return this.jSPlugin.JS_Pause(0);
35364
- // this.reSetTheme();
33429
+ this.reSetTheme();
35365
33430
  return new Promise(function (resolve, reject) {
35366
33431
  // 兼容单线程未关闭声音无法再次开启声音问题
35367
33432
  _this18.jSPlugin.JS_CloseSound(0);
35368
- _this18.jSPlugin.JS_Pause(0, function (data) {
35369
- _this18.setPoster(data.base64);
35370
- }).then(function (data) {
33433
+ _this18.jSPlugin.JS_Pause(0).then(function (data) {
35371
33434
  // 暂停成功
35372
33435
  if (_this18.Theme) {
35373
33436
  _this18.Theme.setDecoderState({
@@ -35386,23 +33449,20 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
35386
33449
  key: "_resume",
35387
33450
  value: function _resume(time) {
35388
33451
  var _this19 = this;
35389
- return new Promise(function (resolve, reject) {
33452
+ return new Promise(function (resolve) {
35390
33453
  _this19.pluginStatus.setPlayStatus({
35391
33454
  play: false,
35392
33455
  loading: true
35393
33456
  });
35394
33457
  _this19.jSPlugin.JS_Resume(time).then(function (data) {
35395
- setTimeout(function () {
35396
- // 暂停恢复后,保持倍速
35397
- if (_this19.url.indexOf(".rec") !== -1 && _this19.speed != 1) {
35398
- _this19.jSPlugin.JS_Speed(_this19.speed);
35399
- }
35400
- }, 500);
33458
+ // 暂停恢复后,保持倍速
33459
+ if (_this19.url.indexOf(".rec") !== -1 && _this19.Theme && _this19.Theme.nextRate !== 1) {
33460
+ _this19.jSPlugin.JS_Speed(_this19.Theme.nextRate);
33461
+ }
35401
33462
  // 主题播放状态及声音状态
35402
33463
  if (_this19.Theme) {
35403
33464
  _this19.Theme.setDecoderState({
35404
- play: true,
35405
- speed: _this19.speed
33465
+ play: true
35406
33466
  });
35407
33467
  var isOpenSound = _this19.Theme.decoderState.state.sound;
35408
33468
  if (isOpenSound) {
@@ -35414,7 +33474,6 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
35414
33474
  resolve(data);
35415
33475
  })["catch"](function (err) {
35416
33476
  console.log("resume err", err);
35417
- reject(err);
35418
33477
  });
35419
33478
  });
35420
33479
  // return this.jSPlugin.JS_Resume(time);
@@ -35424,7 +33483,6 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
35424
33483
  }();
35425
33484
 
35426
33485
  var oWebControl = null;
35427
- // var accessToken = '';
35428
33486
 
35429
33487
  /**
35430
33488
  * video 初始化及配置
@@ -35541,10 +33599,12 @@ window.onpagehide = function () {
35541
33599
  console.error(error);
35542
33600
  }
35543
33601
  };
33602
+ var limitStart = parseInt(new Date('2021-07-29T16:01:00').getTime() / 1000).toString();
33603
+ var limitEnd = parseInt(new Date('2021-07-29T17:01:30').getTime() / 1000).toString();
35544
33604
  var EZUIKitHD = /*#__PURE__*/function () {
35545
33605
  function EZUIKitHD(params) {
35546
33606
  var _this = this;
35547
- _classCallCheck$1(this, EZUIKitHD);
33607
+ _classCallCheck(this, EZUIKitHD);
35548
33608
  _defineProperty(this, "changeModel", function (num, playParams) {
35549
33609
  var self = _this;
35550
33610
  _this.switchVideo = parseInt(num);
@@ -35608,7 +33668,7 @@ var EZUIKitHD = /*#__PURE__*/function () {
35608
33668
  var argumentsPram = (_argumentsPram = {
35609
33669
  layout: +self.layout,
35610
33670
  userName: "",
35611
- waterMark: ""
33671
+ waterMark: "test@qq.com"
35612
33672
  }, _defineProperty(_argumentsPram, "waterMark", "1"), _defineProperty(_argumentsPram, "iWndType", 0), _defineProperty(_argumentsPram, "intelligenceEnable", 1), _defineProperty(_argumentsPram, "isRecord", 1), _defineProperty(_argumentsPram, "isSetPos", 1), _defineProperty(_argumentsPram, "motionDetectEnable", 0), _defineProperty(_argumentsPram, "playBackAlarmOverlyingEnable", 0), _defineProperty(_argumentsPram, "response", {
35613
33673
  code: 0,
35614
33674
  message: null,
@@ -35620,7 +33680,7 @@ var EZUIKitHD = /*#__PURE__*/function () {
35620
33680
  showMainTool: 1,
35621
33681
  showSubTool: 1,
35622
33682
  waterMark: "1",
35623
- userName: "openteam",
33683
+ userName: "test@qq.com",
35624
33684
  platformId: initParams.platformId
35625
33685
  }
35626
33686
  }), _argumentsPram);
@@ -35961,7 +34021,7 @@ var EZUIKitHD = /*#__PURE__*/function () {
35961
34021
  * 切换模式
35962
34022
  * @param {*} num 0: 预览 1:回放
35963
34023
  */
35964
- _createClass$1(EZUIKitHD, [{
34024
+ _createClass(EZUIKitHD, [{
35965
34025
  key: "alarmMsg",
35966
34026
  value: function alarmMsg() {
35967
34027
  var res = {