meshenger-android icon indicating copy to clipboard operation
meshenger-android copied to clipboard

Allow loudspeaker while on video mode!

Open dbdonb opened this issue 4 years ago • 10 comments

Currently, when you are on a video call, you are forced to get the phone close to ears (while you aren't on earphones obviously) as there is no loudspeaker provision. So, the basic idea of video call fails since you are forced to hold the phone close to the ears and end up seeing the other person's ears only.

dbdonb avatar Oct 06 '19 21:10 dbdonb

Yes, this is not a good idea. But I do not know how to switch to the speakers yet. Pull request are welcome. :-)

mwarning avatar Oct 07 '19 00:10 mwarning

Well, tbh, this is the only app for android which is so clean, simple & works exactly as intended. No bloatware, no registrations, no ads, etc. So firstly, I'd thank you for bringing up such an app on this platform.

Regarding the pull request, I'm quite a noob when it comes to android dev. However, I guess you could inspect code of apps which provide loudspeaker feature, and implement it here with its function. I assume that's quite possible. I'll also try to get in touch with an android dev friend of mine.

dbdonb avatar Oct 07 '19 00:10 dbdonb

Thanks. I will try a few things as well.

mwarning avatar Oct 07 '19 01:10 mwarning

@dakhnod do you know how to enable loudspeakers on video calls? I tried a fey things, but nothing worked.

mwarning avatar Oct 10 '19 12:10 mwarning

Don't know if this helps, but the audio management in linphone-android isn't too bad (though bluetooth headset isn't always detected): https://github.com/BelledonneCommunications/linphone-android/blob/9a7baf96855b210b0e82f38015cf074d0cbdc987/app/src/main/java/org/linphone/utils/AndroidAudioManager.java#L407

TjlHope avatar Nov 17 '19 18:11 TjlHope

Hi @TjlHope, I already tried AudioManager::setSpeakerphoneOn(true); but without success. Thanks for link, I will give the approach another try when I have time.

mwarning avatar Nov 17 '19 20:11 mwarning

@mwarning fair enough, I'm afraid although I do a lot of Java, I've not done any android, so can't really help. I know some of the guys at work have played around with linphone internals, so will double check if they found any gotchas.

TjlHope avatar Nov 17 '19 21:11 TjlHope

The webrtc repo has a demo app that has "all" the audio features (e.g. see https://github.com/zengpeace/apprtcmobile). But it will take some time to merge the code.

mwarning avatar Dec 01 '19 02:12 mwarning

Sorry for the bump, but any update guys?

dbdonb avatar Mar 28 '21 05:03 dbdonb

hi, I am in the process of refactoring the code. With some luck it will be working afterwards.

mwarning avatar Mar 28 '21 10:03 mwarning