@seastart/srtc-web-sdk 0.6.0 → 0.6.2

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/CHANGELOG.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  本文档记录 web SDK 各版本的改动点。遵循 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.1.0/) 风格。
4
4
 
5
+ ## v0.6.2 - 2026-09-02
6
+
7
+ - fix(channel): 同一 desc 重复发布直接抛错,堵住关不掉的幽灵轨 (98ca84c)
8
+ - fix: 默认频道判定不再只靠对象身份,避免实例被响应式代理时事件全丢 (227da4f)
9
+ - fix: 业务错误不再被吞成「调用被取消」,重连遇容量不足可自愈 (f721a6d)
10
+
11
+ ## v0.6.1 - 2026-08-06
12
+
13
+ - fix: Channel 直订远端轨事件丢失(muted/ended/pip 等不通知);channel.subscribeRemote* 返回平台化类型(RemoteVideoTrack 等),无需再断言
14
+
5
15
  ## v0.6.0 - 2026-08-05
6
16
 
7
17
  - feat!: 引擎+多频道模型:join 返回 Channel,支持同时加入多个频道
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seastart/srtc-web-sdk",
3
- "version": "0.6.0",
3
+ "version": "0.6.2",
4
4
  "description": "srtc sdk for web",
5
5
  "main": "srtc.js",
6
6
  "module": "srtc.mjs",
package/srtc.d.mts CHANGED
@@ -197,6 +197,9 @@ declare class CommonTrackEventType {
197
197
  /** playback or streaming has stopped because the end of the media was reached or because no further data is available */
198
198
  static readonly ENDED = "ended";
199
199
  }
200
+ declare class RemoteAudioMcuTrack extends RemoteAudioTrack {
201
+ constructor();
202
+ }
200
203
  declare class RemoteVideoMcuTrack extends RemoteVideoTrack {
201
204
  constructor();
202
205
  }
@@ -381,7 +384,26 @@ export declare class Channel extends BaseChannel {
381
384
  * override:与 publishLocalTrack 对称,收尾共享屏幕音频轨与联播副轨。
382
385
  */
383
386
  unpublishLocalTrack(track: BaseLocalTrack): Promise<void>;
384
- subscribeRemoteVideoTrack(uid: string, id: string): Promise<BaseTrack>;
387
+ /**
388
+ * override:返回平台类型 + 登记轨道事件转发(与经 SRTC 门面订阅行为一致)。
389
+ */
390
+ subscribeRemoteAudioMixTrack(filter?: ((track: BaseTrack) => boolean) | string[]): Promise<RemoteAudioMixTrack>;
391
+ /**
392
+ * override:返回平台类型 + 登记轨道事件转发。
393
+ */
394
+ subscribeRemoteAudioTrack(uid: string, id: string): Promise<RemoteAudioTrack>;
395
+ /**
396
+ * override:返回平台类型 + 登记轨道事件转发。
397
+ */
398
+ subscribeRemoteVideoMcuTrack(): Promise<RemoteVideoMcuTrack>;
399
+ /**
400
+ * override:返回平台类型 + 登记轨道事件转发。
401
+ */
402
+ subscribeRemoteAudioMcuTrack(): Promise<RemoteAudioMcuTrack>;
403
+ /**
404
+ * override:返回平台类型 + 自适应流绑定 + 登记轨道事件转发。
405
+ */
406
+ subscribeRemoteVideoTrack(uid: string, id: string): Promise<RemoteVideoTrack>;
385
407
  unsubscribeRemoteTrack(track: BaseTrack, debounceWaitMs?: number): Promise<void>;
386
408
  }
387
409
  /** 扩展的频道事件 */
package/srtc.d.ts CHANGED
@@ -197,6 +197,9 @@ declare class CommonTrackEventType {
197
197
  /** playback or streaming has stopped because the end of the media was reached or because no further data is available */
198
198
  static readonly ENDED = "ended";
199
199
  }
200
+ declare class RemoteAudioMcuTrack extends RemoteAudioTrack {
201
+ constructor();
202
+ }
200
203
  declare class RemoteVideoMcuTrack extends RemoteVideoTrack {
201
204
  constructor();
202
205
  }
@@ -381,7 +384,26 @@ export declare class Channel extends BaseChannel {
381
384
  * override:与 publishLocalTrack 对称,收尾共享屏幕音频轨与联播副轨。
382
385
  */
383
386
  unpublishLocalTrack(track: BaseLocalTrack): Promise<void>;
384
- subscribeRemoteVideoTrack(uid: string, id: string): Promise<BaseTrack>;
387
+ /**
388
+ * override:返回平台类型 + 登记轨道事件转发(与经 SRTC 门面订阅行为一致)。
389
+ */
390
+ subscribeRemoteAudioMixTrack(filter?: ((track: BaseTrack) => boolean) | string[]): Promise<RemoteAudioMixTrack>;
391
+ /**
392
+ * override:返回平台类型 + 登记轨道事件转发。
393
+ */
394
+ subscribeRemoteAudioTrack(uid: string, id: string): Promise<RemoteAudioTrack>;
395
+ /**
396
+ * override:返回平台类型 + 登记轨道事件转发。
397
+ */
398
+ subscribeRemoteVideoMcuTrack(): Promise<RemoteVideoMcuTrack>;
399
+ /**
400
+ * override:返回平台类型 + 登记轨道事件转发。
401
+ */
402
+ subscribeRemoteAudioMcuTrack(): Promise<RemoteAudioMcuTrack>;
403
+ /**
404
+ * override:返回平台类型 + 自适应流绑定 + 登记轨道事件转发。
405
+ */
406
+ subscribeRemoteVideoTrack(uid: string, id: string): Promise<RemoteVideoTrack>;
385
407
  unsubscribeRemoteTrack(track: BaseTrack, debounceWaitMs?: number): Promise<void>;
386
408
  }
387
409
  /** 扩展的频道事件 */