How to play sound in ear speaker in xamarin android? -


i'm doing cross platform app in visual studio, want know how play sound in ear speaker, mobile ringing sound while make call, can 1 me this?

update trying sip calling. have used android.net.sip. can able call sip numbers before pick call end user ring sound cant ringing in mobile.

its having functions cant able hear ring sound

//called when ringing response received invite request sent. public override void onringingback(sipaudiocall call) {      base.onringingback(call);  } 

for tried play ring sound using media player, use loud speaker, want play ring sound in ear speaker or can can able play ring sound using above functions. can 1 me this?

no need restart phone. close running apps , try audio. it'll normal, through main speaker. i've observed 1 thing. while music coming through ear speaker make call, automatically pauses playing audio, , in call put on loud speaker , go music player (don't disconnect call, let go in speaker mode) , turn on music, audio out through main speaker in normal way. again putting off speaker mode of current going call throw audio ear speaker. after disconnecting call audio play through ear speaker only. don't know reason behind this. observation. conclude that, no need restart phone. close running apps (all) , try audio. it'll fine.


Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -