Ringing sound slow after start publish video

Mukesh Singh

New Member
I am playing a mp3 audio file using media player to indicate ringing state and stop media player after call connection.
I had publish video before call connection at receiver side.I play this sound file on speaker but when video is start to publish at caller side,
ringing sound become slow.
To play sound on speaker I have used 2 way but facing same problem.

Please suggest that how play audio file at same volume level.
For Loud Speaker.
1. Using FlashPhoner
Flashphoner.getAudioManager().setUseSpeakerPhone(true)

2. Using Media Player
AudioManager mAudioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
mAudioManager.setMode(AudioManager.MODE_NORMAL);
mAudioManager.setSpeakerphoneOn(true);

Player code
player = new MediaPlayer();
player.setDataSource(this, Uri.parse("android.resource://" + getPackageName() + "/" + soundRes));
player.setLooping(true);
if (isOutgoingCall) {
player.setAudioStreamType(AudioManager.STREAM_VOICE_CALL);
mAudioManager.requestAudioFocus(null, AudioManager.STREAM_VOICE_CALL, AudioManager.AUDIOFOCUS_GAIN_TRANSIENT);
} else {
player.setAudioStreamType(AudioManager.STREAM_RING);
mAudioManager.requestAudioFocus(null, AudioManager.STREAM_RING, AudioManager.AUDIOFOCUS_GAIN_TRANSIENT);
}
player.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {
@Overridepublic void onPrepared(MediaPlayer mp) {
mp.start();
}
});
player.prepareAsync();


} catch (Exception e) {
e.printStackTrace();
}


Thanks
 
Last edited:

Max

Administrator
Staff member
Hello.
If you have tried all the recommendation from topic you linked to, and noise suppression problem persists, it is probably related to WebRTC library version. We plan to update it in next Android SDK builds.
 

Mukesh Singh

New Member
@Max,
1.Ringing sound decrease after start stream. Audio sound also low after connection. It arise on Samsung device but work on LG K10.

2. Ringing sound increase after streaming start. It arise on Nexus 5 and Micromax Unite.
I have urgent requirement to fix it. Please suggest any alternate solution.
 
Last edited:

Max

Administrator
Staff member
Hello.
We raised internal ticket on this issue (WCS-1691) and let you know when we do something. Please be patient.
 

Max

Administrator
Staff member
Hello.
We just updated Android SDK to new version 1.1. WebRTC library is updated in this version. Please download build 1.1.0.4 and refer to documentation here.
Note that applications build with Android SDK 1.1 will work on Android 8 and higher.
 
Top