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 +3 -0
- package/package.json +1 -1
- package/plugins/cdn-streaming/package.json +1 -1
- package/plugins/cross-room/package.json +1 -1
- package/plugins/custom-encryption/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 +34 -34
- package/trtc.js +1 -1
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