Page 1 of 1

revBrowser and Flash?

Posted: Mon Oct 27, 2014 11:27 pm
by thatkeith
I'm tinkering with revBrowser and my panoramas. It's fine for those tests that are set up as HTML5 only, but I normally publish these as Flash & HTML5. When I try to view one of those I get "blocked plugin" rather than the interactive content.

Example of HTML5 test content: http://panoramaphotographer.com/testhtml5/
Example of Flash content (sniffer will deliver HTML5 if Flash isn't available): http://panoramaphotographer.com/arcadia/foot/

So...
a) Is there a way to get revBrowser to work with Flash content?
b) Is there a way to control what the browser request tells the server so I could, for example, pretend Flash isn't installed (and trigger the relevant sniffer)?

In case it's relevant:
Mac OS X 10.9.4
LiveCode 7.0

Re: revBrowser and Flash?

Posted: Mon Oct 27, 2014 11:47 pm
by LCNeil
Hi thatKeith,

It sounds like you are using our older browser implementation. Our new browser uses the CEF framework and seems to be compatible with both of the links you have provided. Try the following script within a button on a fresh stack-

Code: Select all

on mouseUp
   put revBrowserOpenCef(the windowId of this stack, "http://panoramaphotographer.com/arcadia/foot/") into tBrowserId
   revBrowserSet tBrowserId, "visible", true
   revBrowserSet tBrowserId, "rect", the rect of this card
end mouseUp
Kind Regards,

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

Re: revBrowser and Flash?

Posted: Tue Oct 28, 2014 6:13 pm
by thatkeith
Thanks Neil! That's brilliant, it works perfectly.
Is there any background info on the new 'Cef' version of the revBrowserOpen function?

k

Re: revBrowser and Flash?

Posted: Wed Oct 29, 2014 4:21 pm
by LCNeil
Hi Keith,

We have section in our release notes that discusses the implementation of CEF browser. You can directly access these here-

http://downloads.livecode.com/livecode/ ... -6_7_0.pdf

and your are looking for page 21 :)

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

Re: revBrowser and Flash?

Posted: Wed Oct 29, 2014 4:50 pm
by thatkeith
Thanks - as the saying goes, I am excite! :)

Re: revBrowser and Flash?

Posted: Fri Oct 31, 2014 7:20 am
by [-hh]
Because the CEF browser (revBrowserOpenCEF) has currently local-PDF-disadvantages on Mac let me add this note.

On MacOS 10.10 (Yosemite) and LC 6.7/7.0 and the newest FlashPlayer plugin installed (=currently NPAPI Plug-in version 15.0.0.189) your two examples work also, with all functionality to (shift-) ctrl/opt/cmd, when using the 'old' revBrowserOpen.