You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ts/Private/AgoraBase.ts
+1-1
Original file line number
Diff line number
Diff line change
@@ -1365,7 +1365,7 @@ export class VideoEncoderConfiguration {
1365
1365
*/
1366
1366
exportclassDataStreamConfig{
1367
1367
/**
1368
-
* Whether to synchronize the data packet with the published audio packet. true : Synchronize the data packet with the audio packet. false : Do not synchronize the data packet with the audio packet. When you set the data packet to synchronize with the audio, then if the data packet delay is within the audio delay, the SDK triggers the onStreamMessage callback when the synchronized audio packet is played out. Do not set this parameter as true if you need the receiver to receive the data packet immediately. Agora recommends that you set this parameter to true only when you need to implement specific functions, for example, lyric synchronization.
1368
+
* Whether to synchronize the data packet with the published audio packet. true : Synchronize the data packet with the audio packet. This setting is suitable for special scenarios such as lyrics synchronization. false : Do not synchronize the data packet with the audio packet. This setting is suitable for scenarios where data packets need to arrive at the receiving end immediately. When you set the data packet to synchronize with the audio, then if the data packet delay is within the audio delay, the SDK triggers the onStreamMessage callback when the synchronized audio packet is played out.
* Occurs when the playback of the local music file finishes.
1404
1404
*
1405
-
* Deprecated: Please use onAudioMixingStateChanged instead. After you call startAudioMixing to play a local music file, this callback occurs when the playback finishes. If the call startAudioMixing fails, the error code WARN_AUDIO_MIXING_OPEN_ERROR is returned.
1405
+
* Deprecated: Use onAudioMixingStateChanged instead. After you call startAudioMixing to play a local music file, this callback occurs when the playback finishes. If the call of startAudioMixing fails, the error code WARN_AUDIO_MIXING_OPEN_ERROR is returned.
* Occurs when the camera turns on and is ready to capture the video.
1755
1755
*
1756
-
* Deprecated: Please use LocalVideoStreamStateCapturing (1) in onLocalVideoStateChanged instead. This callback indicates that the camera has been successfully turned on and you can start to capture video.
1756
+
* Deprecated: Use LocalVideoStreamStateCapturing (1) in onLocalVideoStateChanged instead. This callback indicates that the camera has been successfully turned on and you can start to capture video.
* For the recipient:the ID of the remote user who sent the Metadata.
2644
-
* Ignore it for sender.
2643
+
* For the recipient: The ID of the remote user who sent the Metadata.
2644
+
* For the sender: Ignore it.
2645
2645
*/
2646
2646
uid?: number;
2647
2647
/**
2648
-
* Buffer size for received or sent Metadata.
2648
+
* The buffer size of the sent or received Metadata.
2649
2649
*/
2650
2650
size?: number;
2651
2651
/**
2652
-
* The buffer address of the received or sent Metadata.
2652
+
* The buffer address of the sent or received Metadata.
2653
2653
*/
2654
2654
buffer?: Uint8Array;
2655
2655
/**
@@ -3140,28 +3140,7 @@ export abstract class IRtcEngine {
3140
3140
abstractstopEchoTest(): number;
3141
3141
3142
3142
/**
3143
-
* Enables or disables multi-camera capture.
3144
-
*
3145
-
* In scenarios where there are existing cameras to capture video, Agora recommends that you use the following steps to capture and publish video with multiple cameras:
3146
-
* Call this method to enable multi-channel camera capture.
3147
-
* Call startPreview to start the local video preview.
3148
-
* Call startCameraCapture, and set sourceType to start video capture with the second camera.
3149
-
* Call joinChannelEx, and set publishSecondaryCameraTrack to true to publish the video stream captured by the second camera in the channel. If you want to disable multi-channel camera capture, use the following steps:
3150
-
* Call stopCameraCapture.
3151
-
* Call this method with enabled set to false. You can call this method before and after startPreview to enable multi-camera capture:
3152
-
* If it is enabled before startPreview, the local video preview shows the image captured by the two cameras at the same time.
3153
-
* If it is enabled after startPreview, the SDK stops the current camera capture first, and then enables the primary camera and the second camera. The local video preview appears black for a short time, and then automatically returns to normal. When using this function, ensure that the system version is 13.0 or later. The minimum iOS device types that support multi-camera capture are as follows:
3154
-
* iPhone XR
3155
-
* iPhone XS
3156
-
* iPhone XS Max
3157
-
* iPad Pro 3rd generation and later
3158
-
*
3159
-
* @param enabled Whether to enable multi-camera video capture mode: true : Enable multi-camera capture mode; the SDK uses multiple cameras to capture video. false : Disable multi-camera capture mode; the SDK uses a single camera to capture video.
3160
-
* @param config Capture configuration for the second camera. See CameraCapturerConfiguration.
3161
-
*
3162
-
* @returns
3163
-
* 0: Success.
3164
-
* < 0: Failure.
3143
+
* @ignore
3165
3144
*/
3166
3145
abstractenableMultiCamera(
3167
3146
enabled: boolean,
@@ -4328,7 +4307,7 @@ export abstract class IRtcEngine {
4328
4307
/**
4329
4308
* Retrieves the playback position of the audio effect file.
4330
4309
*
4331
-
* Call this method after the playEffect method.
4310
+
* Call this method after playEffect.
4332
4311
*
4333
4312
* @param soundId The audio effect ID. The ID of each audio effect file is unique.
4334
4313
*
@@ -5586,6 +5565,8 @@ export abstract class IRtcEngine {
5586
5565
/**
5587
5566
* Stops screen capture.
5588
5567
*
5568
+
* After calling startScreenCaptureByWindowId or startScreenCaptureByDisplayId to start screen capture, call this method to stop screen capture.
5569
+
*
5589
5570
* @returns
5590
5571
* 0: Success.
5591
5572
* < 0: Failure.
@@ -6680,7 +6661,7 @@ export abstract class IRtcEngine {
6680
6661
*
6681
6662
* If the metadata is sent successfully, the SDK triggers the onMetadataReceived callback on the receiver.
6682
6663
*
6683
-
* @param metadata Media metadata See Metadata.
6664
+
* @param metadata Media metadata. See Metadata.
6684
6665
* @param sourceType The type of the video source. See VideoSourceType.
0 commit comments