trtc-sdk-v5 5.6.3-beta.4 → 5.6.3-beta.6

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
@@ -1775,8 +1775,8 @@ declare interface TRTCEventTypes {
1775
1775
  * <br>
1776
1776
  * **Note**
1777
1777
  * - This interface does not support use under the http protocol, please use the https protocol to deploy your website. {@link https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia#Privacy_and_security Privacy and security}
1778
- * - Calling this method may temporarily open the camera to ensure that the camera list can be normally obtained, and the SDK will automatically stop the camera capture later.
1779
1778
  * - You can call the browser's native interface [getCapabilities](https://developer.mozilla.org/en-US/docs/Web/API/InputDeviceInfo/getCapabilities) to get the maximum resolutions supported by the camera, frame rate, mobile devices to distinguish between front and rear cameras, etc. This interface supports Chrome 67+, Edge 79+, Safari 17+, Opera 54+.
1779
+ * @param {boolean} [requestPermission=true] `Since v5.6.3`. Whether to request permission to use the camera. If requestPermission is true, calling this method may temporarily open the camera to ensure that the camera list can be normally obtained, and the SDK will automatically stop the camera capture later.
1780
1780
  * @example
1781
1781
  * const cameraList = await TRTC.getCameraList();
1782
1782
  * if (cameraList[0] && cameraList[0].getCapabilities) {
@@ -1792,14 +1792,14 @@ declare interface TRTCEventTypes {
1792
1792
  * }
1793
1793
  * @returns {Promise.<MediaDeviceInfo[]>} Promise returns an array of {@link https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo|MediaDeviceInfo}
1794
1794
  */
1795
- static getCameraList(): Promise<DeviceInfo[]>;
1795
+ static getCameraList(requestPermission?: boolean): Promise<DeviceInfo[]>;
1796
1796
  /**
1797
1797
  * Returns the list of microphone devices
1798
1798
  * <br>
1799
1799
  * **Note**
1800
1800
  * - This interface does not support use under the http protocol, please use the https protocol to deploy your website. {@link https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia#Privacy_and_security Privacy and security}
1801
- * - Calling this method may temporarily open the microphone to ensure that the microphone list can be normally obtained, and the SDK will automatically stop the microphone capture later.
1802
1801
  * - You can call the browser's native interface [getCapabilities](https://developer.mozilla.org/en-US/docs/Web/API/InputDeviceInfo/getCapabilities) to get information about the microphone's capabilities, e.g. the maximum number of channels supported, etc. This interface supports Chrome 67+, Edge 79+, Safari 17+, Opera 54+.
1802
+ * @param {boolean} [requestPermission=true] `Since v5.6.3`. Whether to request permission to use the microphone. If requestPermission is true, calling this method may temporarily open the microphone to ensure that the microphone list can be normally obtained, and the SDK will automatically stop the microphone capture later.
1803
1803
  * @example
1804
1804
  * const microphoneList = await TRTC.getMicrophoneList();
1805
1805
  * if (microphoneList[0] && microphoneList[0].getCapabilities) {
@@ -1808,14 +1808,14 @@ declare interface TRTCEventTypes {
1808
1808
  * }
1809
1809
  * @returns {Promise.<MediaDeviceInfo[]>} Promise returns an array of {@link https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo|MediaDeviceInfo}
1810
1810
  */
1811
- static getMicrophoneList(): Promise<DeviceInfo[]>;
1811
+ static getMicrophoneList(requestPermission?: boolean): Promise<DeviceInfo[]>;
1812
1812
  /**
1813
- * Returns the list of speaker devices
1813
+ * Returns the list of speaker devices. Only support PC browser, not support mobile browser.
1814
1814
  * <br>
1815
- * Calling this method may temporarily open the microphone to ensure that the speaker list can be normally obtained, and the SDK will automatically release the microphone capture later.
1815
+ * @param {boolean} [requestPermission=true] `Since v5.6.3`. Whether to request permission to use the microphone. If requestPermission is true, calling this method may temporarily open the microphone to ensure that the microphone list can be normally obtained, and the SDK will automatically stop the microphone capture later.
1816
1816
  * @returns {Promise.<MediaDeviceInfo[]>} Promise returns an array of {@link https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo|MediaDeviceInfo}
1817
1817
  */
1818
- static getSpeakerList(): Promise<DeviceInfo[]>;
1818
+ static getSpeakerList(requestPermission?: boolean): Promise<DeviceInfo[]>;
1819
1819
  /**
1820
1820
  * Set the current speaker for audio playback
1821
1821
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trtc-sdk-v5",
3
- "version": "5.6.3-beta.4",
3
+ "version": "5.6.3-beta.6",
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.6.3-beta.4",
3
+ "version": "5.6.3-beta.6",
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>",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/beauty",
3
- "version": "5.6.3-beta.4",
3
+ "version": "5.6.3-beta.6",
4
4
  "description": "TRTC Web SDK 5.x beauty plugin",
5
5
  "main": "./beauty.esm.js",
6
6
  "author": "longyuqi <longyuqi@tencent.com>",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/virtual-background",
3
- "version": "5.6.3-beta.4",
3
+ "version": "5.6.3-beta.6",
4
4
  "description": "TRTC Web SDK 5.x virtual background plugin",
5
5
  "main": "./virtual-background.esm.js",
6
6
  "author": "longyuqi <longyuqi@tencent.com>",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/watermark",
3
- "version": "5.6.3-beta.4",
3
+ "version": "5.6.3-beta.6",
4
4
  "description": "TRTC Web SDK 5.x watermark plugin",
5
5
  "main": "./watermark.esm.js",
6
6
  "author": "longyuqi <longyuqi@tencent.com>",