Loading remote video (MP4) with SWFObject

Posted by Reddy S R on Stack Overflow See other posts from Stack Overflow or by Reddy S R
Published on 2012-06-25T22:53:39Z Indexed on 2012/06/26 3:16 UTC
Read the original article Hit count: 200

On my webpage I have a swfobject, from Camtasia, that loads mp4 data through FlashVars like this:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="640" height="498" id="csSWF">
...
<param name="flashvars" value="autostart=false&content=funny.mp4&color=0x000000,0x000000" />

This works fine when the mp4 is on the same server(, and as a file).
But when the file is residing on another server, the problem creeps in. Below is how I modify the flashvars.
<param name="flashvars" value="autostart=false&content=http://myxyzsite.com/Private/Media/funny.mp4&color=0x000000,0x000000" />
This article explains how to load files from another server.

When I point to this URL (http://myxyzsite.com/Private/Media/funny.mp4) in my browser directly, Open/Save dialog box is popped up. So the file exists. Should I set any HTTP headrs, say Content-Disposition to Attachment?

© Stack Overflow or respective owner

Related posts about video-streaming

Related posts about mp4