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
|
@@ -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
|
|
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:
|
|
10121
|
+
videoConfig: videoConfigdefault
|
|
10116
10122
|
});
|
|
10117
10123
|
return h265Play;
|
|
10118
10124
|
};
|
|
@@ -10146,7 +10152,8 @@ var common_request_wsClass = /*#__PURE__*/function () {
|
|
|
10146
10152
|
var _onOpen = _ref2.onOpen,
|
|
10147
10153
|
_onClose = _ref2.onClose,
|
|
10148
10154
|
_onMessage = _ref2.onMessage,
|
|
10149
|
-
_onError = _ref2.onError
|
|
10155
|
+
_onError = _ref2.onError,
|
|
10156
|
+
initAction = _ref2.initAction;
|
|
10150
10157
|
|
|
10151
10158
|
Object(classCallCheck["a" /* default */])(this, wsClass);
|
|
10152
10159
|
|
|
@@ -10181,7 +10188,9 @@ var common_request_wsClass = /*#__PURE__*/function () {
|
|
|
10181
10188
|
onMessage: function onMessage(e) {
|
|
10182
10189
|
if (e.data === 'Back_Login') {
|
|
10183
10190
|
// 设置坐席
|
|
10184
|
-
_this.config.AgentGroupName && _this.send("SetGroupRole", _this.config.AgentGroupName);
|
|
10191
|
+
_this.config.AgentGroupName && _this.send("SetGroupRole", _this.config.AgentGroupName); // 初始化操作
|
|
10192
|
+
|
|
10193
|
+
initAction && initAction();
|
|
10185
10194
|
return;
|
|
10186
10195
|
}
|
|
10187
10196
|
|
|
@@ -10206,7 +10215,7 @@ var common_request_wsClass = /*#__PURE__*/function () {
|
|
|
10206
10215
|
value: function getPlayer(rtcServe, doceProUrl, videoConfig) {
|
|
10207
10216
|
if (_classPrivateFieldGet(this, _player)) return _classPrivateFieldGet(this, _player);
|
|
10208
10217
|
|
|
10209
|
-
_classPrivateFieldSet(this, _player,
|
|
10218
|
+
_classPrivateFieldSet(this, _player, common_request_getH265PlayerObj(rtcServe, doceProUrl, videoConfig));
|
|
10210
10219
|
|
|
10211
10220
|
return _classPrivateFieldGet(this, _player);
|
|
10212
10221
|
}
|
|
@@ -10248,13 +10257,15 @@ var useKUcservice = function useKUcservice(options, _ref3) {
|
|
|
10248
10257
|
var onOpen = _ref3.onOpen,
|
|
10249
10258
|
onClose = _ref3.onClose,
|
|
10250
10259
|
onMessage = _ref3.onMessage,
|
|
10251
|
-
onError = _ref3.onError
|
|
10260
|
+
onError = _ref3.onError,
|
|
10261
|
+
initAction = _ref3.initAction;
|
|
10252
10262
|
if (!window.WebSocket) return console.error('您的浏览器不支持WebSocket, 请更换浏览器!');
|
|
10253
10263
|
return new common_request_wsClass(options, {
|
|
10254
10264
|
onOpen: onOpen,
|
|
10255
10265
|
onClose: onClose,
|
|
10256
10266
|
onMessage: onMessage,
|
|
10257
|
-
onError: onError
|
|
10267
|
+
onError: onError,
|
|
10268
|
+
initAction: initAction
|
|
10258
10269
|
});
|
|
10259
10270
|
};
|
|
10260
10271
|
// CONCATENATED MODULE: ./index.js
|
|
Binary file
|