diff --git a/Android/APIExample-Audio/app/src/main/java/io/agora/api/example/examples/advanced/PlayAudioFiles.java b/Android/APIExample-Audio/app/src/main/java/io/agora/api/example/examples/advanced/PlayAudioFiles.java
index 20ba3a2ef..9431b7863 100644
--- a/Android/APIExample-Audio/app/src/main/java/io/agora/api/example/examples/advanced/PlayAudioFiles.java
+++ b/Android/APIExample-Audio/app/src/main/java/io/agora/api/example/examples/advanced/PlayAudioFiles.java
@@ -161,12 +161,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /** Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /** The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/**
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample-Audio/app/src/main/java/io/agora/api/example/examples/advanced/PreCallTest.java b/Android/APIExample-Audio/app/src/main/java/io/agora/api/example/examples/advanced/PreCallTest.java
index 3f6998c79..d1cb48f8f 100644
--- a/Android/APIExample-Audio/app/src/main/java/io/agora/api/example/examples/advanced/PreCallTest.java
+++ b/Android/APIExample-Audio/app/src/main/java/io/agora/api/example/examples/advanced/PreCallTest.java
@@ -83,12 +83,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /** Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /** The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/**
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample-Audio/app/src/main/java/io/agora/api/example/examples/advanced/ProcessAudioRawData.java b/Android/APIExample-Audio/app/src/main/java/io/agora/api/example/examples/advanced/ProcessAudioRawData.java
index 489c417b4..aae62913a 100644
--- a/Android/APIExample-Audio/app/src/main/java/io/agora/api/example/examples/advanced/ProcessAudioRawData.java
+++ b/Android/APIExample-Audio/app/src/main/java/io/agora/api/example/examples/advanced/ProcessAudioRawData.java
@@ -150,12 +150,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /** Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /** The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/**
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample-Audio/app/src/main/java/io/agora/api/example/examples/advanced/RhythmPlayer.java b/Android/APIExample-Audio/app/src/main/java/io/agora/api/example/examples/advanced/RhythmPlayer.java
index bfc1ae9a4..c87d5c383 100644
--- a/Android/APIExample-Audio/app/src/main/java/io/agora/api/example/examples/advanced/RhythmPlayer.java
+++ b/Android/APIExample-Audio/app/src/main/java/io/agora/api/example/examples/advanced/RhythmPlayer.java
@@ -103,12 +103,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /** Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /** The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/**
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample-Audio/app/src/main/java/io/agora/api/example/examples/advanced/VoiceEffects.java b/Android/APIExample-Audio/app/src/main/java/io/agora/api/example/examples/advanced/VoiceEffects.java
index 585510a54..f57175a21 100644
--- a/Android/APIExample-Audio/app/src/main/java/io/agora/api/example/examples/advanced/VoiceEffects.java
+++ b/Android/APIExample-Audio/app/src/main/java/io/agora/api/example/examples/advanced/VoiceEffects.java
@@ -250,12 +250,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /* Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /* The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/*
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample-Audio/app/src/main/java/io/agora/api/example/examples/advanced/customaudio/CustomAudioRender.java b/Android/APIExample-Audio/app/src/main/java/io/agora/api/example/examples/advanced/customaudio/CustomAudioRender.java
index c0cf18837..5c240eb8d 100755
--- a/Android/APIExample-Audio/app/src/main/java/io/agora/api/example/examples/advanced/customaudio/CustomAudioRender.java
+++ b/Android/APIExample-Audio/app/src/main/java/io/agora/api/example/examples/advanced/customaudio/CustomAudioRender.java
@@ -107,12 +107,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /* Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /* The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/*
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample-Audio/app/src/main/java/io/agora/api/example/examples/advanced/customaudio/CustomAudioSource.java b/Android/APIExample-Audio/app/src/main/java/io/agora/api/example/examples/advanced/customaudio/CustomAudioSource.java
index 19a3eadb0..208080a5d 100755
--- a/Android/APIExample-Audio/app/src/main/java/io/agora/api/example/examples/advanced/customaudio/CustomAudioSource.java
+++ b/Android/APIExample-Audio/app/src/main/java/io/agora/api/example/examples/advanced/customaudio/CustomAudioSource.java
@@ -125,12 +125,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /** Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /** The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/**
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample-Audio/app/src/main/java/io/agora/api/example/examples/audio/AudioWaveform.java b/Android/APIExample-Audio/app/src/main/java/io/agora/api/example/examples/audio/AudioWaveform.java
index 81718f550..9f6293d1f 100644
--- a/Android/APIExample-Audio/app/src/main/java/io/agora/api/example/examples/audio/AudioWaveform.java
+++ b/Android/APIExample-Audio/app/src/main/java/io/agora/api/example/examples/audio/AudioWaveform.java
@@ -59,12 +59,15 @@ public void onCreate(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /* Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /* The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/*
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample-Audio/app/src/main/java/io/agora/api/example/examples/basic/JoinChannelAudio.java b/Android/APIExample-Audio/app/src/main/java/io/agora/api/example/examples/basic/JoinChannelAudio.java
index 5989df2ed..039f4441b 100755
--- a/Android/APIExample-Audio/app/src/main/java/io/agora/api/example/examples/basic/JoinChannelAudio.java
+++ b/Android/APIExample-Audio/app/src/main/java/io/agora/api/example/examples/basic/JoinChannelAudio.java
@@ -131,6 +131,7 @@ public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceStat
et_channel = view.findViewById(R.id.et_channel);
audioProfileInput = view.findViewById(R.id.audio_profile_spinner);
channelProfileInput = view.findViewById(R.id.channel_profile_spinner);
+ channelProfileInput.setSelection(1);
audioScenarioInput = view.findViewById(R.id.audio_scenario_spinner);
audioRouteInput = view.findViewById(R.id.audio_route_spinner);
audioScenarioInput.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
@@ -252,12 +253,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /* Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /* The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/*
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample-Audio/app/src/main/java/io/agora/api/example/examples/basic/JoinChannelAudioByToken.java b/Android/APIExample-Audio/app/src/main/java/io/agora/api/example/examples/basic/JoinChannelAudioByToken.java
index 94a8f4e52..15c2f3459 100755
--- a/Android/APIExample-Audio/app/src/main/java/io/agora/api/example/examples/basic/JoinChannelAudioByToken.java
+++ b/Android/APIExample-Audio/app/src/main/java/io/agora/api/example/examples/basic/JoinChannelAudioByToken.java
@@ -100,12 +100,15 @@ private boolean createRtcEngine(String appId) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = appId;
- /** Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /** The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/**
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample-Compose/app/src/main/java/io/agora/api/example/compose/samples/JoinChannelAudio.kt b/Android/APIExample-Compose/app/src/main/java/io/agora/api/example/compose/samples/JoinChannelAudio.kt
index ca8a2341b..ba53c2b67 100644
--- a/Android/APIExample-Compose/app/src/main/java/io/agora/api/example/compose/samples/JoinChannelAudio.kt
+++ b/Android/APIExample-Compose/app/src/main/java/io/agora/api/example/compose/samples/JoinChannelAudio.kt
@@ -111,7 +111,7 @@ fun JoinChannelAudio() {
}
}).apply {
enableAudio()
- setChannelProfile(Constants.CHANNEL_PROFILE_COMMUNICATION)
+ setChannelProfile(Constants.CHANNEL_PROFILE_LIVE_BROADCASTING)
}
}
DisposableEffect(lifecycleOwner) {
@@ -286,6 +286,7 @@ private fun JoinChannelAudioView(
"Communication 1v1" to Constants.CHANNEL_PROFILE_COMMUNICATION_1v1,
"Communication 1v1" to Constants.CHANNEL_PROFILE_COMMUNICATION_1v1,
),
+ selected = 1,
) { _, option ->
rtcEngine?.setChannelProfile(option.second)
}
diff --git a/Android/APIExample/app/src/main/java/io/agora/api/example/common/BaseVbFragment.java b/Android/APIExample/app/src/main/java/io/agora/api/example/common/BaseVbFragment.java
index 9fed308de..cd0f6289b 100644
--- a/Android/APIExample/app/src/main/java/io/agora/api/example/common/BaseVbFragment.java
+++ b/Android/APIExample/app/src/main/java/io/agora/api/example/common/BaseVbFragment.java
@@ -62,12 +62,15 @@ protected RtcEngine initRtcEngine(IRtcEngineEventHandler engineEventHandler) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /* Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /* The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/*
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/AgoraBeauty.java b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/AgoraBeauty.java
index 1ded647db..62ab76cbe 100644
--- a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/AgoraBeauty.java
+++ b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/AgoraBeauty.java
@@ -289,12 +289,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /* Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /* The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/*
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/ChannelEncryption.java b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/ChannelEncryption.java
index c0e8f5590..11a39da3e 100644
--- a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/ChannelEncryption.java
+++ b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/ChannelEncryption.java
@@ -102,12 +102,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /* Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /* The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/*
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/ContentInspect.java b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/ContentInspect.java
index ee783fe4a..0b28ca513 100644
--- a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/ContentInspect.java
+++ b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/ContentInspect.java
@@ -97,12 +97,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /* Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /* The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/*
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/CustomRemoteVideoRender.java b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/CustomRemoteVideoRender.java
index bdeb4df92..8a078f402 100644
--- a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/CustomRemoteVideoRender.java
+++ b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/CustomRemoteVideoRender.java
@@ -133,12 +133,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /* Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /* The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/*
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/FaceCapture.java b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/FaceCapture.java
index fea16cf35..ea3079d42 100644
--- a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/FaceCapture.java
+++ b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/FaceCapture.java
@@ -81,12 +81,15 @@ public void onCreate(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /* Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /* The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/*
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/HostAcrossChannel.java b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/HostAcrossChannel.java
index 0601d3e6d..ae144c10b 100644
--- a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/HostAcrossChannel.java
+++ b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/HostAcrossChannel.java
@@ -102,12 +102,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /* Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /* The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/*
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/JoinMultipleChannel.java b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/JoinMultipleChannel.java
index 191f48f65..db516640c 100644
--- a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/JoinMultipleChannel.java
+++ b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/JoinMultipleChannel.java
@@ -106,12 +106,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /* Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /* The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/*
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/LiveStreaming.java b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/LiveStreaming.java
index e8de67458..6c92dfa81 100644
--- a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/LiveStreaming.java
+++ b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/LiveStreaming.java
@@ -308,7 +308,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
rtcEngineConfig.mAppId = getAgoraAppId();
rtcEngineConfig.mContext = context.getApplicationContext();
rtcEngineConfig.mEventHandler = iRtcEngineEventHandler;
- /* Sets the channel profile of the Agora RtcEngine. */
+ /* The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
rtcEngineConfig.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
rtcEngineConfig.mAudioScenario = Constants.AudioScenario.getValue(Constants.AudioScenario.DEFAULT);
rtcEngineConfig.mAreaCode = ((MainApplication) getActivity().getApplication()).getGlobalSettings().getAreaCode();
diff --git a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/LocalVideoTranscoding.java b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/LocalVideoTranscoding.java
index 4c9a80f01..c94e5a5fc 100644
--- a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/LocalVideoTranscoding.java
+++ b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/LocalVideoTranscoding.java
@@ -102,12 +102,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /* Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /* The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/*
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/MediaMetadata.java b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/MediaMetadata.java
index deb16ac20..5ad6461e5 100644
--- a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/MediaMetadata.java
+++ b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/MediaMetadata.java
@@ -116,12 +116,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /* Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /* The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/*
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/MediaPlayer.java b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/MediaPlayer.java
index fbd593423..f144b11f5 100644
--- a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/MediaPlayer.java
+++ b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/MediaPlayer.java
@@ -119,12 +119,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /* Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /* The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/*
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/MediaRecorder.java b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/MediaRecorder.java
index 8430977e8..cea6908f8 100644
--- a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/MediaRecorder.java
+++ b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/MediaRecorder.java
@@ -113,12 +113,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /* Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /* The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/*
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/MultiVideoSourceTracks.java b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/MultiVideoSourceTracks.java
index a47fc677b..bbdc7e91b 100644
--- a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/MultiVideoSourceTracks.java
+++ b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/MultiVideoSourceTracks.java
@@ -136,12 +136,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /* Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /* The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/*
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/Multipath.java b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/Multipath.java
index 11111ae84..674cd0db9 100644
--- a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/Multipath.java
+++ b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/Multipath.java
@@ -118,12 +118,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /* Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /* The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/*
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/PictureInPicture.java b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/PictureInPicture.java
index ae7e89aef..a3a7ab4d6 100644
--- a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/PictureInPicture.java
+++ b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/PictureInPicture.java
@@ -112,12 +112,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /* Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /* The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/*
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/PlayAudioFiles.java b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/PlayAudioFiles.java
index 7cf455f82..91b1e8258 100644
--- a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/PlayAudioFiles.java
+++ b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/PlayAudioFiles.java
@@ -164,12 +164,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /* Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /* The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/*
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/PreCallTest.java b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/PreCallTest.java
index 01e2bf636..99636974f 100644
--- a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/PreCallTest.java
+++ b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/PreCallTest.java
@@ -83,12 +83,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /* Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /* The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/*
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/ProcessAudioRawData.java b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/ProcessAudioRawData.java
index 84fcae813..9cf067468 100644
--- a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/ProcessAudioRawData.java
+++ b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/ProcessAudioRawData.java
@@ -150,12 +150,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /* Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /* The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/*
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/ProcessRawData.java b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/ProcessRawData.java
index 2515be2d8..367bea13f 100644
--- a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/ProcessRawData.java
+++ b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/ProcessRawData.java
@@ -91,12 +91,15 @@ public void onCreate(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /* Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /* The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/*
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/PushExternalVideoYUV.java b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/PushExternalVideoYUV.java
index 063c37f84..fc1d882a6 100644
--- a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/PushExternalVideoYUV.java
+++ b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/PushExternalVideoYUV.java
@@ -137,12 +137,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /* Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /* The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/*
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/RTMPStreaming.java b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/RTMPStreaming.java
index af08f18be..a0fdad735 100644
--- a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/RTMPStreaming.java
+++ b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/RTMPStreaming.java
@@ -116,12 +116,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /* Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /* The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/*
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/RhythmPlayer.java b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/RhythmPlayer.java
index 194fdde17..21d53beff 100644
--- a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/RhythmPlayer.java
+++ b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/RhythmPlayer.java
@@ -103,12 +103,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /* Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /* The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/*
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/ScreenSharing.java b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/ScreenSharing.java
index d385c5dc8..c0a1bf15b 100644
--- a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/ScreenSharing.java
+++ b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/ScreenSharing.java
@@ -157,12 +157,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /* Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /* The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/*
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/SendDataStream.java b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/SendDataStream.java
index 98d5f990c..d68db990f 100644
--- a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/SendDataStream.java
+++ b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/SendDataStream.java
@@ -103,12 +103,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /* Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /* The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/*
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/SimpleExtension.java b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/SimpleExtension.java
index ec68029b7..071d4887f 100644
--- a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/SimpleExtension.java
+++ b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/SimpleExtension.java
@@ -172,12 +172,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /* Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /* The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/*
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/Simulcast.java b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/Simulcast.java
index e9db675a9..394b7c3a6 100644
--- a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/Simulcast.java
+++ b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/Simulcast.java
@@ -122,12 +122,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /* Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /* The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/*
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/SwitchCameraScreenShare.java b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/SwitchCameraScreenShare.java
index 4f9cceefb..afb1b45a1 100644
--- a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/SwitchCameraScreenShare.java
+++ b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/SwitchCameraScreenShare.java
@@ -111,12 +111,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /* Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /* The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/*
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/TransparentRendering.java b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/TransparentRendering.java
index 6c7b348e4..55382e971 100644
--- a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/TransparentRendering.java
+++ b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/TransparentRendering.java
@@ -99,12 +99,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /* Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /* The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/*
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/VideoProcessExtension.java b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/VideoProcessExtension.java
index 04928919b..8c2d4f05a 100644
--- a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/VideoProcessExtension.java
+++ b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/VideoProcessExtension.java
@@ -195,12 +195,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /* Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /* The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/*
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/VideoQuickSwitch.java b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/VideoQuickSwitch.java
index 2051fe5c6..7cdb91c5c 100644
--- a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/VideoQuickSwitch.java
+++ b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/VideoQuickSwitch.java
@@ -104,12 +104,15 @@ public void onCreate(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /* Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /* The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/*
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/VoiceEffects.java b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/VoiceEffects.java
index bb68f7dff..cb15af51e 100644
--- a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/VoiceEffects.java
+++ b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/VoiceEffects.java
@@ -250,12 +250,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /* Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /* The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/*
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/customaudio/CustomAudioRender.java b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/customaudio/CustomAudioRender.java
index 09b7c8649..e094b4de5 100755
--- a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/customaudio/CustomAudioRender.java
+++ b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/customaudio/CustomAudioRender.java
@@ -107,12 +107,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /* Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /* The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/*
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/customaudio/CustomAudioSource.java b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/customaudio/CustomAudioSource.java
index df467373b..0788ad3bf 100755
--- a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/customaudio/CustomAudioSource.java
+++ b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/customaudio/CustomAudioSource.java
@@ -122,12 +122,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /* Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /* The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/*
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/audio/AudioRouterPlayerExo.java b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/audio/AudioRouterPlayerExo.java
index aa64576e3..53619a417 100644
--- a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/audio/AudioRouterPlayerExo.java
+++ b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/audio/AudioRouterPlayerExo.java
@@ -69,12 +69,15 @@ public void onCreate(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /* Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /* The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/*
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/audio/AudioRouterPlayerIjk.java b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/audio/AudioRouterPlayerIjk.java
index c5a15375e..6215a3807 100644
--- a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/audio/AudioRouterPlayerIjk.java
+++ b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/audio/AudioRouterPlayerIjk.java
@@ -67,12 +67,15 @@ public void onCreate(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /* Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /* The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/*
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/audio/AudioRouterPlayerNative.java b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/audio/AudioRouterPlayerNative.java
index e6563ea47..11e4d1fbb 100644
--- a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/audio/AudioRouterPlayerNative.java
+++ b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/audio/AudioRouterPlayerNative.java
@@ -68,12 +68,15 @@ public void onCreate(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /* Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /* The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/*
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/audio/AudioWaveform.java b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/audio/AudioWaveform.java
index 57eb8ff15..ba4ab3998 100644
--- a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/audio/AudioWaveform.java
+++ b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/audio/AudioWaveform.java
@@ -63,12 +63,15 @@ public void onCreate(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /* Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /* The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/*
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/basic/JoinChannelAudio.java b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/basic/JoinChannelAudio.java
index f83c52537..0f0c56c41 100755
--- a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/basic/JoinChannelAudio.java
+++ b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/basic/JoinChannelAudio.java
@@ -149,6 +149,7 @@ public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceStat
et_channel = view.findViewById(R.id.et_channel);
audioProfileInput = view.findViewById(R.id.audio_profile_spinner);
channelProfileInput = view.findViewById(R.id.channel_profile_spinner);
+ channelProfileInput.setSelection(1);
audioScenarioInput = view.findViewById(R.id.audio_scenario_spinner);
audioRouteInput = view.findViewById(R.id.audio_route_spinner);
audioScenarioInput.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
@@ -300,12 +301,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /* Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /* The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/*
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/basic/JoinChannelVideo.java b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/basic/JoinChannelVideo.java
index 0e1ed1432..1cb48d021 100644
--- a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/basic/JoinChannelVideo.java
+++ b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/basic/JoinChannelVideo.java
@@ -101,12 +101,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See How to get the App ID
*/
config.mAppId = getAgoraAppId();
- /* Sets the channel profile of the Agora RtcEngine.
- CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- Use this profile in one-on-one calls or group calls, where all users can talk freely.
- CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- an audience can only receive streams.*/
+ /* The channel profile.
+ CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ for a better audio and video experience.
+ CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ CHANNEL_PROFILE_GAME(2): Gaming.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
+ CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ profile if the use case requires frequent interactions between users.
+ Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.*/
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
/*
* IRtcEngineEventHandler is an abstract class providing default implementation.
diff --git a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/basic/JoinChannelVideoByToken.java b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/basic/JoinChannelVideoByToken.java
index 9d8507b1e..214fc412d 100644
--- a/Android/APIExample/app/src/main/java/io/agora/api/example/examples/basic/JoinChannelVideoByToken.java
+++ b/Android/APIExample/app/src/main/java/io/agora/api/example/examples/basic/JoinChannelVideoByToken.java
@@ -87,13 +87,16 @@ private boolean createRtcEngine(String appId) {
// The App ID issued to you by Agora.
// See How to get the App ID
config.mAppId = appId;
- // Sets the channel profile of the Agora RtcEngine.
- // CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
- // Use this profile in one-on-one calls or group calls, where all users can talk freely.
- // CHANNEL_PROFILE_LIVE_BROADCASTING(1): The Live-Broadcast profile. Users in a live-broadcast
- // channel have a role as either broadcaster or audience. A broadcaster can both send and receive streams;
- // an audience can only receive streams.
+ // The channel profile.
+ // CHANNEL_PROFILE_COMMUNICATION(0): Communication. Agora recommends using the live streaming profile
+ // for a better audio and video experience.
+ // CHANNEL_PROFILE_LIVE_BROADCASTING(1): (Default) Live streaming.
+ // CHANNEL_PROFILE_GAME(2): Gaming.
+ // Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
config.mChannelProfile = Constants.CHANNEL_PROFILE_LIVE_BROADCASTING;
+ // CHANNEL_PROFILE_CLOUD_GAMING(3): Interaction. The scenario is optimized for latency. Use this
+ // profile if the use case requires frequent interactions between users.
+ // Deprecated: Use CHANNEL_PROFILE_LIVE_BROADCASTING instead.
// RtcEngineEventHandler is an abstract class providing default implementation.
// he SDK uses this class to report to the app on SDK runtime events.
config.mEventHandler = iRtcEngineEventHandler;