trtc-sdk-v5 5.7.1-beta.4 → 5.7.1-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
@@ -1598,13 +1598,13 @@ declare interface TRTCEventTypes {
1598
1598
  *
1599
1599
  * Applicable scenarios: synchronization of lyrics, live answering questions, etc.
1600
1600
  *
1601
- * When to call: call after {@link TRTC#startLocalVideo trtc.startLocalVideo} successfully.
1601
+ * When to call: call after {@link TRTC#startLocalVideo trtc.startLocalVideo} or {@link TRTC#startLocalScreen trtc.startLocalScreen} when set 'toSubStream' option to true successfully.
1602
1602
  *
1603
1603
  * Note:
1604
1604
  * 1. Maximum 1KB(Byte) sent in a single call, maximum 30 calls per second, maximum 8KB sent per second.
1605
1605
  * 2. Currently only support Chrome 86+, Edge 86+, Opera 72+ browsers.
1606
1606
  * 3. Since SEI is sent along with video frames, there is a possibility that video frames may be lost, and therefore SEI may be lost as well. The number of times it can be sent can be increased within the frequency limit, and the business side needs to do message de-duplication on the receiving side.
1607
- * 4. SEI cannot be sent without trtc.startLocalVideo; SEI cannot be received without startRemoteVideo.
1607
+ * 4. SEI cannot be sent without trtc.startLocalVideo(or trtc.startLocalScreen when set 'toSubStream' option to true); SEI cannot be received without startRemoteVideo.
1608
1608
  * 5. Only H264 encoder is supported to send SEI.
1609
1609
  * 6. SEI sending and receiving is not supported for small streams for the time being.
1610
1610
  * @see {@link module:EVENT.SEI_MESSAGE TRTC.EVENT.SEI_MESSAGE}
@@ -1612,6 +1612,7 @@ declare interface TRTCEventTypes {
1612
1612
  * @param {ArrayBuffer} buffer SEI data to be sent
1613
1613
  * @param {Object=} options
1614
1614
  * @param {Number} options.seiPayloadType Set the SEI payload type. SDK uses the custom payloadType 243 by default, the business side can use this parameter to set the payloadType to the standard 5. When the business side uses the 5 payloadType, you need to follow the specification to make sure that the first 16 bytes of the `buffer` are the business side's customized uuid.
1615
+ * @param {Boolean} [options.toSubStream=false] Send SEI data to substream. Need call trtc.startLocalScreen first. Since v5.7.0+.
1615
1616
  * @example
1616
1617
  * // 1. enable SEI
1617
1618
  * const trtc = TRTC.create({
@@ -1761,7 +1762,7 @@ declare interface TRTCEventTypes {
1761
1762
  * | checkResult.detail.isVp8EncodeSupported | boolean | Whether the current browser supports VP8 encoding for uplink |
1762
1763
  * | checkResult.detail.isVp8DecodeSupported | boolean | Whether the current browser supports VP8 decoding for downlink |
1763
1764
  */
1764
- static isSupported(): Promise<any> | null;
1765
+ static isSupported(): Promise<any>;
1765
1766
  /**
1766
1767
  * Returns the list of camera devices
1767
1768
  * <br>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trtc-sdk-v5",
3
- "version": "5.7.1-beta.4",
3
+ "version": "5.7.1-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.7.1-beta.4",
3
+ "version": "5.7.1-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/basic-beauty",
3
- "version": "5.7.1-beta.4",
3
+ "version": "5.7.1-beta.6",
4
4
  "description": "TRTC Web SDK 5.x basic-beauty plugin",
5
5
  "main": "./basic-beauty.esm.js",
6
6
  "author": "longyuqi <longyuqi@tencent.com>",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/beauty",
3
- "version": "5.7.1-beta.4",
3
+ "version": "5.7.1-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.7.1-beta.4",
3
+ "version": "5.7.1-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.7.1-beta.4",
3
+ "version": "5.7.1-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>",