Page 1 of 1
screen
Posted: Thu Sep 19, 2019 10:34 am
by Kazann117
Good afternoon, how can I make a screen of the browser screen in the browser itself
Re: screen
Posted: Thu Sep 19, 2019 7:16 pm
by salvadordf
If you need to
share the screen you can set GlobalCEFApp.EnableMediaStream to true. Read this for more information :
https://www.briskbard.com/forum/viewtopic.php?f=8&t=910
If you need to enable the "
Picture-In-Picture" feature in YouTube then I'm not sure it can be done with CEF.
The official "
Picture-In-Picture" API is here :
https://w3c.github.io/picture-in-picture/
According to this web page you need to enable several flags :
https://blog.arnellebalane.com/the-pict ... 415372009f
There are several live demos :
https://picture-in-picture-video.arnelle.me/
https://ananyaneogi.github.io/picture-in-picture-demo/
https://googlechrome.github.io/samples/ ... n-picture/
I did a quick search and I didn't find any information about this feature in CEF but I would like to dig a little deeper and test all those flags... but right now I don't have time to do that.

Re: screen
Posted: Thu Sep 19, 2019 7:46 pm
by Kazann117
No, I just need a screenshot of the browser area so that it is saved in the folder
Re: screen
Posted: Thu Sep 19, 2019 8:53 pm
by salvadordf
A browser in normal mode and without hardware acceleration can take a screenshot with the TChromium.TakeSnapshot function. See the MiniBrowser demo for an example.
If you use a browser in OSR mode then call TBufferPanel.SaveToFile. See the SimpleOSRBrowser demo for an example.
Re: screen
Posted: Fri Sep 20, 2019 6:40 am
by Kazann117
A browser in normal mode and without hardware acceleration can take a screenshot with the TChromium.TakeSnapshot function. See the MiniBrowser demo for an example.
спасибо очень помог