trtc-sdk-v5 5.7.1 → 5.7.2-beta.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
@@ -310,6 +310,7 @@ declare type PluginStartOptionsMap = {
310
310
  'Watermark': WatermarkOptions;
311
311
  'Beauty': BeautyOptions;
312
312
  'BasicBeauty': BasicBeautyOptions;
313
+ 'DeviceDetector': DeviceDetectorOptions;
313
314
  };
314
315
  declare type PluginUpdateOptionsMap = {
315
316
  'AudioMixer': UpdateAudioMixerOptions;
@@ -326,6 +327,7 @@ declare type PluginStopOptionsMap = {
326
327
  'Watermark': undefined;
327
328
  'Beauty': undefined;
328
329
  'BasicBeauty': undefined;
330
+ 'DeviceDetector': undefined;
329
331
  };
330
332
  declare interface TRTCStatistics {
331
333
  rtt: number;
@@ -898,6 +900,7 @@ declare interface TRTCEventTypes {
898
900
  * @returns {TRTC} TRTC object
899
901
  */
900
902
  static create(options?: TRTCOptions): TRTC;
903
+ get room(): IRoom;
901
904
  /**
902
905
  * @private
903
906
  * 注册插件 <br>
@@ -1693,53 +1696,6 @@ declare interface TRTCEventTypes {
1693
1696
  readonly VIDEO_PLAY_STATE_CHANGED: "video-play-state-changed";
1694
1697
  readonly SCREEN_SHARE_STOPPED: "screen-share-stopped";
1695
1698
  readonly DEVICE_CHANGED: "device-changed";
1696
- /**
1697
- * Enter a video call room.<br>
1698
- * - Entering a room means starting a video call session. Only after entering the room successfully can you make audio and video calls with other users in the room.
1699
- * - You can publish local audio and video streams through {@link TRTC#startLocalVideo startLocalVideo()} and {@link TRTC#startLocalAudio startLocalAudio()} respectively. After successful publishing, other users in the room will receive the {@link module:EVENT.REMOTE_AUDIO_AVAILABLE REMOTE_AUDIO_AVAILABLE} and {@link module:EVENT.REMOTE_VIDEO_AVAILABLE REMOTE_VIDEO_AVAILABLE} event notifications.
1700
- * - By default, the SDK automatically plays remote audio. You need to call {@link TRTC#startRemoteVideo startRemoteVideo()} to play remote video.
1701
- *
1702
- * @param {object} options Enter room parameters
1703
- * @param {number} options.sdkAppId sdkAppId <br>
1704
- * You can obtain the sdkAppId information in the **Application Information** section after creating a new application by clicking **Application Management** > **Create Application** in the [TRTC Console](https://console.intl.cloud.tencent.com/trtc).
1705
- * @param {string} options.userId User ID <br>
1706
- * It is recommended to limit the length to 32 bytes, and only allow uppercase and lowercase English letters (a-zA-Z), numbers (0-9), underscores, and hyphens.
1707
- * @param {string} options.userSig UserSig signature <br>
1708
- * Please refer to [UserSig related](https://www.tencentcloud.com/document/product/647/35166) for the calculation method of userSig.
1709
- * @param {number=} options.roomId
1710
- * the value must be an integer between 1 and 4294967294<br>
1711
- * <font color="red">If you need to use a string type room id, please use the strRoomId parameter. One of roomId and strRoomId must be passed in. If both are passed in, the roomId will be selected first.</font>
1712
- * @param {string=} options.strRoomId
1713
- * String type room id, the length is limited to 64 bytes, and only supports the following characters:
1714
- * - Uppercase and lowercase English letters (a-zA-Z)
1715
- * - Numbers (0-9)
1716
- * - Space ! # $ % & ( ) + - : ; < = . > ? @ [ ] ^ _ { } | ~ ,
1717
- * <font color="red">Note: It is recommended to use a numeric type roomId. The string type room id "123" is not the same room as the numeric type room id 123.</font>
1718
- * @param {string} [options.scene] Application scene, currently supports the following two scenes:
1719
- * - {@link module:TYPE.SCENE_RTC TRTC.TYPE.SCENE_RTC} (default) Real-time call scene, which is suitable for 1-to-1 audio and video calls, or online meetings with up to 300 participants. {@tutorial 04-info-uplink-limits}.
1720
- * - {@link module:TYPE.SCENE_LIVE TRTC.TYPE.SCENE_LIVE} Interactive live streaming scene, which is suitable for online live streaming scenes with up to 100,000 people, but you need to specify the role field in the options parameter introduced next.
1721
- * @param {string=} [options.role] User role, only meaningful in the {@link module:TYPE.SCENE_LIVE TRTC.TYPE.SCENE_LIVE} scene, and the {@link module:TYPE.SCENE_RTC TRTC.TYPE.SCENE_RTC} scene does not need to specify the role. Currently supports two roles:
1722
- * - {@link module:TYPE.ROLE_ANCHOR TRTC.TYPE.ROLE_ANCHOR} (default) Anchor
1723
- * - {@link module:TYPE.ROLE_AUDIENCE TRTC.TYPE.ROLE_AUDIENCE} Audience
1724
- * Note: The audience role does not have the permission to publish local audio and video, only the permission to watch remote streams. If the audience wants to interact with the anchor by connecting to the microphone, please switch the role to the anchor through {@link TRTC#switchRole switchRole()} before publishing local audio and video.
1725
- * @param {boolean} [options.autoReceiveAudio=true] Whether to automatically receive audio. When a remote user publishes audio, the SDK automatically plays the remote user's audio.
1726
- * @param {boolean} [options.autoReceiveVideo=false] Whether to automatically receive video. When a remote user publishes video, the SDK automatically subscribes and decodes the remote video. You need to call {@link TRTC#startRemoteVideo startRemoteVideo} to play the remote video.
1727
- * - The default value was changed to `false` since v5.6.0. Refer to [Breaking Changed for v5.6.0](https://web.sdk.qcloud.com/trtc/webrtc/v5/doc/en/tutorial-00-info-update-guideline.html).
1728
- * @param {boolean} [options.enableAutoPlayDialog] Whether to enable the SDK's automatic playback failure dialog box, default: true.
1729
- * - Enabled by default. When automatic playback fails, the SDK will pop up a dialog box to guide the user to click the page to restore audio and video playback.
1730
- * - Can be set to false in order to turn off. Refer to {@tutorial 21-advanced-auto-play-policy}.
1731
- * @param {string|ProxyServer} [options.proxy] proxy config. Refer to {@tutorial 34-advanced-proxy}.
1732
- * @param {boolean} [options.privateMapKey] Key for entering a room. If permission control is required, please carry this parameter (empty or incorrect value will cause a failure in entering the room).<br>[privateMapKey permission configuration](https://www.tencentcloud.com/document/product/647/35157?lang=en&pg=).
1733
- * @throws
1734
- * - {@link module:ERROR_CODE.INVALID_PARAMETER INVALID_PARAMETER}
1735
- * - {@link module:ERROR_CODE.OPERATION_FAILED OPERATION_FAILED}
1736
- * - {@link module:ERROR_CODE.OPERATION_ABORT OPERATION_ABORT}
1737
- * - {@link module:ERROR_CODE.ENV_NOT_SUPPORTED ENV_NOT_SUPPORTED}
1738
- * - {@link module:ERROR_CODE.SERVER_ERROR SERVER_ERROR}
1739
- * @example
1740
- * const trtc = TRTC.create();
1741
- * await trtc.enterRoom({ roomId: 8888, sdkAppId, userId, userSig });
1742
- */
1743
1699
  readonly PUBLISH_STATE_CHANGED: "publish-state-changed";
1744
1700
  readonly TRACK: "track";
1745
1701
  readonly STATISTICS: "statistics";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trtc-sdk-v5",
3
- "version": "5.7.1",
3
+ "version": "5.7.2-beta.0",
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.1",
3
+ "version": "5.7.2-beta.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>",
@@ -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;