Skip to content

Commit

Permalink
Merge pull request #241 from AgoraIO/staging
Browse files Browse the repository at this point in the history
3.6.0 release
  • Loading branch information
xia ning authored Dec 20, 2021
2 parents c0e0e56 + c167883 commit 1da0d62
Show file tree
Hide file tree
Showing 44 changed files with 1,577 additions and 432 deletions.
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

0 comments on commit 1da0d62

Please sign in to comment.