Page 1 of 1

New command revBrowserOpenCef

Posted: Fri May 23, 2014 12:06 pm
by PaoloMazza
Using LC 6_7_0_dp_4 I tryed to use the new command revBrowserOpenCef to start RevBrowser.
I realized that it is very slow and it takes ages to upload HTML text.
See my stack attached.
If I open the web page below with the first START button (with revBrowserOpen ) revbrowser opens it soon.
If I open the same page with the second START button (with revBrowserOpenCef ) revbrowser opens it in 5 seconds
Why?
Thanks,
Paolo Mazza

Re: New command revBrowserOpenCef

Posted: Fri May 23, 2014 12:35 pm
by [-hh]
..........

Re: New command revBrowserOpenCef

Posted: Fri May 23, 2014 12:55 pm
by livecodeian
Hi Paulo, the Chromium Embedded Framework libraries used by the new browser are loaded the first time a browser is created with revBrowserOpenCef. As these libraries are quite large (around 50MB) this would account for the delay.

Ian.

Re: New command revBrowserOpenCef

Posted: Fri May 23, 2014 1:17 pm
by LCfraser
Something else worth noting is that LiveCode 6.7 has not yet been merged into LiveCode 7.0 so the CEF is not yet available in LiveCode 7.0.0-DP-4.

Re: New command revBrowserOpenCef

Posted: Fri May 23, 2014 1:36 pm
by PaoloMazza
runrevian wrote:Hi Paulo, the Chromium Embedded Framework libraries used by the new browser are loaded the first time a browser is created with revBrowserOpenCef. As these libraries are quite large (around 50MB) this would account for the delay.

Ian.
I am testing this stack with LC 6.7.0-dp-4 in a new iMac with OS X 10.9.2 (13C1021), which is supposed to be quite a fast machine and it is really annoing to wait such a long time any time I have to open revBrowser. It looks like LC is uploading this library any time I send the revBrowserOpenCef command.
How can I fix this?
Thanks Paolo

Re: New command revBrowserOpenCef

Posted: Fri May 23, 2014 3:33 pm
by PaoloMazza
Hi all,
are you sure that this revBrowserOpenCef is working properly LC 6.7.0-dp-4 .
I tryed to work with this new command, trying to open HTML pages that I was able to open with the revBrowserOpen command, but it does not seem to work.
Is there any documentation , sample stack or lesson to understand better how to use it?
Thanks a lot,
Paolo

Re: New command revBrowserOpenCef

Posted: Fri May 23, 2014 3:41 pm
by LCNeil
HI Paolo,

The following script executed from a button works for me in 6.7 dp4

Code: Select all

on mouseUp
   put revBrowserOpenCef(the windowId of this stack, "http://www.google.com") into tBrowserId
   revBrowserSet tBrowserID, "rect" , the rect of graphic "rectangle"
end mouseUp
Kind Regards,


Neil Roger

RunRev Support Team ~ http://www.runrev.com

-----

Re: New command revBrowserOpenCef

Posted: Fri May 23, 2014 4:28 pm
by PaoloMazza
Thank You Neil,
now I realized that HTML5 audio and video is not supported in The Chromium Embedded Framework.
All the best
Paolo

Re: New command revBrowserOpenCef

Posted: Fri May 23, 2014 4:40 pm
by LCNeil
Hi Paolo,

I believe most HTML 5 audio and video are supported in the current CEF browser implementation in 6.7

The tests on http://html5test.com/ confirm this and I am also able to play embedded videos/audio from the following test sites-

http://www.quirksmode.org/html5/tests/video.html

http://hpr.dogphilosophy.net/test/

Kind Regards,


Neil Roger
--
RunRev Support Team ~ http://www.runrev.com
——

Re: New command revBrowserOpenCef

Posted: Fri May 23, 2014 4:58 pm
by capellan
According to http://html5test.com/
this new Chromium Embedded Framework
is identified as Chrome 31 and scores 450
from 555 points.

Works fine on Windows. 8)

Re: New command revBrowserOpenCef

Posted: Fri May 23, 2014 5:21 pm
by robertem
I have had the same experience as Paolo with revBrowserCEF (on OSX 10.8.5, LC 6.7 DP3), about a 5 second load time, have not tried it on windows as of yet.

Rob

Re: New command revBrowserOpenCef

Posted: Fri May 23, 2014 6:06 pm
by Newbie4
I was experimenting with that command on v 6.7 dp4 and it has been crashing on me multiple times. I was using the code that Neil posted previously. I was just opening and closing a browser window

I cut and pasted the dump Apple displays. Would that be of any use to you?

Re: New command revBrowserOpenCef

Posted: Sat May 24, 2014 3:49 am
by capellan
This is a HTML5 audio compliance test webpage:
http://areweplayingyet.org/

Chrome Embedded Framework (Chrome 31) ranks 40/47
and web browser Chrome 34 ranks 45/47

Attached to this message is a modified revBrowser stack
that I am using for these tests in LC 6.7 dp4 (windows)
Using this stack in any other LiveCode version
that does not have support for Chrome Embedded
Framework must produce many errors...

Al

Re: New command revBrowserOpenCef

Posted: Mon Jun 23, 2014 1:21 am
by Ocean
PaoloMazza wrote:If I open the web page below with the first START button (with revBrowserOpen ) revbrowser opens it soon.
If I open the same page with the second START button (with revBrowserOpenCef ) revbrowser opens it in 5 seconds
Why?
This is the result of a silly bug that causes the CEF browser to be refreshed only when the user performs some kind of input (e.g. using the mouse or a keyboard).

So if you perform some input in just 1 second (instead of 5 seconds), it will take 1 second to refresh. :)

If you don't move the mouse or perform any other input at all, it will never refresh. :(

See this bug:

http://quality.runrev.com/show_bug.cgi?id=12671

Presumably/hopefully, this will be fixed with a high priority as it is a major bug that is very obvious to users.

It would be hard for RunRev to properly introduce the CEF browser with a straight face while this bug still exists. :mrgreen: