floating-live 0.16.0-alpha.17 → 0.16.0-alpha.19
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 +1 -3
- package/dist/live/room.js +2 -6
- package/package.json +1 -1
package/dist/live/room.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export declare abstract class LiveRoom extends CustomEventEmitter implements Liv
|
|
|
26
26
|
/** 房间开启状态 */
|
|
27
27
|
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
|
@@ -10,14 +10,12 @@ export class LiveRoom extends CustomEventEmitter {
|
|
|
10
10
|
/** 房间连接状态 */
|
|
11
11
|
this.connectionStatus = LiveConnectionStatus.off;
|
|
12
12
|
/** 房间开启状态 */
|
|
13
|
-
this.openStatus =
|
|
13
|
+
this.openStatus = 0;
|
|
14
|
+
this.available = false;
|
|
14
15
|
}
|
|
15
16
|
get opened() {
|
|
16
17
|
return this.openStatus == 2;
|
|
17
18
|
}
|
|
18
|
-
get available() {
|
|
19
|
-
return this.openStatus > -1;
|
|
20
|
-
}
|
|
21
19
|
/** 销毁 */
|
|
22
20
|
destroy() {
|
|
23
21
|
this.close();
|
|
@@ -119,6 +117,4 @@ export const LiveRoomOpenStatus = {
|
|
|
119
117
|
opening: 1,
|
|
120
118
|
/** 已开启 */
|
|
121
119
|
opened: 2,
|
|
122
|
-
/** 不可用 */
|
|
123
|
-
unavailable: -1,
|
|
124
120
|
};
|