Loading remote video (MP4) with SWFObject
- by Reddy S R
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?