trtc-sdk-v5 5.1.3-beta.3 → 5.1.4-beta.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/index.d.ts CHANGED
@@ -336,7 +336,9 @@
336
336
  * @memberof module:EVENT
337
337
  * @example
338
338
  * trtc.on(TRTC.EVENT.AUTOPLAY_FAILED, event => {
339
- * // 引导用户进行页面交互
339
+ * // 引导用户点击页面,当用户点击页面时,SDK 会自动恢复播放。
340
+ * // v5.1.3+
341
+ * console.log(event.userId);
340
342
  * });
341
343
  */
342
344
  readonly AUTOPLAY_FAILED: "autoplay-failed";
@@ -651,7 +653,9 @@
651
653
  };
652
654
  declare interface TRTCEventTypes {
653
655
  [TRTCEvent.ERROR]: [RtcError];
654
- [TRTCEvent.AUTOPLAY_FAILED]: [];
656
+ [TRTCEvent.AUTOPLAY_FAILED]: [{
657
+ userId: string;
658
+ }];
655
659
  [TRTCEvent.KICKED_OUT]: [{
656
660
  reason: Exclude<BannedReason, 'user_time_out'>;
657
661
  }];
@@ -782,7 +786,7 @@
782
786
  * @param {boolean} [options.autoReceiveVideo=true] 是否自动接收视频。当远端用户发布视频后,SDK 自动拉流并解码远端视频,您需要调用 {@link TRTC#startRemoteVideo startRemoteVideo} 播放远端视频。
783
787
  * @param {boolean} [options.enableAutoPlayDialog] 是否开启 SDK 自动播放失败弹窗,默认:true。
784
788
  * - 默认开启,当出现自动播放失败时,SDK 会弹窗引导用户点击页面,来恢复音视频播放。
785
- * - 可设置为 false 关闭,建议接入侧参考 [自动播放受限处理建议](https://web.sdk.qcloud.com/trtc/webrtc/doc/zh-cn/tutorial-21-advanced-auto-play-policy.html) 来处理自动播放失败相关问题。
789
+ * - 可设置为 false 关闭,建议接入侧参考{@tutorial 21-advanced-auto-play-policy}来处理自动播放失败相关问题。
786
790
  * @param {string=} options.userDefineRecordId 用于设置云端录制的 userDefineRecordId(选填)。
787
791
  * - 【推荐取值】限制长度为64字节,只允许包含大小写英文字母(a-zA-Z)、数字(0-9)及下划线和连词符。
788
792
  * - 【参考文档】[云端录制](https://cloud.tencent.com/document/product/647/16823)。
@@ -1239,7 +1243,8 @@
1239
1243
  *
1240
1244
  * - 不支持 iOS Safari
1241
1245
  * @param {string} userId - 远端用户 userId
1242
- * @param {number} volume - 音量大小,取值范围为0 - 100
1246
+ * @param {number} volume - 音量大小,取值范围为0 - 100,默认值为 100。<br>
1247
+ * 自 `v5.1.3+` 版本支持设置 volume 大于100。需注意,设置超过 100 可能有爆音风险。
1243
1248
  * @example
1244
1249
  * await trtc.setRemoteAudioVolume('123', 90);
1245
1250
  * */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trtc-sdk-v5",
3
- "version": "5.1.3-beta.3",
3
+ "version": "5.1.4-beta.2",
4
4
  "description": "Tencent Cloud RTC SDK for Web",
5
5
  "main": "trtc.js",
6
6
  "types": "index.d.ts",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/cdn-streaming",
3
- "version": "5.1.2",
3
+ "version": "5.1.3",
4
4
  "description": "TRTC Web SDK 5.x CDN streaming plugin",
5
5
  "main": "./cdn-streaming.esm.js",
6
6
  "author": "longyuqi <longyuqi@tencent.com>",