New command revBrowserOpenCef
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 27
- Joined: Wed Nov 15, 2006 11:27 am
New command revBrowserOpenCef
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
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 504 times
Paolo Mazza
Italy
Italy
-
- VIP Livecode Opensource Backer
- Posts: 2262
- Joined: Thu Feb 28, 2013 11:52 pm
- Location: Göttingen, DE
Re: New command revBrowserOpenCef
..........
Last edited by [-hh] on Wed Aug 13, 2014 2:14 pm, edited 1 time in total.
shiftLock happens
-
- Posts: 10
- Joined: Mon Apr 22, 2013 3:29 pm
- Location: Edinburgh
- Contact:
Re: New command revBrowserOpenCef
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.
Ian.
Ian Macphail, LiveCode Ltd.
Re: New command revBrowserOpenCef
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.
-
- Posts: 27
- Joined: Wed Nov 15, 2006 11:27 am
Re: New command revBrowserOpenCef
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.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.
How can I fix this?
Thanks Paolo
Paolo Mazza
Italy
Italy
-
- Posts: 27
- Joined: Wed Nov 15, 2006 11:27 am
Re: New command revBrowserOpenCef
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
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
Italy
Re: New command revBrowserOpenCef
HI Paolo,
The following script executed from a button works for me in 6.7 dp4
Kind Regards,
Neil Roger
RunRev Support Team ~ http://www.runrev.com
-----
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
Neil Roger
RunRev Support Team ~ http://www.runrev.com
-----
-
- Posts: 27
- Joined: Wed Nov 15, 2006 11:27 am
Re: New command revBrowserOpenCef
Thank You Neil,
now I realized that HTML5 audio and video is not supported in The Chromium Embedded Framework.
All the best
Paolo
now I realized that HTML5 audio and video is not supported in The Chromium Embedded Framework.
All the best
Paolo
Paolo Mazza
Italy
Italy
Re: New command revBrowserOpenCef
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
——
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
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.
this new Chromium Embedded Framework
is identified as Chrome 31 and scores 450
from 555 points.
Works fine on Windows.
Re: New command revBrowserOpenCef
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
Rob
-
- VIP Livecode Opensource Backer
- Posts: 327
- Joined: Sun Apr 15, 2012 1:17 am
- Location: USA
- Contact:
Re: New command revBrowserOpenCef
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?
I cut and pasted the dump Apple displays. Would that be of any use to you?
Cyril Pruszko
https://sites.google.com/a/pgcps.org/livecode/
https://sites.google.com/a/setonhs.org/app-and-game-workshop/home
https://learntolivecode.com/
https://sites.google.com/a/pgcps.org/livecode/
https://sites.google.com/a/setonhs.org/app-and-game-workshop/home
https://learntolivecode.com/
Re: New command revBrowserOpenCef
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
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
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).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?
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.