trtc-sdk-v5 5.7.1-beta.6 → 5.7.1-beta.8
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 +22 -8
- package/package.json +1 -1
- package/plugins/cdn-streaming/package.json +1 -1
- 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/watermark/package.json +1 -1
- package/trtc.esm.js +22 -22
- package/trtc.js +1 -1
package/index.d.ts
CHANGED
|
@@ -470,8 +470,7 @@ declare const TRTCEvent: {
|
|
|
470
470
|
/**
|
|
471
471
|
* Remote user enters the room event.
|
|
472
472
|
*
|
|
473
|
-
* - In `
|
|
474
|
-
* - In `live` mode, only the anchor has the notification of entering and exiting the room, and the audience does not have the notification of entering and exiting the room. The audience can receive the notification of entering and exiting the room of the anchor.
|
|
473
|
+
* - In `live` mode, only the anchor has the notification of entering and leaving the room, and the audience does not have the notification of entering and leaving the room. The audience can receive the notification of entering and leaving the room of the anchor.
|
|
475
474
|
* @default 'remote-user-enter'
|
|
476
475
|
* @memberof module:EVENT
|
|
477
476
|
* @example
|
|
@@ -484,8 +483,7 @@ declare const TRTCEvent: {
|
|
|
484
483
|
/**
|
|
485
484
|
* Remote user exits the room event.
|
|
486
485
|
*
|
|
487
|
-
* - In `
|
|
488
|
-
* - In `live` mode, only the anchor has the notification of entering and exiting the room, and the audience does not have the notification of entering and exiting the room. The audience can receive the notification of entering and exiting the room of the anchor.
|
|
486
|
+
* - In `live` mode, only the anchor has the notification of entering and leaving the room, and the audience does not have the notification of entering and leaving the room. The audience can receive the notification of entering and leaving the room of the anchor.
|
|
489
487
|
* @default 'remote-user-exit'
|
|
490
488
|
* @memberof module:EVENT
|
|
491
489
|
* @example
|
|
@@ -580,6 +578,19 @@ declare const TRTCEvent: {
|
|
|
580
578
|
* trtc.enableAudioVolumeEvaluation(1000);
|
|
581
579
|
*/
|
|
582
580
|
readonly AUDIO_VOLUME: "audio-volume";
|
|
581
|
+
/**
|
|
582
|
+
* @description pcm event<br>
|
|
583
|
+
* **Note**
|
|
584
|
+
* - When start listen this event, will get 40ms pcm(float32) from microphone every time.
|
|
585
|
+
* @default 'audio-frame'
|
|
586
|
+
* @memberof module:EVENT
|
|
587
|
+
* @example
|
|
588
|
+
* trtc.on(TRTC.EVENT.AUDIO_FRAME, event => {
|
|
589
|
+
* console.log(event.data)
|
|
590
|
+
* });
|
|
591
|
+
*
|
|
592
|
+
*/
|
|
593
|
+
readonly AUDIO_FRAME: "audio-frame";
|
|
583
594
|
/**
|
|
584
595
|
* @description Network quality statistics data event, which starts to be counted after entering the room and triggers every two seconds. This data reflects the network quality of your local uplink and downlink.
|
|
585
596
|
* - The uplink network quality (uplinkNetworkQuality) refers to the network situation of uploading local streams (uplink connection network quality from SDK to Tencent Cloud)
|
|
@@ -834,6 +845,9 @@ declare interface TRTCEventTypes {
|
|
|
834
845
|
userId: string;
|
|
835
846
|
streamType: TRTCStreamType;
|
|
836
847
|
}];
|
|
848
|
+
[TRTCEvent.AUDIO_FRAME]: [{
|
|
849
|
+
data: Float32Array;
|
|
850
|
+
}];
|
|
837
851
|
[TRTCEvent.AUDIO_VOLUME]: [{
|
|
838
852
|
result: {
|
|
839
853
|
userId: string;
|
|
@@ -1598,13 +1612,13 @@ declare interface TRTCEventTypes {
|
|
|
1598
1612
|
*
|
|
1599
1613
|
* Applicable scenarios: synchronization of lyrics, live answering questions, etc.
|
|
1600
1614
|
*
|
|
1601
|
-
* When to call: call after {@link TRTC#startLocalVideo trtc.startLocalVideo}
|
|
1615
|
+
* When to call: call after {@link TRTC#startLocalVideo trtc.startLocalVideo} successfully.
|
|
1602
1616
|
*
|
|
1603
1617
|
* Note:
|
|
1604
1618
|
* 1. Maximum 1KB(Byte) sent in a single call, maximum 30 calls per second, maximum 8KB sent per second.
|
|
1605
1619
|
* 2. Currently only support Chrome 86+, Edge 86+, Opera 72+ browsers.
|
|
1606
1620
|
* 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
|
|
1621
|
+
* 4. SEI cannot be sent without trtc.startLocalVideo; SEI cannot be received without startRemoteVideo.
|
|
1608
1622
|
* 5. Only H264 encoder is supported to send SEI.
|
|
1609
1623
|
* 6. SEI sending and receiving is not supported for small streams for the time being.
|
|
1610
1624
|
* @see {@link module:EVENT.SEI_MESSAGE TRTC.EVENT.SEI_MESSAGE}
|
|
@@ -1612,7 +1626,6 @@ declare interface TRTCEventTypes {
|
|
|
1612
1626
|
* @param {ArrayBuffer} buffer SEI data to be sent
|
|
1613
1627
|
* @param {Object=} options
|
|
1614
1628
|
* @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+.
|
|
1616
1629
|
* @example
|
|
1617
1630
|
* // 1. enable SEI
|
|
1618
1631
|
* const trtc = TRTC.create({
|
|
@@ -1685,6 +1698,7 @@ declare interface TRTCEventTypes {
|
|
|
1685
1698
|
readonly REMOTE_VIDEO_AVAILABLE: "remote-video-available";
|
|
1686
1699
|
readonly REMOTE_VIDEO_UNAVAILABLE: "remote-video-unavailable";
|
|
1687
1700
|
readonly AUDIO_VOLUME: "audio-volume";
|
|
1701
|
+
readonly AUDIO_FRAME: "audio-frame";
|
|
1688
1702
|
readonly NETWORK_QUALITY: "network-quality";
|
|
1689
1703
|
readonly CONNECTION_STATE_CHANGED: "connection-state-changed";
|
|
1690
1704
|
readonly AUDIO_PLAY_STATE_CHANGED: "audio-play-state-changed";
|
|
@@ -1762,7 +1776,7 @@ declare interface TRTCEventTypes {
|
|
|
1762
1776
|
* | checkResult.detail.isVp8EncodeSupported | boolean | Whether the current browser supports VP8 encoding for uplink |
|
|
1763
1777
|
* | checkResult.detail.isVp8DecodeSupported | boolean | Whether the current browser supports VP8 decoding for downlink |
|
|
1764
1778
|
*/
|
|
1765
|
-
static isSupported(): Promise<any
|
|
1779
|
+
static isSupported(): Promise<any> | null;
|
|
1766
1780
|
/**
|
|
1767
1781
|
* Returns the list of camera devices
|
|
1768
1782
|
* <br>
|
package/package.json
CHANGED