Page 1 of 1

how to play video off a internet server?

Posted: Tue Jun 12, 2012 9:23 pm
by karmacomposer
I would like to create a small app (web) to play a video clip stored on a web server.
What is the proper way to go about this and what video format would best be used?
In a perfect world, the video would stream, so it would start right away. I am pretty
sure mov and wmv files both stream, as do some flash formats.
Does livecode support playing a flash video inside a web app?

Thanks for the help.

Mike

Re: how to play video off a internet server?

Posted: Wed Jun 13, 2012 9:48 am
by Klaus
Hi Mike,

LiveCode supports all QuickTime playable formats, but I would not rely on WMV etc.

But you could play your video inside of a browser object, this way you could even
have FLASH video and everything the users browser support!


Best

Klaus

Re: how to play video off a internet server?

Posted: Wed Jun 13, 2012 6:05 pm
by karmacomposer
Sounds great. So I create a browser object and then issue the play command or do I use a player object. This confuses me a bit.

Mike

Re: how to play video off a internet server?

Posted: Wed Jun 13, 2012 6:17 pm
by Klaus
Hi Mike,

well, a browser object needs of course HTML input! :D

So you need to create a "template" html with a placeholder for the movie URL,
put the text snippet into a variable, replace the placeholder with the real URL and do
...
revBrowserSet "htmltext", tVariableWithHTMLTemplate
...

Google for some example html code for the different video formats.


Best

Klaus

Re: how to play video off a internet server?

Posted: Wed Jun 13, 2012 6:46 pm
by karmacomposer
What I am trying to do is create an email template that will auto-play a video when the email is opened.

Can I use the browser object to do this? Is this way above and beyond what Live Code can do?

The video will reside on a server, not embedded, so I figure I would call the video (either a video file,
flash file or a runrev app using the web deployment feature . . . not sure which) from the email template.

Your expert opinion?

Mike

Re: how to play video off a internet server?

Posted: Wed Jun 13, 2012 7:19 pm
by Klaus
Hi Mike,

ok, WHERE do you want to display the video?
In a LiveCode stack or standalone?

You write "web deployment feature", do you want to export your stack as a "RevLet"?
In that case you can only use a (QuickTime) player object.

Email template?
Now I'm lost... 8)


Best

Klaus