Skip to content

Commit 25e3988

Browse files
author
xianing
committed
set default audio route to speaker phone
1 parent ba528d0 commit 25e3988

20 files changed

+20
-20
lines changed

Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/ARCore.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ private void joinChannel(String channelId)
294294
}
295295

296296
// Set audio route to microPhone
297-
engine.setDefaultAudioRoutetoSpeakerphone(false);
297+
engine.setDefaultAudioRoutetoSpeakerphone(true);
298298

299299
/** Sets the channel profile of the Agora RtcEngine.
300300
CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.

Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/ChannelEncryption.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ private void joinChannel(String channelId)
207207
// Setup local video to render your local camera preview
208208
engine.setupLocalVideo(new VideoCanvas(surfaceView, RENDER_MODE_HIDDEN, 0));
209209
// Set audio route to microPhone
210-
engine.setDefaultAudioRoutetoSpeakerphone(false);
210+
engine.setDefaultAudioRoutetoSpeakerphone(true);
211211

212212
/** Sets the channel profile of the Agora RtcEngine.
213213
CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.

Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/CustomRemoteVideoRender.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ private void joinChannel(String channelId) {
174174
// Setup local video to render your local camera preview
175175
engine.setupLocalVideo(new VideoCanvas(surfaceView, RENDER_MODE_HIDDEN, 0));
176176
/**Set up to play remote sound with receiver*/
177-
engine.setDefaultAudioRoutetoSpeakerphone(false);
177+
engine.setDefaultAudioRoutetoSpeakerphone(true);
178178
engine.setEnableSpeakerphone(false);
179179

180180
/** Sets the channel profile of the Agora RtcEngine.

Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/GeoFencing.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ private void joinChannel(String channelId) {
207207
// Setup local video to render your local camera preview
208208
engine.setupLocalVideo(new VideoCanvas(surfaceView, RENDER_MODE_HIDDEN, 0));
209209
// Set audio route to microPhone
210-
engine.setDefaultAudioRoutetoSpeakerphone(false);
210+
engine.setDefaultAudioRoutetoSpeakerphone(true);
211211

212212
/** Sets the channel profile of the Agora RtcEngine.
213213
CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.

Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/HostAcrossChannel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ private void joinChannel(String channelId)
225225
// Setup local video to render your local camera preview
226226
engine.setupLocalVideo(new VideoCanvas(surfaceView, RENDER_MODE_HIDDEN, 0));
227227
// Set audio route to microPhone
228-
engine.setDefaultAudioRoutetoSpeakerphone(false);
228+
engine.setDefaultAudioRoutetoSpeakerphone(true);
229229

230230
/** Sets the channel profile of the Agora RtcEngine.
231231
CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.

Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/InCallReport.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ private void joinChannel(String channelId)
203203
// Setup local video to render your local camera preview
204204
engine.setupLocalVideo(new VideoCanvas(surfaceView, RENDER_MODE_HIDDEN, 0));
205205
// Set audio route to microPhone
206-
engine.setDefaultAudioRoutetoSpeakerphone(false);
206+
engine.setDefaultAudioRoutetoSpeakerphone(true);
207207

208208
/** Sets the channel profile of the Agora RtcEngine.
209209
CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.

Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/JoinMultipleChannel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ private void setupVideo()
200200
engine.setupLocalVideo(new VideoCanvas(surfaceView, RENDER_MODE_HIDDEN, 0));
201201
engine.startPreview();
202202
// Set audio route to microPhone
203-
engine.setDefaultAudioRoutetoSpeakerphone(false);
203+
engine.setDefaultAudioRoutetoSpeakerphone(true);
204204

205205
/** Sets the channel profile of the Agora RtcEngine.
206206
CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.

Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/LiveStreaming.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ private void joinChannel(String channelId) {
232232
// Setup local video to render your local camera preview
233233
engine.setupLocalVideo(new VideoCanvas(surfaceView, RENDER_MODE_HIDDEN, 0));
234234
// Set audio route to microPhone
235-
engine.setDefaultAudioRoutetoSpeakerphone(false);
235+
engine.setDefaultAudioRoutetoSpeakerphone(true);
236236

237237
/** Sets the channel profile of the Agora RtcEngine.
238238
CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.

Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/MediaPlayerKit.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ private void joinChannel(String channelId) {
310310
return;
311311
}
312312

313-
engine.setDefaultAudioRoutetoSpeakerphone(false);
313+
engine.setDefaultAudioRoutetoSpeakerphone(true);
314314

315315
/** Sets the channel profile of the Agora RtcEngine.
316316
CHANNEL_PROFILE_COMMUNICATION(0): (Default) The Communication profile.

Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/ProcessRawData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ private void joinChannel(String channelId) {
218218
VideoEncoderConfiguration.ORIENTATION_MODE.valueOf(((MainApplication)getActivity().getApplication()).getGlobalSettings().getVideoEncodingOrientation())
219219
));
220220
/**Set up to play remote sound with receiver*/
221-
engine.setDefaultAudioRoutetoSpeakerphone(false);
221+
engine.setDefaultAudioRoutetoSpeakerphone(true);
222222
engine.setEnableSpeakerphone(false);
223223

224224
/**

0 commit comments

Comments
 (0)