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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trtc-sdk-v5",
3
- "version": "5.7.2-beta.1",
3
+ "version": "5.7.2-beta.2",
4
4
  "description": "Tencent Cloud RTC SDK for Web",
5
5
  "main": "trtc.js",
6
6
  "types": "index.d.ts",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/cdn-streaming",
3
- "version": "5.7.2-beta.1",
3
+ "version": "5.7.2-beta.2",
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>",
@@ -0,0 +1,10 @@
1
+ import {DeviceDetectorOptions} from '../src/enums'
2
+
3
+ export {DeviceDetectorOptions}
4
+
5
+ export declare class DeviceDetector {
6
+ start(options: DeviceDetectorOptions): Promise<void>;
7
+ stop():Promise<void>;
8
+ }
9
+
10
+ export default DeviceDetector;