Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

Allow microphone error on Whatsapp

Post Reply
thefunkyjoint
Posts: 491
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: 4374
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