CEF3-support fullscreen for html5 video

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.

CEF3-support fullscreen for html5 video

Postby shenhui » Tue Oct 16, 2012 9:00 am

Hello all,

I want to enable fullscreen mode in CEF3 browser window, then user is able to double click to fullscreen video while there is html5 video in the web page. I found fullscreen_enabled flag in CefBrowserSettings, but it does not work.

Do i need to modify other config or source code to support this ?

Thanks for any advice.
shenhui
Techie
 
Posts: 31
Joined: Sat Apr 16, 2011 10:50 pm

Re: CEF3-support fullscreen for html5 video

Postby magreenblatt » Tue Oct 16, 2012 9:03 am

Window size is controlled by your application. Size the browser window to match the display.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: CEF3-support fullscreen for html5 video

Postby shenhui » Tue Oct 16, 2012 9:31 am

magreenblatt wrote:Window size is controlled by your application. Size the browser window to match the display.


yes, actually, my application window size is the size of display, but there is no response for the web page, the size of video does not increase to the size of window in my application.
shenhui
Techie
 
Posts: 31
Joined: Sat Apr 16, 2011 10:50 pm

Re: CEF3-support fullscreen for html5 video

Postby magreenblatt » Tue Oct 16, 2012 9:45 am

What happens when you call webkitRequestFullScreen() or similar on the HTML5 video element?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: CEF3-support fullscreen for html5 video

Postby shenhui » Tue Oct 16, 2012 9:56 am

nothing happens. I found a test page(http://core.perfectworld.com/clientgameinfo3/?game=pwi) and tried in CEF3 demo(cefclient) with fullscreen_enabled flag to true, and then double clicking the video in the test page, the video cannot fullscreen.
shenhui
Techie
 
Posts: 31
Joined: Sat Apr 16, 2011 10:50 pm

Re: CEF3-support fullscreen for html5 video

Postby magreenblatt » Tue Oct 16, 2012 10:16 am

shenhui wrote:nothing happens. I found a test page(http://core.perfectworld.com/clientgameinfo3/?game=pwi) and tried in CEF3 demo(cefclient) with fullscreen_enabled flag to true, and then double clicking the video in the test page, the video cannot fullscreen.

OK, please add an issue to the CEF issue tracker.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: CEF3-support fullscreen for html5 video

Postby shenhui » Thu Oct 18, 2012 6:32 am

Hi all,

Is there a fast way to look into this issue and support fullscreen video in CEF3 ?

Since this feature is supported in CEF1, i track into the source code of Chromium and believe the version of webkit used by CEF3 supports fullscreen.
shenhui
Techie
 
Posts: 31
Joined: Sat Apr 16, 2011 10:50 pm

Re: CEF3-support fullscreen for html5 video

Postby xushenghui » Thu Oct 18, 2012 7:07 am

I want to get the issue's solution too. I tested it through "http://robnyman.github.com/fullscreen/" in your demo:cefclient.exe.

I have enabled the fullsreen support,here is code fragment:

Code: Select all
AppGetBrowserSettings(settings);
      settings.fullscreen_enabled =true;
      // Initialize window info to the defaults for a child window
      info.SetAsChild(hWnd, rect);

      // Creat the new child browser window
      CefBrowserHost::CreateBrowser(info, g_handler.get(),
          g_handler->GetStartupURL(), settings);
xushenghui
Newbie
 
Posts: 2
Joined: Thu Oct 18, 2012 6:57 am

Re: CEF3-support fullscreen for html5 video

Postby xushenghui » Thu Oct 18, 2012 7:15 am

I want to know the solution too. please give an example codes.here is full screen test url: http://robnyman.github.com/fullscreen/
xushenghui
Newbie
 
Posts: 2
Joined: Thu Oct 18, 2012 6:57 am

Re: CEF3-support fullscreen for html5 video

Postby shenhui » Thu Oct 18, 2012 8:16 am

Hello Marshall,

I have tried the binaries of version 1.963.439 released on December 22, 2011, which firstly exported the fullscreen_enabled flag in CefBrowserSettings, seems it does not work as well.

Could you please take a look into this ?
shenhui
Techie
 
Posts: 31
Joined: Sat Apr 16, 2011 10:50 pm

Next

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 190 guests