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 +3 -0
- package/package.json +6 -4
- package/plugins/cdn-streaming/package.json +1 -1
- package/plugins/cross-room/package.json +1 -1
- package/plugins/device-detector/package.json +1 -1
- package/plugins/video-decoder/package.json +2 -2
- package/plugins/video-decoder/video-decoder.esm.js +38 -38
- package/plugins/video-decoder/video-decoder.iife.js +38 -38
- package/plugins/video-effect/basic-beauty/package.json +1 -1
- package/plugins/video-effect/beauty/package.json +1 -1
- package/plugins/video-effect/virtual-background/package.json +1 -1
- package/plugins/video-effect/watermark/package.json +1 -1
- package/trtc.esm.js +41 -64
- package/trtc.js +1 -1
- package/assets/videodec.wasm +0 -0
- package/assets/videodec_simd.wasm +0 -0
- package/plugins/custom-encryption/custom-encryption.esm.d.ts +0 -34
- package/plugins/custom-encryption/custom-encryption.esm.js +0 -36
- package/plugins/custom-encryption/custom-encryption.iife.js +0 -36
- package/plugins/custom-encryption/package.json +0 -7
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
|
|
3
|
+
"version": "5.9.0",
|
|
4
4
|
"description": "Tencent Cloud RTC SDK for Web",
|
|
5
|
-
"
|
|
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
|
+
}
|