Page 1 of 1

Allow microphone error on Whatsapp

Posted: Mon May 06, 2024 2:04 pm
by thefunkyjoint
I'm getting this error on web version of whatsapp, when using TChromium :

https://ibb.co/CMQB2L6

Allow microphone
To record voice messages, Whatsapp needs access to your microphone. Click in the URL bar and choose 'Always allow web.whatsapp.com to access your microphone'.

I'm setting options like this :

GlobalCEFApp.MuteAudio := false;
GlobalCEFApp.EnableMediaStream := true;
GlobalCEFApp.UseFakeUIForMediaStream := true;

Any other option to set so Whatsapp can use the microphone to send audio messages ?

Thanks

Re: Allow microphone error on Whatsapp

Posted: Tue May 07, 2024 7:11 am
by salvadordf
Hi,

Try disabling the GlobalCEFApp.EnableMediaStream property and implement TChromium.OnRequestMediaAccessPermission

Set aResult to True and call callback.cont(CEF_PERMISSION_RESULT_ACCEPT)