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.

screen

Post Reply
Kazann117
Posts: 41
Joined: Mon Jan 07, 2019 10:08 pm

screen

Post by Kazann117 »

Good afternoon, how can I make a screen of the browser screen in the browser itself
User avatar
salvadordf
Posts: 4565
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: screen

Post 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. :oops:
Kazann117
Posts: 41
Joined: Mon Jan 07, 2019 10:08 pm

Re: screen

Post by Kazann117 »

No, I just need a screenshot of the browser area so that it is saved in the folder
User avatar
salvadordf
Posts: 4565
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: screen

Post 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.
Kazann117
Posts: 41
Joined: Mon Jan 07, 2019 10:08 pm

Re: screen

Post 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.


спасибо очень помог
Post Reply