Render to video stream and interact with content.

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Render to video stream and interact with content.

Postby Horsetopus » Tue Jun 21, 2016 5:24 am

Hello,

I was just wondering about two things regarding CEF, if you guys could please enlighten me:
- Can CEF be renderer to a video stream?
- Is there a way to interact with the DOM from an external process? Otherwise I guess there is an in/out stream availlable? Worst case scenario I can use websockets for my usecase, but I would appreciate something more straightforward.

Thanks.
Horsetopus
Newbie
 
Posts: 9
Joined: Fri Jul 19, 2013 9:47 am

Re: Render to video stream and interact with content.

Postby magreenblatt » Tue Jun 21, 2016 10:27 am

What is your use case?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Render to video stream and interact with content.

Postby Horsetopus » Wed Jun 22, 2016 6:11 am

Hi magreenblatt, thank you for answering.

Well... how to explain that.
I want to broadcast a video stream of some web content. Basically a slideshow. And I want to be able to control this slideshow not by interacting with the webpage but through some commands.
So ideally, here is how I with I would use CEF:

I have my program running.
Though my program, I launch CEF, ideally without even displaying it.
I get a video stream of the rendering from CEF, and broadcast it to every watchers.
And then I communicate with CEF in some ways to load the slide, and navigate through it.

For the communication, I could do this using websockets, or other web technologies. So I just ask if something else is available, but it is not my big issue.
What matters the most is the possibility of getting a video stream of the webpage rendering, if possible without even it being displayed on the desktop where it is running ( in order to not waste performances ).

If CEF doesn't support it, is it possible to use getUserMedia on the tab, without any UI prompt?
Horsetopus
Newbie
 
Posts: 9
Joined: Fri Jul 19, 2013 9:47 am

Re: Render to video stream and interact with content.

Postby magreenblatt » Wed Jun 22, 2016 10:15 am

If you don't want to display content on the source machine then you would need to use off-screen rendering. However, it will still take resources to render the web content. With off-screen rendering you get an OnPaint callback with a bitmap of the rendered contents. You would then need to turn that into a video yourself.

What you're trying to do sounds very similar to Chromecast. You might have an easier time using Google Chrome which already supports the Chromecast capability. The control that you're seeking should be easy enough to implement as a standard JavaScript application or Chrome extension.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Render to video stream and interact with content.

Postby Horsetopus » Wed Jun 22, 2016 12:24 pm

off-screen rendering, OnPaint callback.
I have the keywords, I'll get to work.
Thanks.

PS: As for chromecast, it doesn't match my needs. I need the stream available on the web, on multiple clients. But thanks.
Horsetopus
Newbie
 
Posts: 9
Joined: Fri Jul 19, 2013 9:47 am

Re: Render to video stream and interact with content.

Postby magreenblatt » Wed Jun 22, 2016 12:38 pm

Horsetopus wrote:PS: As for chromecast, it doesn't match my needs. I need the stream available on the web, on multiple clients. But thanks.

Ah, OK. Missed the multiple clients part.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: Majestic-12 [Bot] and 78 guests