kucservice 1.2.3 → 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.
@@ -8873,6 +8873,12 @@ function _classPrivateFieldGet(receiver, privateMap) {
8873
8873
  var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get");
8874
8874
  return _classApplyDescriptorGet(receiver, descriptor);
8875
8875
  }
8876
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
8877
+ var esm_typeof = __webpack_require__("53ca");
8878
+
8879
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
8880
+ var es_object_to_string = __webpack_require__("d3b7");
8881
+
8876
8882
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
8877
8883
  var es_object_assign = __webpack_require__("cca6");
8878
8884
 
@@ -8882,9 +8888,6 @@ var es_json_stringify = __webpack_require__("e9c4");
8882
8888
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.for-each.js
8883
8889
  var es_array_for_each = __webpack_require__("4160");
8884
8890
 
8885
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
8886
- var es_object_to_string = __webpack_require__("d3b7");
8887
-
8888
8891
  // EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.for-each.js
8889
8892
  var web_dom_collections_for_each = __webpack_require__("159b");
8890
8893
 
@@ -8942,9 +8945,6 @@ console.log(modulesFiles);
8942
8945
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
8943
8946
  var asyncToGenerator = __webpack_require__("1da1");
8944
8947
 
8945
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
8946
- var esm_typeof = __webpack_require__("53ca");
8947
-
8948
8948
  // EXTERNAL MODULE: ./node_modules/regenerator-runtime/runtime.js
8949
8949
  var runtime = __webpack_require__("96cf");
8950
8950
 
@@ -10049,6 +10049,7 @@ var phoneClient_j = /*#__PURE__*/function () {
10049
10049
 
10050
10050
 
10051
10051
 
10052
+
10052
10053
  /**
10053
10054
  * 接口请求通用方法
10054
10055
  * @param {*} url
@@ -10095,7 +10096,7 @@ var initWsBaseTheme = function initWsBaseTheme(socket, _ref) {
10095
10096
  });
10096
10097
  };
10097
10098
 
10098
- var getH265PlayerObj = function getH265PlayerObj(rtcServe, doceProUrl, videoConfig) {
10099
+ var common_request_getH265PlayerObj = function getH265PlayerObj(rtcServe, doceProUrl, videoConfig) {
10099
10100
  var videoConfigdefault = {
10100
10101
  showBand: true,
10101
10102
  //网速显示
@@ -10108,11 +10109,16 @@ var getH265PlayerObj = function getH265PlayerObj(rtcServe, doceProUrl, videoConf
10108
10109
  //静音小喇叭
10109
10110
  useMSE: false //是否使用mse
10110
10111
 
10111
- };
10112
+ }; // 判断videoConfig是否为JSON对象
10113
+
10114
+ if (videoConfig && Object(esm_typeof["a" /* default */])(videoConfig) === 'object' && Object.prototype.toString.call(videoConfig) === '[object Object]') {
10115
+ videoConfigdefault = Object.assign(videoConfigdefault, videoConfig);
10116
+ }
10117
+
10112
10118
  var h265Play = new h265({
10113
10119
  rtcServe: rtcServe,
10114
10120
  decUrl: doceProUrl || './decoder/decoder-pro.js',
10115
- videoConfig: videoConfig || videoConfigdefault
10121
+ videoConfig: videoConfigdefault
10116
10122
  });
10117
10123
  return h265Play;
10118
10124
  };
@@ -10206,7 +10212,7 @@ var common_request_wsClass = /*#__PURE__*/function () {
10206
10212
  value: function getPlayer(rtcServe, doceProUrl, videoConfig) {
10207
10213
  if (_classPrivateFieldGet(this, _player)) return _classPrivateFieldGet(this, _player);
10208
10214
 
10209
- _classPrivateFieldSet(this, _player, getH265PlayerObj(rtcServe, doceProUrl, videoConfig));
10215
+ _classPrivateFieldSet(this, _player, common_request_getH265PlayerObj(rtcServe, doceProUrl, videoConfig));
10210
10216
 
10211
10217
  return _classPrivateFieldGet(this, _player);
10212
10218
  }
Binary file