Playing flash on a card.

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
keyless
Posts: 211
Joined: Wed Dec 12, 2007 11:21 pm

Playing flash on a card.

Post by keyless » Fri Aug 15, 2008 9:25 pm

Does anyone have a stack that demos playing flash movie using revBrowser?

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Sat Aug 16, 2008 12:18 am

Dear keyless,

This one ueses an external
http://www.f-ab.net/

More information can be found here:
http://thread.gmane.org/gmane.comp.ide. ... cus=112498

I also have a simple Dilbert stack, which uses revBrowser to show a flash movie. You find it at the bottom of this page:
http://economy-x-talk.com/developers.html

Best regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

keyless
Posts: 211
Joined: Wed Dec 12, 2007 11:21 pm

Post by keyless » Sat Aug 16, 2008 6:10 pm

Thanks Mark. Your widget shows me that it can be done fairly easy.

The external way looks interesting, but unless they are going to release it, not much help.

I am hoping to see a stack with someone using a flash player in revBrowser on a card like one would use the QT Player. I've been wondering if it can be done seamlessly, where one couldn't even tell it was done in revBrowser.

To add to this, I am seeing more and more of the Web flash players have API's. I'm wondering if anyone has figured out how to communicate with the API's from rev. In page it is very easy to create html buttons using the API's, and would love to see if this could be done form buttons on the card, (while video is playing).

I know flash playing in a browser is sand-boxed, so I'm not sure how one could pass the javascript needed to the API.

SparkOut
Posts: 2947
Joined: Sun Sep 23, 2007 4:58 pm

Post by SparkOut » Sat Aug 16, 2008 11:02 pm

I have done this with a browser in Rev playing a swf help video file. The stack had the swf embedded, which was written out to a temporary file and the browser then initialised to point to that location, and a bit of tidying up afterwards. Never tried with hotspots and embedded script though.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Sat Aug 16, 2008 11:28 pm

Hi Sparkout,

Have you thought of turning your standalone into an http server, have the browser object connect to it and return the flash movie data directly through the socket, instead of writing it do disk first?

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

SparkOut
Posts: 2947
Joined: Sun Sep 23, 2007 4:58 pm

Post by SparkOut » Sat Aug 16, 2008 11:35 pm

Hi Mark,
That sounds an intriguing idea, which I never thought to do. Writing the help file to the temporary specialFolderPath was as good a solution as it needed to be at the time.
Making the standalone into a server is a bit beyond my expertise, or at least my expectation of my expertise level.

keyless
Posts: 211
Joined: Wed Dec 12, 2007 11:21 pm

Post by keyless » Mon Aug 18, 2008 10:35 pm

I've come up with a way to add HTML text into the page loaded in the browser (using VBscript and a DIV as an object). If the page had a running script looking for this added text maybe it could pass it to the players API or maybe I could inject script and the running script could run it. Anyone a good web scripter.

In this case I'd like to avoid having the page served. I'm hoping to create a lean controlable player.

Post Reply