kucservice 1.2.4 → 1.2.6

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.
@@ -8885,6 +8885,9 @@ var es_object_assign = __webpack_require__("cca6");
8885
8885
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
8886
8886
  var es_json_stringify = __webpack_require__("e9c4");
8887
8887
 
8888
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.index-of.js
8889
+ var es_array_index_of = __webpack_require__("c975");
8890
+
8888
8891
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.for-each.js
8889
8892
  var es_array_for_each = __webpack_require__("4160");
8890
8893
 
@@ -8960,9 +8963,6 @@ var es_number_constructor = __webpack_require__("a9e3");
8960
8963
  // EXTERNAL MODULE: ./node_modules/core-js/modules/web.timers.js
8961
8964
  var web_timers = __webpack_require__("4795");
8962
8965
 
8963
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.index-of.js
8964
- var es_array_index_of = __webpack_require__("c975");
8965
-
8966
8966
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.test.js
8967
8967
  var es_regexp_test = __webpack_require__("00b4");
8968
8968
 
@@ -10049,6 +10049,7 @@ var phoneClient_j = /*#__PURE__*/function () {
10049
10049
 
10050
10050
 
10051
10051
 
10052
+
10052
10053
 
10053
10054
  /**
10054
10055
  * 接口请求通用方法
@@ -10096,7 +10097,7 @@ var initWsBaseTheme = function initWsBaseTheme(socket, _ref) {
10096
10097
  });
10097
10098
  };
10098
10099
 
10099
- var common_request_getH265PlayerObj = function getH265PlayerObj(rtcServe, doceProUrl, videoConfig) {
10100
+ var common_request_getH265PlayerObj = function getH265PlayerObj(rtcServe, doceProUrl, videoConfig, callBack) {
10100
10101
  var videoConfigdefault = {
10101
10102
  showBand: true,
10102
10103
  //网速显示
@@ -10116,6 +10117,7 @@ var common_request_getH265PlayerObj = function getH265PlayerObj(rtcServe, docePr
10116
10117
  }
10117
10118
 
10118
10119
  var h265Play = new h265({
10120
+ callBack: callBack,
10119
10121
  rtcServe: rtcServe,
10120
10122
  decUrl: doceProUrl || './decoder/decoder-pro.js',
10121
10123
  videoConfig: videoConfigdefault
@@ -10152,7 +10154,8 @@ var common_request_wsClass = /*#__PURE__*/function () {
10152
10154
  var _onOpen = _ref2.onOpen,
10153
10155
  _onClose = _ref2.onClose,
10154
10156
  _onMessage = _ref2.onMessage,
10155
- _onError = _ref2.onError;
10157
+ _onError = _ref2.onError,
10158
+ initAction = _ref2.initAction;
10156
10159
 
10157
10160
  Object(classCallCheck["a" /* default */])(this, wsClass);
10158
10161
 
@@ -10185,9 +10188,11 @@ var common_request_wsClass = /*#__PURE__*/function () {
10185
10188
  _onClose && _onClose(e);
10186
10189
  },
10187
10190
  onMessage: function onMessage(e) {
10188
- if (e.data === 'Back_Login') {
10191
+ if (e.data.indexOf('Back_Login(') === 0) {
10189
10192
  // 设置坐席
10190
- _this.config.AgentGroupName && _this.send("SetGroupRole", _this.config.AgentGroupName);
10193
+ _this.config.AgentGroupName && _this.send("SetGroupRole", _this.config.AgentGroupName); // 初始化操作
10194
+
10195
+ initAction && initAction();
10191
10196
  return;
10192
10197
  }
10193
10198
 
@@ -10209,10 +10214,10 @@ var common_request_wsClass = /*#__PURE__*/function () {
10209
10214
  }
10210
10215
  }, {
10211
10216
  key: "getPlayer",
10212
- value: function getPlayer(rtcServe, doceProUrl, videoConfig) {
10217
+ value: function getPlayer(rtcServe, doceProUrl, videoConfig, callBack) {
10213
10218
  if (_classPrivateFieldGet(this, _player)) return _classPrivateFieldGet(this, _player);
10214
10219
 
10215
- _classPrivateFieldSet(this, _player, common_request_getH265PlayerObj(rtcServe, doceProUrl, videoConfig));
10220
+ _classPrivateFieldSet(this, _player, common_request_getH265PlayerObj(rtcServe, doceProUrl, videoConfig, callBack));
10216
10221
 
10217
10222
  return _classPrivateFieldGet(this, _player);
10218
10223
  }
@@ -10254,13 +10259,15 @@ var useKUcservice = function useKUcservice(options, _ref3) {
10254
10259
  var onOpen = _ref3.onOpen,
10255
10260
  onClose = _ref3.onClose,
10256
10261
  onMessage = _ref3.onMessage,
10257
- onError = _ref3.onError;
10262
+ onError = _ref3.onError,
10263
+ initAction = _ref3.initAction;
10258
10264
  if (!window.WebSocket) return console.error('您的浏览器不支持WebSocket, 请更换浏览器!');
10259
10265
  return new common_request_wsClass(options, {
10260
10266
  onOpen: onOpen,
10261
10267
  onClose: onClose,
10262
10268
  onMessage: onMessage,
10263
- onError: onError
10269
+ onError: onError,
10270
+ initAction: initAction
10264
10271
  });
10265
10272
  };
10266
10273
  // CONCATENATED MODULE: ./index.js
Binary file