Full screen mode for video

Having problems with building or using the JCEF Java binding? Ask your questions here.

Full screen mode for video

Postby zhizhkaigor » Thu Sep 15, 2016 12:30 pm

Hello all ;)
Using:
JCEF Version = 3.2704.139
CEF Version = 3.2704.1427
Chromium Version = 51.0.2704.84
OC Windows 10

The question is, when you click the full-screen mode video is set in the size of the view, instead of in full-screen mode
Found information on the listener https://bitbucket.org/chromiumembedded/cef/issues/562 that applies in such cases
Code: Select all
client_.addDisplayHandler(new CefDisplayHandlerAdapter() {
 @Override
 public boolean OnFullscreenModeChange(CefRefPtr browser, boolean fullscreen) {
   return fullscreen;
   }
 });

All is well, but in my assembly CEF is missing class CefRefPtr :(
How to live on :?:
zhizhkaigor
Newbie
 
Posts: 5
Joined: Wed Sep 14, 2016 9:45 am

Re: Full screen mode for video

Postby magreenblatt » Thu Sep 15, 2016 1:04 pm

JCEF does not currently implement CefDisplayHandler.OnFullscreenModeChange. It would be reasonable to add it -- feel free to create an issue in the JCEF issue tracker and submit a PR.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Full screen mode for video

Postby wrightpt » Tue Dec 20, 2016 2:44 pm

I am willing to help with this. How does one do this though. The java would have to written correct? But How would one link it to the C++ and vice versa. I saw that jogamp was used. but it I were to patch my own code then maybe I could at least get practice at submitting in the future or submit this feature myself.
wrightpt
Expert
 
Posts: 151
Joined: Wed Jun 22, 2016 11:17 am

Re: Full screen mode for video

Postby magreenblatt » Wed Dec 21, 2016 9:56 am

Search the JCEF source code for CefDisplayHandler and look at how other methods are currently implemented.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Full screen mode for video

Postby wrightpt » Wed Dec 21, 2016 10:32 am

It was bad question. new it was jni, I use that on Android. just wasnt sure what role jogamp played in the event.

pretty sure nothing but have not confirmed
wrightpt
Expert
 
Posts: 151
Joined: Wed Jun 22, 2016 11:17 am


Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 21 guests