Fullscreen HTML5/Flash videos?

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.

Fullscreen HTML5/Flash videos?

Postby Tsury » Wed Apr 08, 2015 2:21 am

I'm using CEF 2171 and offscreen rendering.

When I try to press the fullscreen button on Flash videos (twitch.tv) the video stops showing but is still plays (I guess it is fullscreen but I can't see it), and when I try to fullscreen a Youtube video (HTML5), nothing happens, but if I resize the window the video is fullscreen inside of it but all the other HTML elements remain in place over the video.

What do I need to do in my app in order to fully support fullscreen?

Thanks!
Tsury
Mentor
 
Posts: 63
Joined: Mon Jan 19, 2015 4:31 am

Re: Fullscreen HTML5/Flash videos?

Postby amaitland » Wed Apr 08, 2015 3:28 am

Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1291
Joined: Wed Jan 14, 2015 2:35 am

Re: Fullscreen HTML5/Flash videos?

Postby Tsury » Wed Apr 08, 2015 3:35 am



I've seen this post and still didn't understand. Do I need to patch and compile CEF myself? I don't get where is this issue standing and how to handle it...
Tsury
Mentor
 
Posts: 63
Joined: Mon Jan 19, 2015 4:31 am

Re: Fullscreen HTML5/Flash videos?

Postby magreenblatt » Wed Apr 08, 2015 4:38 am

Tsury wrote:


I've seen this post and still didn't understand. Do I need to patch and compile CEF myself? I don't get where is this issue standing and how to handle it...

You need to make the window full-screen yourself using OS functions.
magreenblatt
Site Admin
 
Posts: 12407
Joined: Fri May 29, 2009 6:57 pm

Re: Fullscreen HTML5/Flash videos?

Postby Tsury » Wed Apr 08, 2015 6:05 am

magreenblatt wrote:
Tsury wrote:


I've seen this post and still didn't understand. Do I need to patch and compile CEF myself? I don't get where is this issue standing and how to handle it...

You need to make the window full-screen yourself using OS functions.


How can I detect that a user has clicked on the fullscreen button? Is there an event of some sort?
Tsury
Mentor
 
Posts: 63
Joined: Mon Jan 19, 2015 4:31 am

Re: Fullscreen HTML5/Flash videos?

Postby magreenblatt » Wed Apr 08, 2015 6:30 am

Tsury wrote:How can I detect that a user has clicked on the fullscreen button? Is there an event of some sort?

There is not currently a notification for this in C++ code. That is what the issue linked above is talking about.
magreenblatt
Site Admin
 
Posts: 12407
Joined: Fri May 29, 2009 6:57 pm

Re: Fullscreen HTML5/Flash videos?

Postby Tsury » Wed Apr 08, 2015 7:38 am

I understand now. Thank you very much for your time and effort.
Tsury
Mentor
 
Posts: 63
Joined: Mon Jan 19, 2015 4:31 am

Re: Fullscreen HTML5/Flash videos?

Postby amaitland » Wed Apr 08, 2015 9:18 pm

I haven't tried this, so it's just a theory. I believe there is a javascript fullscreenchange event. You might be able to subscribe to that event, use javascript integration to call a native method.

Some background information.
http://stackoverflow.com/questions/2110 ... -in-chrome

Again, I've not tried this, so it maybe a workaround.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1291
Joined: Wed Jan 14, 2015 2:35 am

Re: Fullscreen HTML5/Flash videos?

Postby Tsury » Thu Apr 09, 2015 2:21 am

Tried, didn't get it to work. Tried multiple proposed solutions and nothing. Guess I'll wait for an update.
Thanks.
Tsury
Mentor
 
Posts: 63
Joined: Mon Jan 19, 2015 4:31 am

Re: Fullscreen HTML5/Flash videos?

Postby fasecero » Tue May 12, 2015 10:22 pm

I'm using CEF 3.2171.1979. In my pc twitch videos works with flash and they display properly in full screen. Youtube with flash also works properly. But youtube videos with HTML5 are not displayed in full screen.

The changes mentioned in https://bitbucket.org/chromiumembedded/cef/issue/562 exceeded my knowledge. I'm also waiting for this update. Hopefully an expert can add this feature.
fasecero
Mentor
 
Posts: 60
Joined: Mon May 12, 2014 2:53 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 39 guests