kucservice 1.4.6 → 1.4.7
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 +7 -3
- package/dist/kucservice.common.js.gz +0 -0
- package/dist/kucservice.common.js.map +1 -1
- package/dist/kucservice.umd.js +7 -3
- 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
|
@@ -11503,6 +11503,7 @@ var common_request_wsClass = /*#__PURE__*/function () {
|
|
|
11503
11503
|
value: null
|
|
11504
11504
|
});
|
|
11505
11505
|
|
|
11506
|
+
if (config !== null && config !== void 0 && config.onlyPlay) return;
|
|
11506
11507
|
this.config = config;
|
|
11507
11508
|
Object.assign(this.config, {
|
|
11508
11509
|
checkData: JSON.stringify(GetSendModel('keeplive', this.config))
|
|
@@ -11545,7 +11546,9 @@ var common_request_wsClass = /*#__PURE__*/function () {
|
|
|
11545
11546
|
Object(createClass["a" /* default */])(wsClass, [{
|
|
11546
11547
|
key: "send",
|
|
11547
11548
|
value: function send(action, params) {
|
|
11548
|
-
|
|
11549
|
+
var _this$socket;
|
|
11550
|
+
|
|
11551
|
+
(_this$socket = this.socket) === null || _this$socket === void 0 ? void 0 : _this$socket.send(JSON.stringify(GetSendModel(action, this.config, params)));
|
|
11549
11552
|
}
|
|
11550
11553
|
}, {
|
|
11551
11554
|
key: "getPlayer",
|
|
@@ -11572,7 +11575,8 @@ var common_request_wsClass = /*#__PURE__*/function () {
|
|
|
11572
11575
|
}, {
|
|
11573
11576
|
key: "destroy",
|
|
11574
11577
|
value: function destroy() {
|
|
11575
|
-
var _this2 = this
|
|
11578
|
+
var _this2 = this,
|
|
11579
|
+
_this$socket2;
|
|
11576
11580
|
|
|
11577
11581
|
_classPrivateFieldGet(this, _player) && _classPrivateFieldGet(this, _player).play265Obj && Object.keys(_classPrivateFieldGet(this, _player).play265Obj).forEach(function (key) {
|
|
11578
11582
|
_classPrivateFieldGet(_this2, _player).play265Obj[key].destroy();
|
|
@@ -11582,7 +11586,7 @@ var common_request_wsClass = /*#__PURE__*/function () {
|
|
|
11582
11586
|
|
|
11583
11587
|
_classPrivateFieldSet(this, _player, null);
|
|
11584
11588
|
|
|
11585
|
-
this.socket.closeSocket(1000, '通知关闭websocket连接');
|
|
11589
|
+
(_this$socket2 = this.socket) === null || _this$socket2 === void 0 ? void 0 : _this$socket2.closeSocket(1000, '通知关闭websocket连接');
|
|
11586
11590
|
this.socket = null;
|
|
11587
11591
|
|
|
11588
11592
|
if (_classPrivateFieldGet(this, _phoneClientObj)) {
|
|
Binary file
|