Page 1 of 1
Browser permissions
Posted: Tue Nov 30, 2021 9:25 am
by igor666
Hi. There was a question about enabling browser permissions. For example, this is how the permissions look in cef4delphi
https://imgur.com/NK2328V
and this is how they look in Chrome or Firefox browsers
https://imgur.com/mP7FV1c
Is there any way to enable these permissions?
And another question about video support, this is how support looks like in cef4delphi
Code: Select all
SUPPORT VIDEO:
HTMLVideoElement: да
MP4: нет
WebM: да
HLS: нет
MPD: нет
H264: нет
H265: нет
WebM with VP9: да
MSE: да
SourceBuffer: да
EME: да
EMESystems: –
GPU Vendor: Google Inc.
GPU Renderer: ANGLE (Intel(R) HD Graphics 630 Direct3D11 vs_5_0 ps_5_0)
Regarding mp4 and H264, it is clear, I saw the description about the interfaces and recompiling of libraries. Interested in the "EMESystems" and "GPU Vendor" settings, can it be turned on?
Thanks for the answer.
Re: Browser permissions
Posted: Tue Nov 30, 2021 10:54 am
by salvadordf
Hi,
A CEF browser has some limitations :
- As you said, proprietary codecs support (H264, AAC, etc.) require building the CEF binaries.
- All Google services that require Google credentials like geolocation, translation, etc. are disabled because Google decided to remove those credentials from Chromium's source code. You would need to modify Chromium's source code to enable them or perhaps implement a similar feature using alternative services for geolocation, translation, etc.
- Some of the permission dialogs to access the camera. microphone, etc. are not implemented in a CEF browser in normal mode. You can set some GlobalCEFApp properties to grant those permissions by default. There's an experimental "Chrome runtime" mode for CEF browsers that supports all those dialogs but it's not finished at this moment.
- I've never tried to modify the GPU settings except when I disable it completely with the GlobalCEFApp.EnableGPU property.
- I don't know what "EMESystems" is.
Re: Browser permissions
Posted: Tue Nov 30, 2021 8:29 pm
by igor666
Thanks for the answer.
You would need to modify Chromium's source code to enable them
Can you tell me where you can see information on this?
You can set some GlobalCEFApp properties to grant those permissions by default
What are the properties? I checked some of the titles that fit my mind, but none of the resolutions came up. Maybe I missed something.
I don't know what "EMESystems" is.
I haven’t found any information on this setting yet, but I see that in the Chrome browser the value of this setting is "com.widevine.alpha". I am trying to find information on this value

Re: Browser permissions
Posted: Thu Dec 02, 2021 9:36 am
by salvadordf
igor666 wrote: Tue Nov 30, 2021 8:29 pm
Thanks for the answer.
You would need to modify Chromium's source code to enable them
Can you tell me where you can see information on this?
Chromium's source code is very big and I only know a few things. I'm sorry but I don't know where are the keys for those services.
You can search the code here :
https://source.chromium.org/chromium
igor666 wrote: Tue Nov 30, 2021 8:29 pm
You can set some GlobalCEFApp properties to grant those permissions by default
What are the properties? I checked some of the titles that fit my mind, but none of the resolutions came up. Maybe I missed something.
GlobalCEFApp.UseFakeUIForMediaStream will grant camera and mic privileges automatically.
Enable GlobalCEFApp.EnableUsermediaScreenCapturing and GlobalCEFApp.EnableMediaStream if you want to grant permissions to share your screen in some videoconferencing apps.
Re: Browser permissions
Posted: Thu Dec 02, 2021 7:15 pm
by igor666
Thanks again for your help
