Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/ci/build/build_ios.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ echo short_version: $short_version
echo pwd: `pwd`
echo sdk_url: $sdk_url

export https_proxy=10.10.114.55:1080
export http_proxy=10.10.114.55:1080
export all_proxy=10.10.114.55:1080
export LANG=en_US.UTF-8

unzip_name=Agora_Native_SDK_for_iOS_FULL
Expand Down
3 changes: 0 additions & 3 deletions .github/ci/build/build_mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@ echo short_version: $short_version
echo pwd: `pwd`
echo sdk_url: $sdk_url

export https_proxy=10.10.114.55:1080
export http_proxy=10.10.114.55:1080
export all_proxy=10.10.114.55:1080
export LANG=en_US.UTF-8

unzip_name=Agora_Native_SDK_for_iOS_FULL
Expand Down
2 changes: 1 addition & 1 deletion Android/APIExample-Audio/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ android.nonFinalResIds=false
# read enable simple filter section on README first before set this flag to TRUE
simpleFilter = false

rtc_sdk_version = 4.7.0
rtc_sdk_version = 4.7.1
2 changes: 1 addition & 1 deletion Android/APIExample-Compose/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ kotlin.code.style=official
# thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true

rtc_sdk_version = 4.7.0
rtc_sdk_version = 4.7.1
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
#endif

#define INVALID_DISPLAY_ID (-2)
#define MAX_AUDIO_CHANNELS (8)

namespace agora {
namespace util {
Expand Down Expand Up @@ -294,6 +295,7 @@ enum CHANNEL_PROFILE_TYPE {

/**
* The channel types.
* @technical preview
*/
enum CHANNEL_TYPE {
/**
Expand Down Expand Up @@ -646,7 +648,8 @@ enum ERROR_CODE_TYPE {
*/
ERR_SIZE_TOO_LARGE = 114,
/**
* 115: The data bitrate exceeds 6 KB/s when calling the `sendStreamMessage` method.
* 115: The data bitrate exceeds the data stream bitrate limit when calling the `sendStreamMessage`
* method.
*/
ERR_BITRATE_LIMIT = 115,
/**
Expand Down Expand Up @@ -845,31 +848,45 @@ enum ERROR_CODE_TYPE {
ERR_VIDEOEFFECT_INVALID_BUNDLE_PATH = 1707,
/**
* 2007: Audio Device Module: An error occurs in starting the application loopback.
*
* @technical preview
*/
ERR_ADM_APPLICATION_LOOPBACK = 2007,
/**
* 2008: Audio Device Module: The application loopback was stopped unexpectedly, typically due to the application exiting or the user disabling loopback.
*
* @technical preview
*/
ERR_ADM_APPLICATION_LOOPBACK_STOPPED = 2008,
/**
* 2009: Audio Device Module: An error occurred while starting the system loopback.
* This may be due to system restrictions, device conflicts, or other internal errors.
*
* @technical preview
*/
ERR_ADM_SYSTEM_LOOPBACK = 2009,
/**
* 2010: Audio Device Module: The system loopback was stopped unexpectedly, typically due to the user disabling loopback or a system error occurred.
*
* @technical preview
*/
ERR_ADM_SYSTEM_LOOPBACK_STOPPED = 2010,
/**
* 2011: Audio Device Module: No permission to start the loopback.
*
* @technical preview
*/
ERR_ADM_LOOPBACK_NO_PERMISSION = 2011,
/**
* 2012: Audio Device Module: Silent detected in loopback.
*
* @technical preview
*/
ERR_ADM_LOOPBACK_SILENT_DETECTED = 2012,
/**
* 2013: Audio Device Module: Silent recovered in loopback.
*
* @technical preview
*/
ERR_ADM_LOOPBACK_SILENT_RECOVERED = 2013,
};
Expand Down Expand Up @@ -4561,13 +4578,16 @@ enum CONNECTION_STATE_TYPE {
*/
CONNECTION_STATE_RECONNECTING = 4,
/**
* 5: The SDK fails to connect to the Agora edge server or join the channel. This state indicates
* that the SDK stops trying to rejoin the channel. You must call `leaveChannel()` to leave the
* channel.
* - You can call `joinChannel(const char* token, const char* channelId, uid_t uid, const
* ChannelMediaOptions& options)` to rejoin the channel.
* - If the SDK is banned from joining the channel by the Agora edge server through the RESTful API,
* the SDK triggers the `onConnectionStateChanged` callback.
* 5: The SDK fails to connect to the Agora edge server or join the channel and stops reconnecting.
* The reason reported by `onConnectionStateChanged` can vary when the user is kicked by the
* server, the token expires, or authentication fails, but the recovery flow is the same:
* - For `joinChannel`, call `leaveChannel()`, wait until CONNECTION_STATE_DISCONNECTED(1) is
* reported, and then call `joinChannel` with a valid new token. If you do not leave the channel
* first, `joinChannel` returns ERR_JOIN_CHANNEL_REJECTED(-17).
* - For `joinChannelEx`, call `leaveChannelEx` for the corresponding `RtcConnection`, wait until
* that connection enters CONNECTION_STATE_DISCONNECTED(1), and then call `joinChannelEx` with a
* valid new token. To clear only that connection, use `leaveChannelEx`; calling `leaveChannel`
* leaves all joined channels.
*/
CONNECTION_STATE_FAILED = 5,
};
Expand Down Expand Up @@ -6204,28 +6224,68 @@ struct AudioTrackConfig {
AudioTrackConfig() : enableLocalPlayback(true),enableAudioProcessing(false) {}
};

/** The type of loopback audio source mode
*/
/**
* The type of loopback audio source mode
*
* @technical preview
*/
enum LOOPBACK_AUDIO_TRACK_TYPE {
/**
/**
* 0: loopback the whole system
*/
LOOPBACK_SYSTEM = 0,
/**
/**
* 1: loopback the whole system exclude self
*/
LOOPBACK_SYSTEM_EXCLUDE_SELF = 1,
/**
/**
* 2: loopback the specific application
*/
LOOPBACK_APPLICATION = 2,
/**
/**
* 3: loopback the specific process
*/
LOOPBACK_PROCESS = 3,
};

/** Defines options for a custom loopback audio track. */
/** The volume information of an audio track. */
struct AudioTrackVolumeInfo {
/** The number of valid entries in levels. */
int channelCount;

/**
* The publish channel volumes in the range [0, 255]. Only the first channelCount entries are
* valid.
*/
int levels[MAX_AUDIO_CHANNELS];
};

/** The per-track observer for audio tracks. */
class IAudioTrackObserver {
public:
virtual ~IAudioTrackObserver() {}

/**
* Occurs when the publish channel volumes of an audio track are available.
*
* The SDK invokes this callback at the interval configured by
* IMediaEngine::enableAudioTrackVolumeIndication().
*
* @param trackId The audio track ID.
* @param volumeInfo The volume information. This pointer is valid only for the duration of the
* callback.
*/
virtual void onAudioTrackVolumeIndication(track_id_t trackId, const AudioTrackVolumeInfo* volumeInfo) {
(void)trackId;
(void)volumeInfo;
}
};

/**
* Defines options for a custom loopback audio track.
*
* @technical preview
*/
struct LoopbackAudioTrackConfig {
/**
* Specifies the loopback source type.
Expand All @@ -6235,7 +6295,7 @@ struct LoopbackAudioTrackConfig {
LOOPBACK_AUDIO_TRACK_TYPE loopbackType;

/**
* Initial playback volume for the loopback audio, valid in the range [0, 400].
* Initial publish volume for the loopback audio, valid in the range [0, 400].
* 0: mute; 100: original volume; 400: maximum amplified volume.
* Default is 100.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,8 @@ class IAgoraService {
/**
* Creates a local audio track object with the recording device source and returns the pointer.
*
* @technical preview
*
* Once created, this track can be used to send audio data got from a recording device.
* @param audioSource The pointer to the recording device source. See \ref agora::rtc::IRecordingDeviceSource "IRecordingDeviceSource".
* @param enableAec Whether enable audio echo cancellation for loopback recording. If loopback
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,25 @@ class ILocalAudioTrackObserver {
/**
* Occurs when the error of a local audio track occurs.
*
* @technical preview
*
* @param errorCode The error code of the local audio track.
*/
virtual void onLocalAudioTrackError(int errorCode) = 0;

/**
* Occurs when the per-channel publish volume of a local audio track is available.
*
* @technical preview
*
* This callback is invoked only after volume indication is enabled for the track. The SDK owns
* info, and the pointer is valid only for the duration of this callback.
*
* @param info The volume information. See AudioTrackVolumeInfo.
*/
virtual void onLocalAudioTrackVolumeIndication(const AudioTrackVolumeInfo* info) {
(void)info;
}
};

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1214,6 +1214,10 @@ struct AudioVolumeInformation {
*/
class ILocalUserObserver {
public:
/**
* The bitmask of streams published by a remote user.
* @technical preview
*/
enum USER_STREAMS_BITMASK {
USER_STREAMS_BITMASK_AUDIO = 1 << 0,
USER_STREAMS_BITMASK_VIDEO_LOW = 1 << 1,
Expand Down Expand Up @@ -1603,6 +1607,7 @@ class ILocalUserObserver {
* @param uid The uid of the remote user.
* @param streams The remote user published streams in bitmask.
* See #USER_STREAMS_BITMASK.
* @technical preview
*/
virtual void onUserStreamsChanged(user_id_t userId, uint32_t streams) {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ struct RtcConnectionConfiguration {

/**
* Indicates the connection type.
* @technical preview
*/
CHANNEL_TYPE channelType;

Expand Down Expand Up @@ -413,7 +414,7 @@ class IRtcConnection : public RefCountInterface {
/**
* Creates a data stream.
*
* Each user can create up to five data streams during the lifecycle of an RTC connection.
* Each client can have up to five data streams simultaneously in a channel.
*
* @note Set both the `reliable` and `ordered` parameters as `true` or `false`. Do not set one as `true` and the other as `false`.
*
Expand All @@ -434,9 +435,10 @@ class IRtcConnection : public RefCountInterface {
/** Sends data stream messages to all users in a channel.
*
* @note This method has the following restrictions:
* - Up to 30 packets can be sent per second in a channel with a maximum size of 1 kB for each packet.
* - Each client can send up to 6 kB of data per second.
* - Each user can have up to five data streams simultaneously.
* - Each client within the channel can have up to five data channels simultaneously, with a total
* shared packet bitrate limit of 30 KB/s for all data channels.
* - Each data channel can send up to 60 packets per second, with each packet being a maximum of 1
* KB.
*
* @param streamId The ID of the sent data stream, returned in the \ref agora::rtc::IRtcConnection::createDataStream "createDataStream" method.
* @param data The pointer to the sent data.
Expand Down
Loading
Loading