You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By using this package, I integrated the audio functionality. However, the voice is currently coming through the speaker. How can we enable the audio to use the earpiece instead?
#158
Open
pavaniUMR opened this issue
May 21, 2024
· 0 comments
Implemented by using the agora UIkit for audio and video. For audio the voice is come from loudspeaker after here is the code snippet
const setupVideoSDKEngine = async () => {
agoraEngineRef.current = createAgoraRtcEngine();
const agoraEngine = agoraEngineRef.current;
const inalizationofAgora = agoraEngine.initialize({
appId: remoteConfig().getValue('agoraAppId').asString(),
channelProfile: ChannelProfileType.ChannelProfileCommunication,
});
if (route.params.connectType == 'audio') {
agoraEngine.disableVideo();
agoraEngine.enableLocalVideo(false);
agoraEngine?.current?.setEnableSpeakerphone(false);
if (muteStatus === true) {
agoraEngine.disableAudio();
agoraEngine.muteLocalAudioStream(true);
}
} else {
agoraEngine.enableVideo();
agoraEngine.enableLocalVideo(true);
videoEnableStatusRef.current = true;
}
};
and the
The text was updated successfully, but these errors were encountered:
Implemented by using the agora UIkit for audio and video. For audio the voice is come from loudspeaker after here is the code snippet
const setupVideoSDKEngine = async () => {
agoraEngineRef.current = createAgoraRtcEngine();
const agoraEngine = agoraEngineRef.current;
const inalizationofAgora = agoraEngine.initialize({
appId: remoteConfig().getValue('agoraAppId').asString(),
channelProfile: ChannelProfileType.ChannelProfileCommunication,
});
if (route.params.connectType == 'audio') {
agoraEngine.disableVideo();
agoraEngine.enableLocalVideo(false);
agoraEngine?.current?.setEnableSpeakerphone(false);
if (muteStatus === true) {
agoraEngine.disableAudio();
agoraEngine.muteLocalAudioStream(true);
}
} else {
agoraEngine.enableVideo();
agoraEngine.enableLocalVideo(true);
videoEnableStatusRef.current = true;
}
};
and the
The text was updated successfully, but these errors were encountered: