parent
fce568a6bb
commit
d3ff81378c
1 changed files with 2 additions and 2 deletions
|
@ -1393,7 +1393,7 @@ public class LinphoneManager implements LinphoneCoreListener, LinphoneChatMessag
|
||||||
//However, incoming call first use the MODE_RINGING to play the local ring.
|
//However, incoming call first use the MODE_RINGING to play the local ring.
|
||||||
if(call.getDirection() == CallDirection.Incoming) {
|
if(call.getDirection() == CallDirection.Incoming) {
|
||||||
setAudioManagerInCallMode();
|
setAudioManagerInCallMode();
|
||||||
mAudioManager.abandonAudioFocus(null);
|
//mAudioManager.abandonAudioFocus(null);
|
||||||
requestAudioFocus(STREAM_VOICE_CALL);
|
requestAudioFocus(STREAM_VOICE_CALL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1572,7 +1572,7 @@ public class LinphoneManager implements LinphoneCoreListener, LinphoneChatMessag
|
||||||
mRingerPlayer = new MediaPlayer();
|
mRingerPlayer = new MediaPlayer();
|
||||||
mRingerPlayer.setAudioStreamType(STREAM_RING);
|
mRingerPlayer.setAudioStreamType(STREAM_RING);
|
||||||
|
|
||||||
String ringtone = LinphonePreferences.instance().getRingtone(android.provider.Settings.System.DEFAULT_RINGTONE_URI.toString());
|
String ringtone = LinphonePreferences.instance().getRingtone(Settings.System.DEFAULT_RINGTONE_URI.toString());
|
||||||
try {
|
try {
|
||||||
if (ringtone.startsWith("content://")) {
|
if (ringtone.startsWith("content://")) {
|
||||||
mRingerPlayer.setDataSource(mServiceContext, Uri.parse(ringtone));
|
mRingerPlayer.setDataSource(mServiceContext, Uri.parse(ringtone));
|
||||||
|
|
Loading…
Reference in a new issue