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
|
@@ -11494,6 +11494,7 @@ var common_request_wsClass = /*#__PURE__*/function () {
|
|
|
11494
11494
|
value: null
|
|
11495
11495
|
});
|
|
11496
11496
|
|
|
11497
|
+
if (config !== null && config !== void 0 && config.onlyPlay) return;
|
|
11497
11498
|
this.config = config;
|
|
11498
11499
|
Object.assign(this.config, {
|
|
11499
11500
|
checkData: JSON.stringify(GetSendModel('keeplive', this.config))
|
|
@@ -11536,7 +11537,9 @@ var common_request_wsClass = /*#__PURE__*/function () {
|
|
|
11536
11537
|
Object(createClass["a" /* default */])(wsClass, [{
|
|
11537
11538
|
key: "send",
|
|
11538
11539
|
value: function send(action, params) {
|
|
11539
|
-
|
|
11540
|
+
var _this$socket;
|
|
11541
|
+
|
|
11542
|
+
(_this$socket = this.socket) === null || _this$socket === void 0 ? void 0 : _this$socket.send(JSON.stringify(GetSendModel(action, this.config, params)));
|
|
11540
11543
|
}
|
|
11541
11544
|
}, {
|
|
11542
11545
|
key: "getPlayer",
|
|
@@ -11563,7 +11566,8 @@ var common_request_wsClass = /*#__PURE__*/function () {
|
|
|
11563
11566
|
}, {
|
|
11564
11567
|
key: "destroy",
|
|
11565
11568
|
value: function destroy() {
|
|
11566
|
-
var _this2 = this
|
|
11569
|
+
var _this2 = this,
|
|
11570
|
+
_this$socket2;
|
|
11567
11571
|
|
|
11568
11572
|
_classPrivateFieldGet(this, _player) && _classPrivateFieldGet(this, _player).play265Obj && Object.keys(_classPrivateFieldGet(this, _player).play265Obj).forEach(function (key) {
|
|
11569
11573
|
_classPrivateFieldGet(_this2, _player).play265Obj[key].destroy();
|
|
@@ -11573,7 +11577,7 @@ var common_request_wsClass = /*#__PURE__*/function () {
|
|
|
11573
11577
|
|
|
11574
11578
|
_classPrivateFieldSet(this, _player, null);
|
|
11575
11579
|
|
|
11576
|
-
this.socket.closeSocket(1000, '通知关闭websocket连接');
|
|
11580
|
+
(_this$socket2 = this.socket) === null || _this$socket2 === void 0 ? void 0 : _this$socket2.closeSocket(1000, '通知关闭websocket连接');
|
|
11577
11581
|
this.socket = null;
|
|
11578
11582
|
|
|
11579
11583
|
if (_classPrivateFieldGet(this, _phoneClientObj)) {
|
|
Binary file
|