kucservice 1.2.3 → 1.2.5
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.
- package/dist/kucservice.common.js +25 -14
- package/dist/kucservice.common.js.gz +0 -0
- package/dist/kucservice.common.js.map +1 -1
- package/dist/kucservice.umd.js +25 -14
- package/dist/kucservice.umd.js.gz +0 -0
- package/dist/kucservice.umd.js.map +1 -1
- package/dist/kucservice.umd.min.js +1 -1
- package/dist/kucservice.umd.min.js.gz +0 -0
- package/dist/kucservice.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/kucservice.umd.js
CHANGED
|
@@ -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
|
|
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
10129
|
decUrl: doceProUrl || './decoder/decoder-pro.js',
|
|
10124
|
-
videoConfig:
|
|
10130
|
+
videoConfig: videoConfigdefault
|
|
10125
10131
|
});
|
|
10126
10132
|
return h265Play;
|
|
10127
10133
|
};
|
|
@@ -10155,7 +10161,8 @@ var common_request_wsClass = /*#__PURE__*/function () {
|
|
|
10155
10161
|
var _onOpen = _ref2.onOpen,
|
|
10156
10162
|
_onClose = _ref2.onClose,
|
|
10157
10163
|
_onMessage = _ref2.onMessage,
|
|
10158
|
-
_onError = _ref2.onError
|
|
10164
|
+
_onError = _ref2.onError,
|
|
10165
|
+
initAction = _ref2.initAction;
|
|
10159
10166
|
|
|
10160
10167
|
Object(classCallCheck["a" /* default */])(this, wsClass);
|
|
10161
10168
|
|
|
@@ -10190,7 +10197,9 @@ var common_request_wsClass = /*#__PURE__*/function () {
|
|
|
10190
10197
|
onMessage: function onMessage(e) {
|
|
10191
10198
|
if (e.data === 'Back_Login') {
|
|
10192
10199
|
// 设置坐席
|
|
10193
|
-
_this.config.AgentGroupName && _this.send("SetGroupRole", _this.config.AgentGroupName);
|
|
10200
|
+
_this.config.AgentGroupName && _this.send("SetGroupRole", _this.config.AgentGroupName); // 初始化操作
|
|
10201
|
+
|
|
10202
|
+
initAction && initAction();
|
|
10194
10203
|
return;
|
|
10195
10204
|
}
|
|
10196
10205
|
|
|
@@ -10215,7 +10224,7 @@ var common_request_wsClass = /*#__PURE__*/function () {
|
|
|
10215
10224
|
value: function getPlayer(rtcServe, doceProUrl, videoConfig) {
|
|
10216
10225
|
if (_classPrivateFieldGet(this, _player)) return _classPrivateFieldGet(this, _player);
|
|
10217
10226
|
|
|
10218
|
-
_classPrivateFieldSet(this, _player,
|
|
10227
|
+
_classPrivateFieldSet(this, _player, common_request_getH265PlayerObj(rtcServe, doceProUrl, videoConfig));
|
|
10219
10228
|
|
|
10220
10229
|
return _classPrivateFieldGet(this, _player);
|
|
10221
10230
|
}
|
|
@@ -10257,13 +10266,15 @@ var useKUcservice = function useKUcservice(options, _ref3) {
|
|
|
10257
10266
|
var onOpen = _ref3.onOpen,
|
|
10258
10267
|
onClose = _ref3.onClose,
|
|
10259
10268
|
onMessage = _ref3.onMessage,
|
|
10260
|
-
onError = _ref3.onError
|
|
10269
|
+
onError = _ref3.onError,
|
|
10270
|
+
initAction = _ref3.initAction;
|
|
10261
10271
|
if (!window.WebSocket) return console.error('您的浏览器不支持WebSocket, 请更换浏览器!');
|
|
10262
10272
|
return new common_request_wsClass(options, {
|
|
10263
10273
|
onOpen: onOpen,
|
|
10264
10274
|
onClose: onClose,
|
|
10265
10275
|
onMessage: onMessage,
|
|
10266
|
-
onError: onError
|
|
10276
|
+
onError: onError,
|
|
10277
|
+
initAction: initAction
|
|
10267
10278
|
});
|
|
10268
10279
|
};
|
|
10269
10280
|
// CONCATENATED MODULE: ./index.js
|
|
Binary file
|