how to play video off a internet server?

Visuals, audio, animation. Blended, not stirred. If LiveCode is part of your rich media production toolbox, this is the forum for you.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
karmacomposer
Posts: 361
Joined: Wed Apr 27, 2011 2:12 pm

how to play video off a internet server?

Post by karmacomposer » Tue Jun 12, 2012 9:23 pm

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

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

Re: how to play video off a internet server?

Post by Klaus » Wed Jun 13, 2012 9:48 am

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

karmacomposer
Posts: 361
Joined: Wed Apr 27, 2011 2:12 pm

Re: how to play video off a internet server?

Post by karmacomposer » Wed Jun 13, 2012 6:05 pm

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

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

Re: how to play video off a internet server?

Post by Klaus » Wed Jun 13, 2012 6:17 pm

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

karmacomposer
Posts: 361
Joined: Wed Apr 27, 2011 2:12 pm

Re: how to play video off a internet server?

Post by karmacomposer » Wed Jun 13, 2012 6:46 pm

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

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

Re: how to play video off a internet server?

Post by Klaus » Wed Jun 13, 2012 7:19 pm

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

Post Reply