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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See <a href="https://docs.agora.io/en/Agora%20Platform/token#get-an-app-id"> How to get the App ID</a>
*/
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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See <a href="https://docs.agora.io/en/Agora%20Platform/token#get-an-app-id"> How to get the App ID</a>
*/
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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See <a href="https://docs.agora.io/en/Agora%20Platform/token#get-an-app-id"> How to get the App ID</a>
*/
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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See <a href="https://docs.agora.io/en/Agora%20Platform/token#get-an-app-id"> How to get the App ID</a>
*/
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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,12 +250,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See <a href="https://docs.agora.io/en/Agora%20Platform/token#get-an-app-id"> How to get the App ID</a>
*/
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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See <a href="https://docs.agora.io/en/Agora%20Platform/token#get-an-app-id"> How to get the App ID</a>
*/
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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See <a href="https://docs.agora.io/en/Agora%20Platform/token#get-an-app-id"> How to get the App ID</a>
*/
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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,15 @@ public void onCreate(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See <a href="https://docs.agora.io/en/Agora%20Platform/token#get-an-app-id"> How to get the App ID</a>
*/
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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -252,12 +253,15 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
* The App ID issued to you by Agora. See <a href="https://docs.agora.io/en/Agora%20Platform/token#get-an-app-id"> How to get the App ID</a>
*/
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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,15 @@ private boolean createRtcEngine(String appId) {
* The App ID issued to you by Agora. See <a href="https://docs.agora.io/en/Agora%20Platform/token#get-an-app-id"> How to get the App ID</a>
*/
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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ fun JoinChannelAudio() {
}
}).apply {
enableAudio()
setChannelProfile(Constants.CHANNEL_PROFILE_COMMUNICATION)
setChannelProfile(Constants.CHANNEL_PROFILE_LIVE_BROADCASTING)
}
}
DisposableEffect(lifecycleOwner) {
Expand Down Expand Up @@ -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)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,15 @@ protected RtcEngine initRtcEngine(IRtcEngineEventHandler engineEventHandler) {
* The App ID issued to you by Agora. See <a href="https://docs.agora.io/en/Agora%20Platform/token#get-an-app-id"> How to get the App ID</a>
*/
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.
Expand Down
Loading
Loading