floating-live 0.16.0-alpha.17 → 0.16.0-alpha.18
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/live/room.d.ts +2 -4
- package/dist/live/room.js +1 -7
- package/package.json +1 -1
package/dist/live/room.d.ts
CHANGED
|
@@ -24,9 +24,9 @@ export declare abstract class LiveRoom extends CustomEventEmitter implements Liv
|
|
|
24
24
|
/** 房间连接状态 */
|
|
25
25
|
connectionStatus: LiveConnectionStatus;
|
|
26
26
|
/** 房间开启状态 */
|
|
27
|
-
openStatus: LiveRoomOpenStatus;
|
|
27
|
+
abstract openStatus: LiveRoomOpenStatus;
|
|
28
28
|
get opened(): boolean;
|
|
29
|
-
|
|
29
|
+
available: boolean;
|
|
30
30
|
/** 打开连接 */
|
|
31
31
|
abstract open(): void;
|
|
32
32
|
/** 关闭连接 */
|
|
@@ -143,8 +143,6 @@ export declare const LiveRoomOpenStatus: {
|
|
|
143
143
|
readonly opening: 1;
|
|
144
144
|
/** 已开启 */
|
|
145
145
|
readonly opened: 2;
|
|
146
|
-
/** 不可用 */
|
|
147
|
-
readonly unavailable: -1;
|
|
148
146
|
};
|
|
149
147
|
export type LiveRoomOpenStatus = EnumValue<typeof LiveRoomOpenStatus>;
|
|
150
148
|
export interface LiveRoomEventMap {
|
package/dist/live/room.js
CHANGED
|
@@ -9,15 +9,11 @@ export class LiveRoom extends CustomEventEmitter {
|
|
|
9
9
|
this.timestamp = 0;
|
|
10
10
|
/** 房间连接状态 */
|
|
11
11
|
this.connectionStatus = LiveConnectionStatus.off;
|
|
12
|
-
|
|
13
|
-
this.openStatus = -1;
|
|
12
|
+
this.available = false;
|
|
14
13
|
}
|
|
15
14
|
get opened() {
|
|
16
15
|
return this.openStatus == 2;
|
|
17
16
|
}
|
|
18
|
-
get available() {
|
|
19
|
-
return this.openStatus > -1;
|
|
20
|
-
}
|
|
21
17
|
/** 销毁 */
|
|
22
18
|
destroy() {
|
|
23
19
|
this.close();
|
|
@@ -119,6 +115,4 @@ export const LiveRoomOpenStatus = {
|
|
|
119
115
|
opening: 1,
|
|
120
116
|
/** 已开启 */
|
|
121
117
|
opened: 2,
|
|
122
|
-
/** 不可用 */
|
|
123
|
-
unavailable: -1,
|
|
124
118
|
};
|