New command revBrowserOpenCef

Discussion about LiveCode Global Jam events and activities

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
PaoloMazza
Posts: 27
Joined: Wed Nov 15, 2006 11:27 am

New command revBrowserOpenCef

Post by PaoloMazza » Fri May 23, 2014 12:06 pm

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
Attachments
MyPlayer2014_sample.livecode.zip
(25.6 KiB) Downloaded 113 times
Paolo Mazza
Italy

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1552
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: New command revBrowserOpenCef

Post by [-hh] » Fri May 23, 2014 12:35 pm

..........
Last edited by [-hh] on Wed Aug 13, 2014 2:14 pm, edited 1 time in total.
shiftLock happens

livecodeian
Posts: 6
Joined: Mon Apr 22, 2013 3:29 pm
Location: Edinburgh
Contact:

Re: New command revBrowserOpenCef

Post by livecodeian » Fri May 23, 2014 12:55 pm

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.

LCfraser
Livecode Staff Member
Livecode Staff Member
Posts: 71
Joined: Thu Nov 28, 2013 11:18 am
Contact:

Re: New command revBrowserOpenCef

Post by LCfraser » Fri May 23, 2014 1:17 pm

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.

PaoloMazza
Posts: 27
Joined: Wed Nov 15, 2006 11:27 am

Re: New command revBrowserOpenCef

Post by PaoloMazza » Fri May 23, 2014 1:36 pm

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
Paolo Mazza
Italy

PaoloMazza
Posts: 27
Joined: Wed Nov 15, 2006 11:27 am

Re: New command revBrowserOpenCef

Post by PaoloMazza » Fri May 23, 2014 3:33 pm

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
Paolo Mazza
Italy

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: New command revBrowserOpenCef

Post by LCNeil » Fri May 23, 2014 3:41 pm

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

-----

PaoloMazza
Posts: 27
Joined: Wed Nov 15, 2006 11:27 am

Re: New command revBrowserOpenCef

Post by PaoloMazza » Fri May 23, 2014 4:28 pm

Thank You Neil,
now I realized that HTML5 audio and video is not supported in The Chromium Embedded Framework.
All the best
Paolo
Paolo Mazza
Italy

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: New command revBrowserOpenCef

Post by LCNeil » Fri May 23, 2014 4:40 pm

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
——

capellan
Posts: 409
Joined: Wed Aug 15, 2007 11:09 pm
Contact:

Re: New command revBrowserOpenCef

Post by capellan » Fri May 23, 2014 4:58 pm

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)

robertem
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 24
Joined: Tue Mar 19, 2013 2:58 pm

Re: New command revBrowserOpenCef

Post by robertem » Fri May 23, 2014 5:21 pm

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

Newbie4
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 254
Joined: Sun Apr 15, 2012 1:17 am
Location: USA
Contact:

Re: New command revBrowserOpenCef

Post by Newbie4 » Fri May 23, 2014 6:06 pm

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?

capellan
Posts: 409
Joined: Wed Aug 15, 2007 11:09 pm
Contact:

Re: New command revBrowserOpenCef

Post by capellan » Sat May 24, 2014 3:49 am

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
Attachments
Browser Sampler.zip
(131.24 KiB) Downloaded 120 times

Ocean
Posts: 16
Joined: Wed May 03, 2006 4:29 am

Re: New command revBrowserOpenCef

Post by Ocean » Mon Jun 23, 2014 1:21 am

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:

Post Reply

Return to “LiveCode Global Jam”