trtc-sdk-v5 5.9.0-wasm.8 → 5.9.0

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
@@ -731,6 +731,8 @@ export declare const TRTCEvent: {
731
731
  * // Guide user to click the page, SDK will resume playback automatically when user click the page.
732
732
  * // Since v5.1.3+, you can get userId on this event.
733
733
  * console.log(event.userId);
734
+ * // Since v5.9.0+, you can call the `resume` method to restore playback of the stream corresponding to event.userId.
735
+ * event.resume();
734
736
  * });
735
737
  */
736
738
  readonly AUTOPLAY_FAILED: 'autoplay-failed';
@@ -1107,6 +1109,7 @@ export declare interface TRTCEventTypes {
1107
1109
  [TRTCEvent.ERROR]: [RtcError];
1108
1110
  [TRTCEvent.AUTOPLAY_FAILED]: [{
1109
1111
  userId: string;
1112
+ resume: () => Promise<void>;
1110
1113
  }];
1111
1114
  [TRTCEvent.KICKED_OUT]: [{
1112
1115
  reason: Exclude<BannedReason, 'user_time_out'>;
package/package.json CHANGED
@@ -1,10 +1,12 @@
1
1
  {
2
2
  "name": "trtc-sdk-v5",
3
- "version": "5.9.0-wasm.8",
3
+ "version": "5.9.0",
4
4
  "description": "Tencent Cloud RTC SDK for Web",
5
- "module": "trtc.esm.js",
6
- "type": "module",
5
+ "main": "trtc.js",
7
6
  "types": "index.d.ts",
7
+ "dependencies": {
8
+ "webrtc-adapter": "^8.2.3"
9
+ },
8
10
  "keywords": [
9
11
  "webrtc",
10
12
  "TRTC",
@@ -27,4 +29,4 @@
27
29
  },
28
30
  "author": "Tencent Cloud Client R&D Center",
29
31
  "license": "ISC"
30
- }
32
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/cdn-streaming",
3
- "version": "5.9.0-wasm.8",
3
+ "version": "5.9.0",
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.8",
3
+ "version": "5.9.0",
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/device-detector",
3
- "version": "5.9.0-wasm.8",
3
+ "version": "5.9.0",
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.8",
2
+ "name": "@rtc-plugin/video-decoder",
3
+ "version": "5.9.0",
4
4
  "description": "Video decoder plugin for TRTC",
5
5
  "main": "./video-decoder.esm.js",
6
6
  "module": "./video-decoder.esm.js",