kucservice 1.2.2 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8882,6 +8882,12 @@ function _classPrivateFieldGet(receiver, privateMap) {
8882
8882
  var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get");
8883
8883
  return _classApplyDescriptorGet(receiver, descriptor);
8884
8884
  }
8885
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
8886
+ var esm_typeof = __webpack_require__("53ca");
8887
+
8888
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
8889
+ var es_object_to_string = __webpack_require__("d3b7");
8890
+
8885
8891
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
8886
8892
  var es_object_assign = __webpack_require__("cca6");
8887
8893
 
@@ -8891,9 +8897,6 @@ var es_json_stringify = __webpack_require__("e9c4");
8891
8897
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.for-each.js
8892
8898
  var es_array_for_each = __webpack_require__("4160");
8893
8899
 
8894
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
8895
- var es_object_to_string = __webpack_require__("d3b7");
8896
-
8897
8900
  // EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.for-each.js
8898
8901
  var web_dom_collections_for_each = __webpack_require__("159b");
8899
8902
 
@@ -8951,9 +8954,6 @@ console.log(modulesFiles);
8951
8954
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
8952
8955
  var asyncToGenerator = __webpack_require__("1da1");
8953
8956
 
8954
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
8955
- var esm_typeof = __webpack_require__("53ca");
8956
-
8957
8957
  // EXTERNAL MODULE: ./node_modules/regenerator-runtime/runtime.js
8958
8958
  var runtime = __webpack_require__("96cf");
8959
8959
 
@@ -10058,6 +10058,7 @@ var phoneClient_j = /*#__PURE__*/function () {
10058
10058
 
10059
10059
 
10060
10060
 
10061
+
10061
10062
  /**
10062
10063
  * 接口请求通用方法
10063
10064
  * @param {*} url
@@ -10104,7 +10105,7 @@ var initWsBaseTheme = function initWsBaseTheme(socket, _ref) {
10104
10105
  });
10105
10106
  };
10106
10107
 
10107
- var getH265PlayerObj = function getH265PlayerObj(rtcServe, doceProUrl, videoConfig) {
10108
+ var common_request_getH265PlayerObj = function getH265PlayerObj(rtcServe, doceProUrl, videoConfig) {
10108
10109
  var videoConfigdefault = {
10109
10110
  showBand: true,
10110
10111
  //网速显示
@@ -10117,11 +10118,16 @@ var getH265PlayerObj = function getH265PlayerObj(rtcServe, doceProUrl, videoConf
10117
10118
  //静音小喇叭
10118
10119
  useMSE: false //是否使用mse
10119
10120
 
10120
- };
10121
+ }; // 判断videoConfig是否为JSON对象
10122
+
10123
+ if (videoConfig && Object(esm_typeof["a" /* default */])(videoConfig) === 'object' && Object.prototype.toString.call(videoConfig) === '[object Object]') {
10124
+ videoConfigdefault = Object.assign(videoConfigdefault, videoConfig);
10125
+ }
10126
+
10121
10127
  var h265Play = new h265({
10122
10128
  rtcServe: rtcServe,
10123
- decUrl: doceProUrl || '/decoder/decoder-pro.js',
10124
- videoConfig: videoConfig || videoConfigdefault
10129
+ decUrl: doceProUrl || './decoder/decoder-pro.js',
10130
+ videoConfig: videoConfigdefault
10125
10131
  });
10126
10132
  return h265Play;
10127
10133
  };
@@ -10215,7 +10221,7 @@ var common_request_wsClass = /*#__PURE__*/function () {
10215
10221
  value: function getPlayer(rtcServe, doceProUrl, videoConfig) {
10216
10222
  if (_classPrivateFieldGet(this, _player)) return _classPrivateFieldGet(this, _player);
10217
10223
 
10218
- _classPrivateFieldSet(this, _player, getH265PlayerObj(rtcServe, doceProUrl, videoConfig));
10224
+ _classPrivateFieldSet(this, _player, common_request_getH265PlayerObj(rtcServe, doceProUrl, videoConfig));
10219
10225
 
10220
10226
  return _classPrivateFieldGet(this, _player);
10221
10227
  }
Binary file