Allow microphone error on Whatsapp

Post Reply
thefunkyjoint
Posts: 461
Joined: Thu Aug 10, 2017 12:40 pm

Allow microphone error on Whatsapp

Post 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
User avatar
salvadordf
Posts: 4089
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Allow microphone error on Whatsapp

Post 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)
Post Reply