trtc-sdk-v5 5.9.0-wasm.16 → 5.9.0-wasm.17

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
@@ -734,6 +734,8 @@ export declare const TRTCEvent: {
734
734
  * // Guide user to click the page, SDK will resume playback automatically when user click the page.
735
735
  * // Since v5.1.3+, you can get userId on this event.
736
736
  * console.log(event.userId);
737
+ * // Since v5.9.0+, you can call the `resume` method to restore playback of the stream corresponding to event.userId.
738
+ * event.resume();
737
739
  * });
738
740
  */
739
741
  readonly AUTOPLAY_FAILED: 'autoplay-failed';
@@ -1110,6 +1112,7 @@ export declare interface TRTCEventTypes {
1110
1112
  [TRTCEvent.ERROR]: [RtcError];
1111
1113
  [TRTCEvent.AUTOPLAY_FAILED]: [{
1112
1114
  userId: string;
1115
+ resume: () => Promise<void>;
1113
1116
  }];
1114
1117
  [TRTCEvent.KICKED_OUT]: [{
1115
1118
  reason: Exclude<BannedReason, 'user_time_out'>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trtc-sdk-v5",
3
- "version": "5.9.0-wasm.16",
3
+ "version": "5.9.0-wasm.17",
4
4
  "description": "Tencent Cloud RTC SDK for Web",
5
5
  "module": "trtc.esm.js",
6
6
  "type": "module",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/cdn-streaming",
3
- "version": "5.9.0-wasm.16",
3
+ "version": "5.9.0-wasm.17",
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>",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/cross-room",
3
- "version": "5.9.0-wasm.16",
3
+ "version": "5.9.0-wasm.17",
4
4
  "description": "TRTC Web SDK 5.x Cross Room plugin",
5
5
  "main": "./cross-room.esm.js",
6
6
  "author": "rychouwei <rychouwei@tencent.com>",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/custom-encryption",
3
- "version": "5.9.0-wasm.16",
3
+ "version": "5.9.0-wasm.17",
4
4
  "main": "./custom-encryption.esm.js",
5
5
  "module": "./custom-encryption.esm.js",
6
6
  "types": "./custom-encryption.esm.d.ts"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/device-detector",
3
- "version": "5.9.0-wasm.16",
3
+ "version": "5.9.0-wasm.17",
4
4
  "description": "TRTC Web SDK 5.x device detector plugin",
5
5
  "main": "./device-detector.esm.js",
6
6
  "author": "edwards <edwards@tencent.com>",
@@ -1,6 +1,6 @@
1
1
  {
2
- "name": "@trtc/video-decoder",
3
- "version": "5.9.0-wasm.16",
2
+ "name": "@rtc-plugin/video-decoder",
3
+ "version": "5.9.0-wasm.17",
4
4
  "description": "Video decoder plugin for TRTC",
5
5
  "main": "./video-decoder.esm.js",
6
6
  "module": "./video-decoder.esm.js",