revBrowser and Flash?

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
thatkeith
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 383
Joined: Mon Mar 01, 2010 7:13 pm
Contact:

revBrowser and Flash?

Post by thatkeith » Mon Oct 27, 2014 11:27 pm

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
Technical Writer, Meta
University Lecturer
Technical Editor, MacUser (1996-2015)
360 VR media specialist

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

Re: revBrowser and Flash?

Post by LCNeil » Mon Oct 27, 2014 11:47 pm

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

thatkeith
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 383
Joined: Mon Mar 01, 2010 7:13 pm
Contact:

Re: revBrowser and Flash?

Post by thatkeith » Tue Oct 28, 2014 6:13 pm

Thanks Neil! That's brilliant, it works perfectly.
Is there any background info on the new 'Cef' version of the revBrowserOpen function?

k
Technical Writer, Meta
University Lecturer
Technical Editor, MacUser (1996-2015)
360 VR media specialist

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

Re: revBrowser and Flash?

Post by LCNeil » Wed Oct 29, 2014 4:21 pm

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

thatkeith
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 383
Joined: Mon Mar 01, 2010 7:13 pm
Contact:

Re: revBrowser and Flash?

Post by thatkeith » Wed Oct 29, 2014 4:50 pm

Thanks - as the saying goes, I am excite! :)
Technical Writer, Meta
University Lecturer
Technical Editor, MacUser (1996-2015)
360 VR media specialist

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: revBrowser and Flash?

Post by [-hh] » Fri Oct 31, 2014 7:20 am

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.
shiftLock happens

Post Reply