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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import io.agora.api.example.examples.advanced.SwitchExternalVideo;
import io.agora.api.example.examples.advanced.SetAudioProfile;
import io.agora.api.example.examples.advanced.MultiProcess;
import io.agora.api.example.examples.advanced.FaceBeauty;
import io.agora.api.example.examples.advanced.VideoQuickSwitch;
import io.agora.api.example.examples.advanced.RTMPStreaming;
import io.agora.api.example.examples.advanced.StreamEncrypt;
Expand Down Expand Up @@ -158,6 +159,9 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
case R.id.action_mainFragment_raw_audio:
fragment = new ProcessAudioRawData();
break;
case R.id.action_mainFragment_video_enhancement:
fragment = new FaceBeauty();
break;
default:
fragment = new JoinChannelAudio();
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ private void joinChannel(String channelId)
}

// Set audio route to microPhone
engine.setDefaultAudioRoutetoSpeakerphone(false);
engine.setDefaultAudioRoutetoSpeakerphone(true);

/** Sets the channel profile of the Agora RtcEngine.
CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ private void joinChannel(String channelId)
// Setup local video to render your local camera preview
engine.setupLocalVideo(new VideoCanvas(surfaceView, RENDER_MODE_HIDDEN, 0));
// Set audio route to microPhone
engine.setDefaultAudioRoutetoSpeakerphone(false);
engine.setDefaultAudioRoutetoSpeakerphone(true);

/** Sets the channel profile of the Agora RtcEngine.
CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ private void joinChannel(String channelId) {
// Setup local video to render your local camera preview
engine.setupLocalVideo(new VideoCanvas(surfaceView, RENDER_MODE_HIDDEN, 0));
/**Set up to play remote sound with receiver*/
engine.setDefaultAudioRoutetoSpeakerphone(false);
engine.setDefaultAudioRoutetoSpeakerphone(true);
engine.setEnableSpeakerphone(false);

/** Sets the channel profile of the Agora RtcEngine.
Expand Down
Loading