quickvo-sdk-js 1.4.1 → 1.4.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/README.md CHANGED
@@ -409,6 +409,39 @@ quickvo.quitRoom()
409
409
 
410
410
  ### 版本迭代说明
411
411
 
412
+ - ~~版本:1.4.1 (2025-09-04)~~ 由于编译问题导致引入该包会极大的影响build速度 请使用1.4.2
413
+ - 版本:1.4.2 (2025-09-04)
414
+
415
+ ```
416
+ 着重优化了网络稳定性以及网络恢复后的数据通道恢复重建等机制。另外新增p2p相关功能。
417
+ 因优化内部API设计合理性,subscribe、stopSubscribe 这两个接口传入参数 有所变动,并且不在返回最终用户对象结果(请统一使用 onRoomUsersStreams 进行更新渲染)。
418
+
419
+
420
+ 以下是升级指南:
421
+
422
+ 由原来的
423
+ quickvo.subscribe(['trackName1','trackName2'])
424
+ 调整为
425
+ quickvo.subscribe([{ userId: '123', mediaTypes: ['microphoneCamera_audio', 'microphoneCamera_video'] }])
426
+
427
+ 由原来的
428
+ quickvo.stopSubscribe(['trackName1','trackName2'])
429
+ 调整为
430
+ quickvo.stopSubscribe([{ userId: '123', mediaTypes: ['microphoneCamera_audio', 'microphoneCamera_video'] }])
431
+
432
+ SDK内部提供了方便开发者升级的api:
433
+ /**
434
+ * getUsersMediaTypeBytrackNames
435
+ * @param trackNames string[]
436
+ * @returns [{ userId: '123', mediaTypes: ['mediaTypes', 'microphoneCamera_video'] }]
437
+ */
438
+
439
+ const usersMediaType = quickvo.getUsersMediaTypeBytrackNames(['trackName1','trackName2'])
440
+
441
+ quickvo.subscribe(usersMediaType)
442
+
443
+ ```
444
+
412
445
  - 版本:0.9.0 (2025-06-20)
413
446
 
414
447
  ```