floating-live 0.17.0-alpha.4 → 0.17.0-alpha.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.
@@ -10,7 +10,7 @@ export declare abstract class LiveRoom extends CustomEventEmitter implements Liv
10
10
  /** 平台 */
11
11
  abstract readonly platform: string;
12
12
  /** api服务 */
13
- abstract readonly service: string;
13
+ readonly service: string;
14
14
  /** 房间id */
15
15
  abstract readonly id: string | number;
16
16
  /** 房间详情 */
@@ -44,7 +44,7 @@ export declare abstract class LiveRoom extends CustomEventEmitter implements Liv
44
44
  /** 设置房间数据 */
45
45
  abstract setData?(data: LiveRoomData): LiveRoomData;
46
46
  /** 销毁钩子 */
47
- protected abstract onDestroy?(): void;
47
+ protected onDestroy?(): void;
48
48
  /** 销毁
49
49
  * @internal 请勿在继承 LiveRoom 的子类中声明该方法,应使用 onDestroy 钩子
50
50
  */
package/dist/live/room.js CHANGED
@@ -10,6 +10,8 @@ export class LiveRoom extends CustomEventEmitter {
10
10
  get serviceId() {
11
11
  return this.service ? `${this.platform}.${this.service}` : this.platform;
12
12
  }
13
+ /** api服务 */
14
+ service = "";
13
15
  /** 统计信息 */
14
16
  stats;
15
17
  /** 直播状态 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "floating-live",
3
- "version": "0.17.0-alpha.4",
3
+ "version": "0.17.0-alpha.5",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",