trtc-sdk-v5 5.7.2-beta.1 → 5.7.2-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 +7 -2
- package/package.json +1 -1
- package/plugins/cdn-streaming/package.json +1 -1
- package/plugins/device-detector/device-detector.esm.d.ts +10 -0
- package/plugins/device-detector/device-detector.esm.js +1429 -0
- package/plugins/device-detector/device-detector.iife.js +1429 -0
- package/plugins/device-detector/package.json +29 -0
- package/plugins/video-effect/basic-beauty/basic-beauty.esm.js +2 -2
- package/plugins/video-effect/basic-beauty/basic-beauty.iife.js +2 -2
- 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/virtual-background/virtual-background.esm.js +14 -14
- package/plugins/video-effect/virtual-background/virtual-background.iife.js +14 -14
- package/plugins/video-effect/watermark/package.json +1 -1
- package/plugins/video-effect/watermark/watermark.esm.js +1 -1
- package/plugins/video-effect/watermark/watermark.iife.js +1 -1
- package/trtc.esm.js +33 -32
- package/trtc.js +1 -1
- package/plugins/cdn-streaming/cdn-streaming.js +0 -1
package/index.d.ts
CHANGED
|
@@ -83,6 +83,7 @@ declare interface RemoteVideoConfig {
|
|
|
83
83
|
small?: boolean;
|
|
84
84
|
receiveWhenViewVisible?: boolean;
|
|
85
85
|
viewRoot?: HTMLElement;
|
|
86
|
+
canvasRender?: boolean;
|
|
86
87
|
};
|
|
87
88
|
}
|
|
88
89
|
declare interface StopRemoteVideoConfig {
|
|
@@ -309,6 +310,7 @@ declare type PluginStartOptionsMap = {
|
|
|
309
310
|
'Watermark': WatermarkOptions;
|
|
310
311
|
'Beauty': BeautyOptions;
|
|
311
312
|
'BasicBeauty': BasicBeautyOptions;
|
|
313
|
+
'DeviceDetector': DeviceDetectorOptions;
|
|
312
314
|
};
|
|
313
315
|
declare type PluginUpdateOptionsMap = {
|
|
314
316
|
'AudioMixer': UpdateAudioMixerOptions;
|
|
@@ -325,6 +327,7 @@ declare type PluginStopOptionsMap = {
|
|
|
325
327
|
'Watermark': undefined;
|
|
326
328
|
'Beauty': undefined;
|
|
327
329
|
'BasicBeauty': undefined;
|
|
330
|
+
'DeviceDetector': undefined;
|
|
328
331
|
};
|
|
329
332
|
declare interface TRTCStatistics {
|
|
330
333
|
rtt: number;
|
|
@@ -629,7 +632,7 @@ declare const TRTCEvent: {
|
|
|
629
632
|
* @default 'connection-state-changed'
|
|
630
633
|
* @memberof module:EVENT
|
|
631
634
|
* @example
|
|
632
|
-
* trtc.on(TRTC.CONNECTION_STATE_CHANGED, event => {
|
|
635
|
+
* trtc.on(TRTC.EVENT.CONNECTION_STATE_CHANGED, event => {
|
|
633
636
|
* const prevState = event.prevState;
|
|
634
637
|
* const curState = event.state;
|
|
635
638
|
* });
|
|
@@ -897,6 +900,7 @@ declare interface TRTCEventTypes {
|
|
|
897
900
|
* @returns {TRTC} TRTC object
|
|
898
901
|
*/
|
|
899
902
|
static create(options?: TRTCOptions): TRTC;
|
|
903
|
+
get room(): IRoom;
|
|
900
904
|
/**
|
|
901
905
|
* @private
|
|
902
906
|
* 注册插件 <br>
|
|
@@ -1407,8 +1411,9 @@ declare interface TRTCEventTypes {
|
|
|
1407
1411
|
* - {@link module:ERROR_CODE.OPERATION_ABORT OPERATION_ABORT}
|
|
1408
1412
|
* @example
|
|
1409
1413
|
* const config = {
|
|
1410
|
-
* view: document.getElementById(userId),
|
|
1414
|
+
* view: document.getElementById(userId), // you can use a new view to update the position of video.
|
|
1411
1415
|
* userId,
|
|
1416
|
+
* streamType: TRTC.TYPE.STREAM_TYPE_MAIN
|
|
1412
1417
|
* }
|
|
1413
1418
|
* await trtc.updateRemoteVideo(config);
|
|
1414
1419
|
* @memberof TRTC
|
package/package.json
CHANGED