IRtcEngineEx

This interface class contains multi-channel methods.

Inherited from IRtcEngine.

AddVideoWatermarkEx

Adds a watermark image to the local video.

UFUNCTION(BlueprintCallable, Category = "Agora|IRtcEngine")
	int AddVideoWatermarkEx(const FString& watermarkUrl, const FWatermarkOptions& options, const FRtcConnection& connection);

Details

This method adds a PNG watermark image to the local video in the live streaming. Once the watermark image is added, all the audience in the channel (CDN audience included), and the capturing device can see and capture it. The Agora SDK supports adding only one watermark image onto a local video or CDN live stream. The newly added watermark image replaces the previous one.

The watermark coordinates are dependent on the settings in the SetVideoEncoderConfigurationEx method:
  • If the orientation mode of the encoding video (EORIENTATION_MODE) is fixed landscape mode or the adaptive landscape mode, the watermark uses the landscape orientation.
  • If the orientation mode of the encoding video (EORIENTATION_MODE) is fixed portrait mode or the adaptive portrait mode, the watermark uses the portrait orientation.
  • When setting the watermark position, the region must be less than the dimensions set in the SetVideoEncoderConfigurationEx method; otherwise, the watermark image will be cropped.
Attention:
  • Ensure that you have called EnableVideo before calling this method.
  • This method supports adding a watermark image in the PNG file format only. Supported pixel formats of the PNG image are RGBA, RGB, Palette, Gray, and Alpha_gray.
  • If the dimensions of the PNG image differ from your settings in this method, the image will be cropped or zoomed to conform to your settings.
  • If you have enabled the local video preview by calling the StartPreview method, you can use the visibleInPreview member to set whether or not the watermark is visible in the preview.
  • If you have enabled the mirror mode for the local video, the watermark on the local video is also mirrored. To avoid mirroring the watermark, Agora recommends that you do not use the mirror and watermark functions for the local video at the same time. You can implement the watermark function in your application layer.

Parameters

watermarkUrl
The local file path of the watermark image to be added. This method supports adding a watermark image from the local absolute or relative file path.
options
The options of the watermark image to be added. See FWatermarkOptions.
connection
The connection information. See FRtcConnection.

Returns

  • 0: Success.
  • < 0: Failure.

AdjustUserPlaybackSignalVolumeEx

Adjusts the playback signal volume of a specified remote user.

UFUNCTION(BlueprintCallable, Category = "Agora|IRtcEngine")
	int AdjustUserPlaybackSignalVolumeEx(int64 uid, int volume, const FRtcConnection& connection);

You can call this method to adjust the playback volume of a specified remote user. To adjust the playback volume of different remote users, call the method as many times, once for each remote user.

Call timing

Call this method after JoinChannelEx.

Restrictions

None.

Parameters

uid
The user ID of the remote user.
volume
The volume of the user. The value range is [0,400].
  • 0: Mute.
  • 100: (Default) The original volume.
  • 400: Four times the original volume (amplifying the audio signals by four times).
connection
The connection information. See FRtcConnection.

Returns

  • 0: Success.
  • < 0: Failure.

ClearVideoWatermarkEx

Removes the watermark image from the video stream.

UFUNCTION(BlueprintCallable, Category = "Agora|IRtcEngine")
	int ClearVideoWatermarkEx(const FRtcConnection& connection);

Parameters

connection
The connection information. See FRtcConnection.

Returns

  • 0: Success.
  • < 0: Failure.

CreateDataStreamEx

Creates a data stream.

UFUNCTION(BlueprintCallable, Category = "Agora|IRtcEngine")
	int CreateDataStreamEx(int& streamId, const FDataStreamConfig& config, const FRtcConnection& connection);

Call timing

Call this method after JoinChannelEx.

Restrictions

Each user can create up to five data streams during the lifecycle of IRtcEngine. The data stream will be destroyed when leaving the channel, and the data stream needs to be recreated if needed.

Parameters

streamId
An output parameter; the ID of the data stream created.
config
The configurations for the data stream. See FDataStreamConfig.
connection
The connection information. See FRtcConnection.

Returns

  • 0: The data stream is successfully created.
  • < 0: Failure.

EnableAudioVolumeIndicationEx

Enables the reporting of users' volume indication.

UFUNCTION(BlueprintCallable, Category = "Agora|IRtcEngine")
	int EnableAudioVolumeIndicationEx(int interval, int smooth, bool reportVad, const FRtcConnection& connection);

This method enables the SDK to regularly report the volume information to the app of the local user who sends a stream and remote users (three users at most) whose instantaneous volumes are the highest.

Call timing

Call this method after JoinChannelEx.

Restrictions

None.

Parameters

interval
Sets the time interval between two consecutive volume indications:
  • ≤ 0: Disables the volume indication.
  • > 0: Time interval (ms) between two consecutive volume indications. Ensure this parameter is set to a value greater than 10, otherwise you will not receive the OnAudioVolumeIndication callback. Agora recommends that this value is set as greater than 100.
smooth
The smoothing factor that sets the sensitivity of the audio volume indicator. The value ranges between 0 and 10. The recommended value is 3. The greater the value, the more sensitive the indicator.
reportVad
  • true: Enables the voice activity detection of the local user. Once it is enabled, the vad parameter of the OnAudioVolumeIndication callback reports the voice activity status of the local user.
  • false: (Default) Disables the voice activity detection of the local user. Once it is disabled, the vad parameter of the OnAudioVolumeIndication callback does not report the voice activity status of the local user, except for the scenario where the engine automatically detects the voice activity of the local user.
connection
The connection information. See FRtcConnection.

Returns

  • 0: Success.
  • < 0: Failure.

EnableContentInspectEx

Enables or disables video screenshot and upload.

UFUNCTION(BlueprintCallable, Category = "Agora|IRtcEngine")
	int EnableContentInspectEx(bool enabled, const FContentInspectConfig& config, const FRtcConnection& connection);

This method can take screenshots for multiple video streams and upload them. When video screenshot and upload function is enabled, the SDK takes screenshots and uploads videos sent by local users based on the type and frequency of the module you set in FContentInspectConfig. After video screenshot and upload, the Agora server sends the callback notification to your app server in HTTPS requests and sends all screenshots to the third-party cloud storage service.

Call timing

This method can be called either before or after joining the channel.

Restrictions

Before calling this method, ensure that you have contacted technical support to activate the video screenshot upload service.

Parameters

enabled
Whether to enalbe video screenshot and upload:
  • true: Enables video screenshot and upload.
  • false: Disables video screenshot and upload.
config
Screenshot and upload configuration. See FContentInspectConfig.
Note: When the video moderation module is set to video moderation via Agora self-developed extension(CONTENT_INSPECT_SUPERVISION), the video screenshot and upload dynamic library libagora_content_inspect_extension.dll is required. Deleting this library disables the screenshot and upload feature.
connection
The connection information. See FRtcConnection.

Returns

  • 0: Success.
  • < 0: Failure.

EnableDualStreamModeEx

Enables or disables dual-stream mode on the sender side.

UFUNCTION(BlueprintCallable, Category = "Agora|IRtcEngine")
	int EnableDualStreamModeEx(bool enabled, const FSimulcastStreamConfig& streamConfig, const FRtcConnection& connection);

Details

Deprecated:
This method is deprecated as of v4.2.0. Use SetDualStreamModeEx instead.
You can call this method to enable or disable the dual-stream mode on the publisher side. Dual streams are a pairing of a high-quality video stream and a low-quality video stream:
  • High-quality video stream: High bitrate, high resolution.
  • Low-quality video stream: Low bitrate, low resolution.

After you enable dual-stream mode, you can call SetRemoteVideoStreamType to choose to receive either the high-quality video stream or the low-quality video stream on the subscriber side.

Note: This method is applicable to all types of streams from the sender, including but not limited to video streams collected from cameras, screen sharing streams, and custom-collected video streams.

Parameters

enabled
Whether to enable dual-stream mode:
  • true: Enable dual-stream mode.
  • false: (Default) Disable dual-stream mode.
streamConfig
The configuration of the low-quality video stream. See FSimulcastStreamConfig.
Note: When setting mode to DISABLE_SIMULCAST_STREAM, setting streamConfig will not take effect.
connection
The connection information. See FRtcConnection.

Returns

  • 0: Success.
  • < 0: Failure.

EnableEncryptionEx

Enables or disables the built-in encryption.

UFUNCTION(BlueprintCallable, Category = "Agora|IRtcEngine")
	int EnableEncryptionEx(const FRtcConnection& connection, bool enabled, const FEncryptionConfig& config);

After the user leaves the channel, the SDK automatically disables the built-in encryption. To enable the built-in encryption, call this method before the user joins the channel again.

Applicable scenarios

Scenarios with higher security requirements.

Call timing

Call this method before joining a channel.

Restrictions

  • All users within the same channel must set the same encryption configurations when calling this method.
  • If you enable the built-in encryption, you cannot use the Media Push function.

Parameters

enabled
Whether to enable built-in encryption:
  • true: Enable the built-in encryption.
  • false: (Default) Disable the built-in encryption.
config
Built-in encryption configurations. See FEncryptionConfig.
connection
The connection information. See FRtcConnection.

Returns

  • 0: Success.
  • < 0: Failure.

EnableLoopbackRecordingEx

Enables loopback audio capturing.

UFUNCTION(BlueprintCallable, Category = "Agora|IRtcEngine")
	int EnableLoopbackRecordingEx(const FRtcConnection& connection, bool enabled, const FString& deviceName);

Details

If you enable loopback audio capturing, the output of the sound card is mixed into the audio stream sent to the other end.

Attention:
  • This method applies to the macOS and Windows only.
  • macOS does not support loopback audio capture of the default sound card. If you need to use this function, use a virtual sound card and pass its name to the deviceName parameter. Agora recommends using AgoraALD as the virtual sound card for audio capturing.
  • This method only supports using one sound card for audio capturing.

Parameters

connection
The connection information. See FRtcConnection.
enabled
Sets whether to enable loopback audio capture:
  • true: Enable loopback audio capturing.
  • false: (Default) Disable loopback audio capturing.
deviceName
  • macOS: The device name of the virtual sound card. The default value is set to NULL, which means using AgoraALD for loopback audio capturing.
  • Windows: The device name of the sound card. The default is set to NULL, which means the SDK uses the sound card of your device for loopback audio capturing.

Returns

  • 0: Success.
  • < 0: Failure.

GetCallIdEx

Gets the call ID with the connection ID.

UFUNCTION(BlueprintCallable, Category = "Agora|IRtcEngine")
	int GetCallIdEx( FString & callId, const FRtcConnection& connection);

When a user joins a channel on a client, a callId is generated to identify the call from the client. You can call this method to get the callId parameter, and pass it in when calling methods such as Rate and Complain.

Call timing

Call this method after joining a channel.

Restrictions

None.

Parameters

callId
Output parameter, the current call ID.
connection
The connection information. See FRtcConnection.

Returns

  • 0: Success.
  • < 0: Failure.

GetConnectionStateEx

Gets the current connection state of the SDK.

UFUNCTION(BlueprintCallable, Category = "Agora|IRtcEngine")
	ECONNECTION_STATE_TYPE GetConnectionStateEx(const FRtcConnection& connection);

Call timing

This method can be called either before or after joining the channel.

Restrictions

None.

Parameters

connection
The connection information. See FRtcConnection.

Returns

The current connection state. See ECONNECTION_STATE_TYPE.

JoinChannelEx

Joins a channel.

UFUNCTION(BlueprintCallable, Category = "Agora|IRtcEngine")
	int JoinChannelEx(const FString& token, const FRtcConnection& connection, const FChannelMediaOptions& options);

You can call this method multiple times to join more than one channel. If you want to join the same channel from different devices, ensure that the user IDs are different for all devices.

Applicable scenarios

This method can be called in scenarios involving multiple channels.

Call timing

Call this method after Initialize.

In a multi-camera capture scenario, you need to call the StartPreview method after calling this method to set the sourceType to VIDEO_SOURCE_CAMERA_SECONDARY, to ensure that the second camera captures normally.

Restrictions

If you are already in a channel, you cannot rejoin the channel with the same user ID.

Before joining a channel, ensure that the App ID you use to generate a token is the same as that you pass in the Initialize method; otherwise, you may fail to join the channel with the token.

Parameters

token
The token generated on your server for authentication. See .
Note:
  • (Recommended) If your project has enabled the security mode (using APP ID and Token for authentication), this parameter is required.
  • If you have only enabled the testing mode (using APP ID for authentication), this parameter is optional. You will automatically exit the channel 24 hours after successfully joining in.
  • If you need to join different channels at the same time or switch between channels, Agora recommends using a wildcard token so that you don't need to apply for a new token every time joining a channel. See Secure authentication with tokens.
connection
The connection information. See FRtcConnection.
options
The channel media options. See FChannelMediaOptions.
eventHandler
The callback class of IRtcEngineEx. See IRtcEngineEventHandler. You can get the callback events of multiple channels through the eventHandler object passed in this parameter.

Returns

  • 0: Success.
  • < 0: Failure.
    • -2: The parameter is invalid. For example, the token is invalid, the uid parameter is not set to an integer, or the value of a member in FChannelMediaOptions is invalid. You need to pass in a valid parameter and join the channel again.
    • -3: Fails to initialize the IRtcEngine object. You need to reinitialize the IRtcEngine object.
    • -7: The IRtcEngine object has not been initialized. You need to initialize the IRtcEngine object before calling this method.
    • -8: The internal state of the IRtcEngine object is wrong. The typical cause is that after calling StartEchoTest to start a call loop test, you call this method to join the channel without calling StopEchoTest to stop the test. You need to call StopEchoTest before calling this method.
    • -17: The request to join the channel is rejected. The typical cause is that the user is already in the channel. Agora recommends that you use the OnConnectionStateChanged callback to see whether the user is in the channel. Do not call this method to join the channel unless you receive the CONNECTION_STATE_DISCONNECTED(1) state.
    • -102: The channel name is invalid. You need to pass in a valid channel name in channelId to rejoin the channel.
    • -121: The user ID is invalid. You need to pass in a valid user ID in uid to rejoin the channel.

JoinChannelWithUserAccountEx

Join a channel using a user account and token, and set the media options.

UFUNCTION(BlueprintCallable, Category = "Agora|IRtcEngine")
	int JoinChannelWithUserAccountEx(const FString& token, const FString& channelId, const FString& userAccount, const FChannelMediaOptions& options);

Before calling this method, if you have not called RegisterLocalUserAccount to register a user account, when you call this method to join a channel, the SDK automatically creates a user account for you. Calling the RegisterLocalUserAccount method to register a user account, and then calling this method to join a channel can shorten the time it takes to enter the channel.

Once a user joins the channel, the user subscribes to the audio and video streams of all the other users in the channel by default, giving rise to usage and billings. If you want to stop subscribing to the media stream of other users, you can set the options parameter or call the corresponding mute method.

Attention: To ensure smooth communication, use the same parameter type to identify the user. For example, if a user joins the channel with a UID, then ensure all the other users use the UID too. The same applies to the user account. If a user joins the channel with the Agora Web SDK, ensure that the ID of the user is set to the same parameter type.

Call timing

Call this method after Initialize.

Restrictions

  • This method only supports users joining one channel at a time.
  • Users with different App IDs cannot call each other.
  • Before joining a channel, ensure that the App ID you use to generate a token is the same as that you pass in the Initialize method; otherwise, you may fail to join the channel with the token.

Parameters

token
The token generated on your server for authentication. See .
Note:
  • (Recommended) If your project has enabled the security mode (using APP ID and Token for authentication), this parameter is required.
  • If you have only enabled the testing mode (using APP ID for authentication), this parameter is optional. You will automatically exit the channel 24 hours after successfully joining in.
  • If you need to join different channels at the same time or switch between channels, Agora recommends using a wildcard token so that you don't need to apply for a new token every time joining a channel. See Secure authentication with tokens.
channelId
The channel name. This parameter signifies the channel in which users engage in real-time audio and video interaction. Under the premise of the same App ID, users who fill in the same channel ID enter the same channel for audio and video interaction. The string length must be less than 64 bytes. Supported characters (89 characters in total):
  • All lowercase English letters: a to z.
  • All uppercase English letters: A to Z.
  • All numeric characters: 0 to 9.
  • "!", "#", "$", "%", "&", "(", ")", "+", "-", ":", ";", "<", "=", ".", ">", "?", "@", "[", "]", "^", "_", "{", "}", "|", "~", ","
userAccount
The user account. This parameter is used to identify the user in the channel for real-time audio and video engagement. You need to set and manage user accounts yourself and ensure that each user account in the same channel is unique. The maximum length of this parameter is 255 bytes. Ensure that you set this parameter and do not set it as NULL. Supported characters are as follows(89 in total):
  • The 26 lowercase English letters: a to z.
  • The 26 uppercase English letters: A to Z.
  • All numeric characters: 0 to 9.
  • Space
  • "!", "#", "$", "%", "&", "(", ")", "+", "-", ":", ";", "<", "=", ".", ">", "?", "@", "[", "]", "^", "_", "{", "}", "|", "~", ","
options
The channel media options. See FChannelMediaOptions.
eventHandler
The callback class of IRtcEngineEx. See IRtcEngineEventHandler. You can get the callback events of multiple channels through the eventHandler object passed in this parameter.

Returns

  • 0: Success.
  • < 0: Failure.
    • -2: The parameter is invalid. For example, the token is invalid, the uid parameter is not set to an integer, or the value of a member in FChannelMediaOptions is invalid. You need to pass in a valid parameter and join the channel again.
    • -3: Fails to initialize the IRtcEngine object. You need to reinitialize the IRtcEngine object.
    • -7: The IRtcEngine object has not been initialized. You need to initialize the IRtcEngine object before calling this method.
    • -8: The internal state of the IRtcEngine object is wrong. The typical cause is that after calling StartEchoTest to start a call loop test, you call this method to join the channel without calling StopEchoTest to stop the test. You need to call StopEchoTest before calling this method.
    • -17: The request to join the channel is rejected. The typical cause is that the user is already in the channel. Agora recommends that you use the OnConnectionStateChanged callback to see whether the user is in the channel. Do not call this method to join the channel unless you receive the CONNECTION_STATE_DISCONNECTED(1) state.
    • -102: The channel name is invalid. You need to pass in a valid channel name in channelId to rejoin the channel.
    • -121: The user ID is invalid. You need to pass in a valid user ID in uid to rejoin the channel.

LeaveChannelEx

Sets channel options and leaves the channel.

UFUNCTION(BlueprintCallable, Category = "Agora|IRtcEngine")
	int LeaveChannelEx(const FRtcConnection& connection, const FLeaveChannelOptions& options);

After calling this method, the SDK terminates the audio and video interaction, leaves the current channel, and releases all resources related to the session.

After calling JoinChannelEx to join a channel, you must call this method to end the call, otherwise, the next call cannot be started.

Attention:

Applicable scenarios

This method can be called in scenarios involving multiple channels.

Call timing

Call this method after JoinChannelEx.

Restrictions

If you call Release immediately after calling this method, the SDK does not trigger the OnLeaveChannel callback.

Parameters

connection
The connection information. See FRtcConnection.
options

The options for leaving the channel. See FLeaveChannelOptions.

Note: This parameter only supports the stopMicrophoneRecording member in the FLeaveChannelOptions settings; setting other members does not take effect.

Returns

  • 0: Success.
  • < 0: Failure.

MuteAllRemoteAudioStreamsEx

Stops or resumes subscribing to the audio streams of all remote users.

UFUNCTION(BlueprintCallable, Category = "Agora|IRtcEngine")
	int MuteAllRemoteAudioStreamsEx(bool mute, const FRtcConnection& connection);

Details

After successfully calling this method, the local user stops or resumes subscribing to the audio streams of all remote users, including the ones join the channel subsequent to this call.

Attention:
  • Call this method after joining a channel.
  • If you do not want to subscribe the audio streams of remote users before joining a channel, you can set autoSubscribeAudio as false when calling JoinChannelWithOptions.

Parameters

mute
Whether to stop subscribing to the audio streams of all remote users:
  • true: Stops subscribing to the audio streams of all remote users.
  • false: (Default) Subscribes to the audio streams of all remote users by default.
connection
The connection information. See FRtcConnection.

Returns

  • 0: Success.
  • < 0: Failure.

MuteAllRemoteVideoStreamsEx

Stops or resumes subscribing to the video streams of all remote users.

UFUNCTION(BlueprintCallable, Category = "Agora|IRtcEngine")
	int MuteAllRemoteVideoStreamsEx(bool mute, const FRtcConnection& connection);

Details

After successfully calling this method, the local user stops or resumes subscribing to the video streams of all remote users, including all subsequent users.

Parameters

mute
Whether to stop subscribing to the video streams of all remote users.
  • true: Stop subscribing to the video streams of all remote users.
  • false: (Default) Subscribe to the video streams of all remote users by default.
connection
The connection information. See FRtcConnection.

Returns

  • 0: Success.
  • < 0: Failure.

MuteLocalAudioStreamEx

Stops or resumes publishing the local audio stream.

UFUNCTION(BlueprintCallable, Category = "Agora|IRtcEngine")
	int MuteLocalAudioStreamEx(bool mute, const FRtcConnection& connection);

Details

Attention: This method does not affect any ongoing audio recording, because it does not disable the audio capture device.

A successful call of this method triggers the OnUserMuteAudio and OnRemoteAudioStateChanged callbacks on the remote client.

Parameters

mute
Whether to stop publishing the local audio stream:
  • true: Stops publishing the local audio stream.
  • false: (Default) Resumes publishing the local audio stream.
connection
The connection information. See FRtcConnection.

Returns

  • 0: Success.
  • < 0: Failure.

MuteLocalVideoStreamEx

Stops or resumes publishing the local video stream.

UFUNCTION(BlueprintCallable, Category = "Agora|IRtcEngine")
	int MuteLocalVideoStreamEx(bool mute, const FRtcConnection& connection);

Details

A successful call of this method triggers the OnUserMuteVideo callback on the remote client.

Attention:
  • This method does not affect any ongoing video recording, because it does not disable the camera.

Parameters

mute
Whether to stop publishing the local video stream.
  • true: Stop publishing the local video stream.
  • false: (Default) Publish the local video stream.
connection
The connection information. See FRtcConnection.

Returns

  • 0: Success.
  • < 0: Failure.

MuteRemoteAudioStreamEx

Stops or resumes receiving the audio stream of a specified user.

UFUNCTION(BlueprintCallable, Category = "Agora|IRtcEngine")
	int MuteRemoteAudioStreamEx(int64 uid, bool mute, const FRtcConnection& connection);

Details

This method is used to stops or resumes receiving the audio stream of a specified user. You can call this method before or after joining a channel. If a user leaves a channel, the settings in this method become invalid.

Parameters

uid
The ID of the specified user.
mute

Whether to stop receiving the audio stream of the specified user:

  • true: Stop receiving the audio stream of the specified user.
  • false: (Default) Resume receiving the audio stream of the specified user.
connection
The connection information. See FRtcConnection.

Returns

  • 0: Success.
  • < 0: Failure.

MuteRemoteVideoStreamEx

Stops or resumes receiving the video stream of a specified user.

UFUNCTION(BlueprintCallable, Category = "Agora|IRtcEngine")
	int MuteRemoteVideoStreamEx(int64 uid, bool mute, const FRtcConnection& connection);

Details

This method is used to stop or resume receiving the video stream of a specified user. You can call this method before or after joining a channel. If a user leaves a channel, the settings in this method become invalid.

Parameters

uid

The user ID of the remote user.

mute
Whether to stop receiving the video stream of the specified user:
  • true: Stop receiving the video stream of the specified user.
  • false: (Default) Resume receiving the video stream of the specified user.
connection
The connection information. See FRtcConnection.

Returns

  • 0: Success.
  • < 0: Failure.

PauseAllChannelMediaRelayEx

Pauses the media stream relay to all target channels.

UFUNCTION(BlueprintCallable, Category = "Agora|IRtcEngine")
	int PauseAllChannelMediaRelayEx(const FRtcConnection& connection);

Details

After the cross-channel media stream relay starts, you can call this method to pause relaying media streams to all target channels; after the pause, if you want to resume the relay, call ResumeAllChannelMediaRelay.

Attention: Call this method after StartOrUpdateChannelMediaRelayEx.

Parameters

connection
The connection information. See FRtcConnection.

Returns

  • 0: Success.
  • < 0: Failure.
    • -5: The method call was rejected. There is no ongoing channel media relay.

ResumeAllChannelMediaRelayEx

Resumes the media stream relay to all target channels.

UFUNCTION(BlueprintCallable, Category = "Agora|IRtcEngine")
	int ResumeAllChannelMediaRelayEx(const FRtcConnection& connection);

Details

After calling the PauseAllChannelMediaRelayEx method, you can call this method to resume relaying media streams to all destination channels.

Attention: Call this method after PauseAllChannelMediaRelayEx.

Parameters

connection
The connection information. See FRtcConnection.

Returns

  • 0: Success.
  • < 0: Failure.
    • -5: The method call was rejected. There is no paused channel media relay.

SendCustomReportMessageEx

Agora supports reporting and analyzing customized messages.

UFUNCTION(BlueprintCallable, Category = "Agora|IRtcEngine")
	int SendCustomReportMessageEx(const FString& id, const FString& category, const FString& event, const FString& label, int value, const FRtcConnection& connection);

Details

Agora supports reporting and analyzing customized messages. This function is in the beta stage with a free trial. The ability provided in its beta test version is reporting a maximum of 10 message pieces within 6 seconds, with each message piece not exceeding 256 bytes and each string not exceeding 100 bytes. To try out this function, contact support@agora.io and discuss the format of customized messages with us.

SetDualStreamModeEx

Sets the dual-stream mode on the sender side.

UFUNCTION(BlueprintCallable, Category = "Agora|IRtcEngine")
	int SetDualStreamModeEx(FENUMWRAP_SIMULCAST_STREAM_MODE mode, const FSimulcastStreamConfig& streamConfig, const FRtcConnection& connection);

Details

The SDK defaults to enabling low-quality video stream adaptive mode (AUTO_SIMULCAST_STREAM) on the sender side, which means the sender does not actively send low-quality video stream. The receiving end with the role of the host can initiate a low-quality video stream request by calling SetRemoteVideoStreamTypeEx, and upon receiving the request, the sending end automatically starts sending low-quality stream.
  • If you want to modify this behavior, you can call this method and set mode to DISABLE_SIMULCAST_STREAM (never send low-quality video streams) or ENABLE_SIMULCAST_STREAM (always send low-quality video streams).
  • If you want to restore the default behavior after making changes, you can call this method again with mode set to AUTO_SIMULCAST_STREAM.
Note: The difference and connection between this method and EnableDualStreamModeEx is as follows:
  • When calling this method and setting mode to DISABLE_SIMULCAST_STREAM, it has the same effect as EnableDualStreamModeEx(false).
  • When calling this method and setting mode to ENABLE_SIMULCAST_STREAM, it has the same effect as EnableDualStreamModeEx(true).
  • Both methods can be called before and after joining a channel. If both methods are used, the settings in the method called later takes precedence.

Parameters

mode
The mode in which the video stream is sent. See FENUMWRAP_SIMULCAST_STREAM_MODE.
streamConfig
The configuration of the low-quality video stream. See FSimulcastStreamConfig.
Note: When setting mode to DISABLE_SIMULCAST_STREAM, setting streamConfig will not take effect.
connection
The connection information. See FRtcConnection.

Returns

  • 0: Success.
  • < 0: Failure.

SetRemoteVideoStreamTypeEx

Sets the video stream type to subscribe to.

UFUNCTION(BlueprintCallable, Category = "Agora|IRtcEngine")
	int SetRemoteVideoStreamTypeEx(int64 uid, EVIDEO_STREAM_TYPE streamType, const FRtcConnection& connection);

Details

Depending on the default behavior of the sender and the specific settings when calling SetDualStreamMode, the scenarios for the receiver calling this method are as follows:
  • The SDK enables low-quality video stream adaptive mode (AUTO_SIMULCAST_STREAM) on the sender side by default, meaning only the high-quality video stream is transmitted. Only the receiver with the role of the host can call this method to initiate a low-quality video stream request. Once the sender receives the request, it starts automatically sending the low-quality video stream. At this point, all users in the channel can call this method to switch to low-quality video stream subscription mode.
  • If the sender calls SetDualStreamMode and sets mode to DISABLE_SIMULCAST_STREAM (never send low-quality video stream), then calling this method will have no effect.
  • If the sender calls SetDualStreamMode and sets mode to ENABLE_SIMULCAST_STREAM (always send low-quality video stream), both the host and audience receivers can call this method to switch to low-quality video stream subscription mode.

The SDK will dynamically adjust the size of the corresponding video stream based on the size of the video window to save bandwidth and computing resources. The default aspect ratio of the low-quality video stream is the same as that of the high-quality video stream. According to the current aspect ratio of the high-quality video stream, the system will automatically allocate the resolution, frame rate, and bitrate of the low-quality video stream.

Attention:
  • If the publisher has already called SetDualStreamModeEx and set mode to DISABLE_SIMULCAST_STREAM (never send low-quality video stream), calling this method will not take effect, you should call SetDualStreamModeEx again on the sending end and adjust the settings.
  • Calling this method on the receiving end of the audience role will not take effect.

Parameters

uid
The user ID.
streamType

The video stream type, see EVIDEO_STREAM_TYPE.

connection
The connection information. See FRtcConnection.

Returns

  • 0: Success.
  • < 0: Failure.

SetRemoteVoicePositionEx

Sets the 2D position (the position on the horizontal plane) of the remote user's voice.

UFUNCTION(BlueprintCallable, Category = "Agora|IRtcEngine")
	int SetRemoteVoicePositionEx(int64 uid, float pan, float gain, const FRtcConnection& connection);

Details

This method sets the voice position and volume of a remote user.

When the local user calls this method to set the voice position of a remote user, the voice difference between the left and right channels allows the local user to track the real-time position of the remote user, creating a sense of space. This method applies to massive multiplayer online games, such as Battle Royale games.

Attention:
  • For the best voice positioning, Agora recommends using a wired headset.
  • Call this method after joining a channel.

Parameters

uid
The user ID of the remote user.
pan
The voice position of the remote user. The value ranges from -1.0 to 1.0:
  • -1.0: The remote voice comes from the left.
  • 0.0: (Default) The remote voice comes from the front.
  • 1.0: The remote voice comes from the right.
gain
The volume of the remote user. The value ranges from 0.0 to 100.0. The default value is 100.0 (the original volume of the remote user). The smaller the value, the lower the volume.
connection
The connection information. See FRtcConnection.

Returns

  • 0: Success.
  • < 0: Failure.

SetRemoteRenderModeEx

Sets the video display mode of a specified remote user.

UFUNCTION(BlueprintCallable, Category = "Agora|IRtcEngine")
	int SetRemoteRenderModeEx(int64 uid, ERENDER_MODE_TYPE renderMode, EVIDEO_MIRROR_MODE_TYPE mirrorMode, const FRtcConnection& connection);

Details

After initializing the video view of a remote user, you can call this method to update its rendering and mirror modes. This method affects only the video view that the local user sees.
Attention:
  • Call this method after initializing the remote view by calling the SetupRemoteVideo method.
  • During a call, you can call this method as many times as necessary to update the display mode of the video view of a remote user.

Parameters

uid
The user ID of the remote user.
renderMode

The video display mode of the remote user. See ERENDER_MODE_TYPE.

mirrorMode

The mirror mode of the remote user view. See EVIDEO_MIRROR_MODE_TYPE.

Attention: This parameter does not take effect. To achieve a mirror display effect, configure the mirror settings in Unreal Engine.
connection
The connection information. See FRtcConnection.

Returns

  • 0: Success.
  • < 0: Failure.

SetSubscribeAudioBlocklistEx

Set the blocklist of subscriptions for audio streams.

UFUNCTION(BlueprintCallable, Category = "Agora|IRtcEngine")
	int SetSubscribeAudioBlocklistEx(TArray<int64> uidList, int uidNumber, const FRtcConnection& connection);

Details

You can call this method to specify the audio streams of a user that you do not want to subscribe to.

Attention:
  • You can call this method either before or after joining a channel.
  • The blocklist is not affected by the setting in MuteRemoteAudioStream,MuteAllRemoteAudioStreams, and autoSubscribeAudio in FChannelMediaOptions.
  • Once the blocklist of subscriptions is set, it is effective even if you leave the current channel and rejoin the channel.
  • If a user is added in the allowlist and blocklist at the same time, only the blocklist takes effect.

Parameters

uidList

The user ID list of users that you do not want to subscribe to.

If you want to specify the audio streams of a user that you do not want to subscribe to, add the user ID in this list. If you want to remove a user from the blocklist, you need to call the SetSubscribeAudioBlocklist method to update the user ID list; this means you only add the uid of users that you do not want to subscribe to in the new user ID list.

uidNumber
The number of users in the user ID list.
connection
The connection information. See FRtcConnection.

Returns

  • 0: Success.
  • < 0: Failure.

SetSubscribeAudioAllowlistEx

Sets the allowlist of subscriptions for audio streams.

UFUNCTION(BlueprintCallable, Category = "Agora|IRtcEngine")
	int SetSubscribeAudioAllowlistEx(TArray<int64> uidList, int uidNumber, const FRtcConnection& connection);

Details

You can call this method to specify the audio streams of a user that you want to subscribe to.

Note:
  • You can call this method either before or after joining a channel.
  • The allowlist is not affected by the setting in MuteRemoteAudioStream, MuteAllRemoteAudioStreams and autoSubscribeAudio in FChannelMediaOptions.
  • Once the allowlist of subscriptions is set, it is effective even if you leave the current channel and rejoin the channel.
  • If a user is added in the allowlist and blocklist at the same time, only the blocklist takes effect.

Parameters

uidList

The user ID list of users that you want to subscribe to.

If you want to specify the audio streams of a user for subscription, add the user ID in this list. If you want to remove a user from the allowlist, you need to call the SetSubscribeAudioAllowlist method to update the user ID list; this means you only add the uid of users that you want to subscribe to in the new user ID list.

uidNumber
The number of users in the user ID list.
connection
The connection information. See FRtcConnection.

Returns

  • 0: Success.
  • < 0: Failure.

SetSubscribeVideoBlocklistEx

Set the blocklist of subscriptions for video streams.

UFUNCTION(BlueprintCallable, Category = "Agora|IRtcEngine")
	int SetSubscribeVideoBlocklistEx(TArray<int64> uidList, int uidNumber, const FRtcConnection& connection);

Details

You can call this method to specify the video streams of a user that you do not want to subscribe to.

Note:
  • You can call this method either before or after joining a channel.
  • The blocklist is not affected by the setting in MuteRemoteVideoStream, MuteAllRemoteVideoStreams and autoSubscribeAudio in FChannelMediaOptions.
  • Once the blocklist of subscriptions is set, it is effective even if you leave the current channel and rejoin the channel.
  • If a user is added in the allowlist and blocklist at the same time, only the blocklist takes effect.

Parameters

uidList

The user ID list of users that you do not want to subscribe to.

If you want to specify the video streams of a user that you do not want to subscribe to, add the user ID of that user in this list. If you want to remove a user from the blocklist, you need to call the SetSubscribeVideoBlocklist method to update the user ID list; this means you only add the uid of users that you do not want to subscribe to in the new user ID list.

uidNumber
The number of users in the user ID list.
connection
The connection information. See FRtcConnection.

Returns

  • 0: Success.
  • < 0: Failure.

SetSubscribeVideoAllowlistEx

Set the allowlist of subscriptions for video streams.

UFUNCTION(BlueprintCallable, Category = "Agora|IRtcEngine")
	int SetSubscribeVideoAllowlistEx(TArray<int64> uidList, int uidNumber, const FRtcConnection& connection);

Details

You can call this method to specify the video streams of a user that you want to subscribe to.

Note:
  • You can call this method either before or after joining a channel.
  • The allowlist is not affected by the setting in MuteRemoteVideoStream, MuteAllRemoteVideoStreams and autoSubscribeAudio in FChannelMediaOptions.
  • Once the allowlist of subscriptions is set, it is effective even if you leave the current channel and rejoin the channel.
  • If a user is added in the allowlist and blocklist at the same time, only the blocklist takes effect.

Parameters

uidList

The user ID list of users that you want to subscribe to.

If you want to specify the video streams of a user for subscription, add the user ID of that user in this list. If you want to remove a user from the allowlist, you need to call the SetSubscribeVideoAllowlist method to update the user ID list; this means you only add the uid of users that you want to subscribe to in the new user ID list.

uidNumber
The number of users in the user ID list.
connection
The connection information. See FRtcConnection.

Returns

  • 0: Success.
  • < 0: Failure.

SetupRemoteVideoEx

Initializes the video view of a remote user.

UFUNCTION(BlueprintCallable, Category = "Agora|IRtcEngine")
	int SetupRemoteVideoEx(const FVideoCanvas& canvas, const FRtcConnection& connection);

Details

This method initializes the video view of a remote stream on the local device. It affects only the video view that the local user sees. Call this method to bind the remote video stream to a video view and to set the rendering and mirror modes of the video view.

The application specifies the uid of the remote video in the FVideoCanvas method before the remote user joins the channel.

If the remote uid is unknown to the application, set it after the application receives the OnUserJoined callback. If the Video Recording function is enabled, the Video Recording Service joins the channel as a dummy client, causing other clients to also receive the onUserJoined callback. Do not bind the dummy client to the application view because the dummy client does not send any video streams.

To unbind the remote user from the view, set the view parameter to NULL.

Once the remote user leaves the channel, the SDK unbinds the remote user.

Attention:
  • To update the rendering or mirror mode of the remote video view during a call, use the SetRemoteRenderModeEx method.

Parameters

canvas

The remote video view settings. See FVideoCanvas.

connection
The connection information. See FRtcConnection.

Returns

  • 0: Success.
  • < 0: Failure.

SetVideoEncoderConfigurationEx

Sets the video encoder configuration.

UFUNCTION(BlueprintCallable, Category = "Agora|IRtcEngine")
	int SetVideoEncoderConfigurationEx(const FVideoEncoderConfiguration& config, const FRtcConnection& connection);

Sets the encoder configuration for the local video. Each configuration profile corresponds to a set of video parameters, including the resolution, frame rate, and bitrate.

Call timing

Call this method after JoinChannelEx.

Restrictions

The config specified in this method is the maximum value under ideal network conditions. If the video engine cannot render the video using the specified config due to unreliable network conditions, the parameters further down the list are considered until a successful configuration is found.

Parameters

config
Video profile. See FVideoEncoderConfiguration.
connection
The connection information. See FRtcConnection.

Returns

  • 0: Success.
  • < 0: Failure.

SendStreamMessageEx

Sends data stream messages.

UFUNCTION(BlueprintCallable, Category = "Agora|IRtcEngine")
	int SendStreamMessageEx(int streamId, const FString& data, const  FRtcConnection& connection);

Details

After calling CreateDataStreamEx, you can call this method to send data stream messages to all users in the channel.

The SDK has the following restrictions on this method:
  • Each user can have up to five data streams simultaneously.
  • Up to 60 packets can be sent per second in a data stream with each packet having a maximum size of 1 KB.
  • Up to 30 KB of data can be sent per second in a data stream.

A successful method call triggers the OnStreamMessage callback on the remote client, from which the remote user gets the stream message. A failed method call triggers the OnStreamMessageError callback on the remote client.

Attention:
  • Call this method after JoinChannelEx.
  • Ensure that you call CreateDataStreamEx to create a data channel before calling this method.
  • This method applies only to the COMMUNICATION profile or to the hosts in the LIVE_BROADCASTING profile. If an audience in the LIVE_BROADCASTING profile calls this method, the audience may be switched to a host.

Parameters

streamId
The data stream ID. You can get the data stream ID by calling CreateDataStreamEx.
data
The message to be sent.
length
The length of the data.
connection
The connection information. See FRtcConnection.

Returns

  • 0: Success.
  • < 0: Failure.

StartMediaRenderingTracingEx

Enables tracing the video frame rendering process.

UFUNCTION(BlueprintCallable, Category = "Agora|IRtcEngine")
	int StartMediaRenderingTracingEx(const FRtcConnection& connection);

Details

The SDK starts tracing the rendering status of the video frames in the channel from the moment this method is successfully called and reports information about the event through the OnVideoRenderingTracingResult callback.

Note:
  • By default, the SDK starts tracing the video rendering event automatically when the local user successfully joins the channel. You can call this method at an appropriate time according to the actual application scenario to customize the tracing process.
  • After the local user leaves the current channel, the SDK automatically resets the time point to the next time when the user successfully joins the channel.

Applicable scenarios

Agora recommends that you use this method in conjunction with the UI settings (such as buttons and sliders) in your app to improve the user experience. For example, call this method when the user clicks the Join Channel button, and then get the indicators in the video frame rendering process through the OnVideoRenderingTracingResult callback, so as to optimize the indicators accordingly.

Parameters

connection
The connection information. See FRtcConnection.

Returns

  • 0: Success.
  • < 0: Failure.

StartOrUpdateChannelMediaRelayEx

Starts relaying media streams across channels or updates channels for media relay.

UFUNCTION(BlueprintCallable, Category = "Agora|IRtcEngine")
	int StartOrUpdateChannelMediaRelayEx(const FChannelMediaRelayConfiguration& configuration, const FRtcConnection& connection);

Details

The first successful call to this method starts relaying media streams from the source channel to the destination channels. To relay the media stream to other channels, or exit one of the current media relays, you can call this method again to update the destination channels. This feature supports relaying media streams to a maximum of six destination channels.

After a successful method call, the SDK triggers the OnChannelMediaRelayStateChanged callback, and this callback returns the state of the media stream relay. Common states are as follows:
  • If the OnChannelMediaRelayStateChanged callback returns RELAY_STATE_RUNNING (2) and RELAY_OK (0), it means that the SDK starts relaying media streams from the source channel to the destination channel.
  • If the OnChannelMediaRelayStateChanged callback returns RELAY_STATE_FAILURE (3), an exception occurs during the media stream relay.
Attention:
  • Call this method after joining the channel.
  • This method takes effect only when you are a host in a live streaming channel.
  • The relaying media streams across channels function needs to be enabled by contacting technical support.
  • Agora does not support string user accounts in this API.

Parameters

configuration
The configuration of the media stream relay. See FChannelMediaRelayConfiguration.
connection
The connection information. See FRtcConnection.

Returns

  • 0: Success.
  • < 0: Failure.
    • -1: A general error occurs (no specified reason).
    • -2: The parameter is invalid.
    • -8: Internal state error. Probably because the user is not a broadcaster.

StartRtmpStreamWithTranscodingEx

Starts Media Push and sets the transcoding configuration.

UFUNCTION(BlueprintCallable, Category = "Agora|IRtcEngine")
	int StartRtmpStreamWithTranscodingEx(const FString& url, const FLiveTranscoding& transcoding, const FRtcConnection& connection);

Details

Agora recommends that you use the server-side Media Push function. For details, see Use RESTful API.

You can call this method to push a live audio-and-video stream to the specified CDN address and set the transcoding configuration. This method can push media streams to only one CDN address at a time, so if you need to push streams to multiple addresses, call this method multiple times.

After you call this method, the SDK triggers the OnRtmpStreamingStateChanged callback on the local client to report the state of the streaming.

Attention:
  • Ensure that you enable the Media Push service before using this function.
  • Call this method after joining a channel.
  • Only hosts in the LIVE_BROADCASTING profile can call this method.
  • If you want to retry pushing streams after a failed push, make sure to call StopRtmpStreamEx first, then call this method to retry pushing streams; otherwise, the SDK returns the same error code as the last failed push.

Parameters

url
The address of Media Push. The format is RTMP or RTMPS. The character length cannot exceed 1024 bytes. Special characters such as Chinese characters are not supported.
transcoding

The transcoding configuration for Media Push. See FLiveTranscoding.

connection
The connection information. See FRtcConnection.

Returns

  • 0: Success.
  • < 0: Failure.
    • -2: The URL or configuration of transcoding is invalid; check your URL and transcoding configurations.
    • -7: The SDK is not initialized before calling this method.
    • -19: The Media Push URL is already in use; use another URL instead.

StartRtmpStreamWithoutTranscodingEx

Starts pushing media streams to a CDN without transcoding.

UFUNCTION(BlueprintCallable, Category = "Agora|IRtcEngine")
	int StartRtmpStreamWithoutTranscodingEx(const FString& url, const FRtcConnection& connection);

Details

Agora recommends that you use the server-side Media Push function. For details, see Use RESTful API.

You can call this method to push an audio or video stream to the specified CDN address. This method can push media streams to only one CDN address at a time, so if you need to push streams to multiple addresses, call this method multiple times.

After you call this method, the SDK triggers the OnRtmpStreamingStateChanged callback on the local client to report the state of the streaming.

Attention:
  • Call this method after joining a channel.
  • Only hosts in the LIVE_BROADCASTING profile can call this method.
  • If you want to retry pushing streams after a failed push, make sure to call StopRtmpStream first, then call this method to retry pushing streams; otherwise, the SDK returns the same error code as the last failed push.

Parameters

url
The address of Media Push. The format is RTMP or RTMPS. The character length cannot exceed 1024 bytes. Special characters such as Chinese characters are not supported.
connection
The connection information. See FRtcConnection.

Returns

  • 0: Success.
  • < 0: Failure.
    • -2: The URL or configuration of transcoding is invalid; check your URL and transcoding configurations.
    • -7: The SDK is not initialized before calling this method.
    • -19: The Media Push URL is already in use; use another URL instead.

StopChannelMediaRelayEx

Stops the media stream relay. Once the relay stops, the host quits all the target channels.

UFUNCTION(BlueprintCallable, Category = "Agora|IRtcEngine")
	int StopChannelMediaRelayEx(const FRtcConnection& connection);

Details

After a successful method call, the SDK triggers the OnChannelMediaRelayStateChanged callback. If the callback reports RELAY_STATE_IDLE (0) and RELAY_OK (0), the host successfully stops the relay.

Attention: If the method call fails, the SDK triggers the OnChannelMediaRelayStateChanged callback with the RELAY_ERROR_SERVER_NO_RESPONSE (2) or RELAY_ERROR_SERVER_CONNECTION_LOST (8) status code. You can call the LeaveChannelWithOptions method to leave the channel, and the media stream relay automatically stops.

Parameters

connection
The connection information. See FRtcConnection.

Returns

  • 0: Success.
  • < 0: Failure.
    • -5: The method call was rejected. There is no ongoing channel media relay.

StopRtmpStreamEx

Stops pushing media streams to a CDN.

UFUNCTION(BlueprintCallable, Category = "Agora|IRtcEngine")
	int StopRtmpStreamEx(const FString& url, const FRtcConnection& connection);

Details

Agora recommends that you use the server-side Media Push function. For details, see Use RESTful API.

You can call this method to stop the live stream on the specified CDN address. This method can stop pushing media streams to only one CDN address at a time, so if you need to stop pushing streams to multiple addresses, call this method multiple times.

After you call this method, the SDK triggers the OnRtmpStreamingStateChanged callback on the local client to report the state of the streaming.

Parameters

url
The address of Media Push. The format is RTMP or RTMPS. The character length cannot exceed 1024 bytes. Special characters such as Chinese characters are not supported.

Returns

  • 0: Success.
  • < 0: Failure.

TakeSnapshotEx

Takes a snapshot of a video stream using connection ID.

UFUNCTION(BlueprintCallable, Category = "Agora|IRtcEngine")
	int TakeSnapshotEx(const FRtcConnection& connection, int64 uid, const FString& filePath);

This method takes a snapshot of a video stream from the specified user, generates a JPG image, and saves it to the specified path.

Call timing

Call this method after JoinChannelEx.

Restrictions

  • The method is asynchronous, and the SDK has not taken the snapshot when the method call returns.
  • When used for local video snapshots, this method takes a snapshot for the video streams specified in FChannelMediaOptions.
  • If the user's video has been preprocessed, for example, watermarked or beautified, the resulting snapshot includes the pre-processing effect.

Parameters

connection
The connection information. See FRtcConnection.
uid
The user ID. Set uid as 0 if you want to take a snapshot of the local user's video.
filePath
The local path (including filename extensions) of the snapshot. For example:
  • Windows: C:\Users\<user_name>\AppData\Local\Agora\<process_name>\example.jpg
  • iOS: /App Sandbox/Library/Caches/example.jpg
  • macOS: ~/Library/Logs/example.jpg
  • Android: /storage/emulated/0/Android/data/<package name>/files/example.jpg
Attention: Ensure that the path you specify exists and is writable.

Returns

  • 0: Success.
  • < 0: Failure.

UpdateChannelMediaOptionsEx

Updates the channel media options after joining the channel.

UFUNCTION(BlueprintCallable, Category = "Agora|IRtcEngine")
	int UpdateChannelMediaOptionsEx(const FChannelMediaOptions& options, const FRtcConnection& connection);

Parameters

options
The channel media options. See FChannelMediaOptions.
connection
The connection information. See FRtcConnection.

Returns

  • 0: Success.
  • < 0: Failure.
    • -2: The value of a member in FChannelMediaOptions is invalid. For example, the token or the user ID is invalid. You need to fill in a valid parameter.
    • -7: The IRtcEngine object has not been initialized. You need to initialize the IRtcEngine object before calling this method.
    • -8: The internal state of the IRtcEngine object is wrong. The possible reason is that the user is not in the channel. Agora recommends that you use the OnConnectionStateChanged callback to see whether the user is in the channel. If you receive the CONNECTION_STATE_DISCONNECTED (1) or CONNECTION_STATE_FAILED (5) state, the user is not in the channel. You need to call JoinChannelWithOptions to join a channel before calling this method.

UpdateRtmpTranscodingEx

Updates the transcoding configuration.

UFUNCTION(BlueprintCallable, Category = "Agora|IRtcEngine")
	int UpdateRtmpTranscodingEx(const FLiveTranscoding& transcoding, const FRtcConnection& connection);

Details

Agora recommends that you use the server-side Media Push function. For details, see Use RESTful API.

After you start pushing media streams to CDN with transcoding, you can dynamically update the transcoding configuration according to the scenario. The SDK triggers the OnTranscodingUpdated callback after the transcoding configuration is updated.

Parameters

transcoding

The transcoding configuration for Media Push. See FLiveTranscoding.

connection
The connection information. See FRtcConnection.

Returns

  • 0: Success.
  • < 0: Failure.