We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you a podcast all about Citrix Workspace, moving to the cloud, and analytics & intelligence. Episode 2 coming soon!Listen Now

x

I need to embed a .flv/.swf file from one server onto another server hosting a different website.

Medium Priority
734 Views
Last Modified: 2013-11-12
Hello, I have some .flv/.swf files on a server which I have admin access to, and I need to embed the videos on a squarespace (www.squarespace.com) site I'm creating (Squarespace is a web hosting company). I have very limited bandwidth and space for the site and don't want to waste it on hosting the video myself. The server the videos are on is not a video hosting service like youtube and I just can't get the video to embed on the other page. Is this actually possible to do? I've linked the code I have been trying to use (Without the actual web addresses). The important facts to take from these details are that the videos I want to embed are not on the same server as the webpage, and the server they are on is not a video hosting service. I appreciate any help I can get. Thanks.
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/
cabs/flash/swflash.cab#version=7,0,0,0" width="400" height="300" 
id="flashvideoplayer.swf" align="middle">
         <param name="allowScriptAccess" value="sameDomain">
         <param name="movie" 
                  value="http://www.myhomepage.com/flashvideoplayer.swf?
                  flv=http://www.myhomepage.com/myvideofile.flv">
         <param name="quality" value="high">
         <param name="bgcolor" value="#ffffff">
<embed src="http://www.myhomepage.com/flashvideoplayer.swf?
                  flv=http://www.myhomepage.com/myvideofile.flv" quality="high" bgcolor="#ffffff" width="400" height="300" name="flashvideoplayer.swf" 
align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">
</object>

Open in new window

Comment
Watch Question

Hello,

I tried as-is the code you posted with a SWF sample from another website, embedding it to my own site, and it worked. Try code below if you want (all I changed is SWF source URL).

If I'm not wrong you use scripts in your SWF, check them as the error might be there (perhaps retrieving the swf source url variable, etc.)


<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="400" height="300" 
id="flashvideoplayer.swf" align="middle">
         <param name="allowScriptAccess" value="sameDomain">
         <param name="movie" 
                  value="http://www.myhomepage.com/flashvideoplayer.swf?
                  flv=http://www.myhomepage.com/myvideofile.flv">
         <param name="quality" value="high">
         <param name="bgcolor" value="#ffffff">
<embed src="http://bytescout.com/demo/swfscout_VideoSample.swf" quality="high" bgcolor="#ffffff" width="400" height="300" name="flashvideoplayer.swf" 
align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></object>

Open in new window

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.