playing a YouTube vid in a stack

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
adventuresofgreg
Posts: 349
Joined: Tue Oct 28, 2008 1:23 am
Contact:

playing a YouTube vid in a stack

Post by adventuresofgreg » Thu Oct 28, 2010 2:42 pm

Hi: Is there any way to embed a youtube video in a stack and play it?

The only way I can think of off-hand, is to have the LiveCode app write an html page with the YouTube vid embedded, then view the html with a browser. I'd rather keep it all in LC if possible.

Thanks!

Klaus
Posts: 14208
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: playing a YouTube vid in a stack

Post by Klaus » Thu Oct 28, 2010 3:09 pm

Hi Greg,

you can keep in LC and use the browser object to display your selfmade html :)


Best

Klaus

adventuresofgreg
Posts: 349
Joined: Tue Oct 28, 2008 1:23 am
Contact:

Re: playing a YouTube vid in a stack

Post by adventuresofgreg » Thu Oct 28, 2010 3:14 pm

Klaus wrote:Hi Greg,

you can keep in LC and use the browser object to display your selfmade html :)


Best

Klaus
Thanks Klaus - I was just looking at RevBrowser. I guess the best way would be to whip up some custom html that includes the embed code (resizing the youtube as required), then display it in a RevBrowser window. right?

Klaus
Posts: 14208
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: playing a YouTube vid in a stack

Post by Klaus » Thu Oct 28, 2010 4:55 pm

EX-ACTLY :D

If you want to include the Flash video (or whatever you want to show) you could store it in a custom property
of the stack and write it to file specialfolderpath("temporary") when needed.


Best

Klaus

Post Reply