Kali Charan Rajput
Kali Charan Rajput

Reputation: 12596

embed video object in html

I embed a video in html page with swf file. that is running on local host but when i run this on live server. than it dosent work properly. I link flv video in swf file and embed it in html.

<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','600','height','338','title','testing','src','Edit_video/9vi/home-page2','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','Edit_video/9vi/home-page2' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="600" height="338" title="testing">
  <param name="movie" value="Edit_video/9vi/home-page2.swf" />
  <param name="quality" value="high" />
  <embed src="Edit_video/home-page2.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="600" height="338"></embed>
</object></noscript>

Upvotes: 1

Views: 1186

Answers (3)

bobince
bobince

Reputation: 536379

running on local host but when i run this on live server

One reason for that can be careless handling of case.

Windows native filesystems you are case-insensitive, so you can refer to Edit_video and if the real name of the directory is actually edit_video with a small e it doesn't care. But if you then upload it to a server running a case-sensitive filesystem (like most Linux hosts), that won't work any more; the two are different filenames and won't match.

Upvotes: 1

Jon
Jon

Reputation: 12992

Additionally you need to ensure that the file system on your local server matches that of your live server.

I.e. make sure that the file path

Edit_video/9vi/home-page.swf

is valid from where the HTML is being stored online.

Upvotes: 1

Amarghosh
Amarghosh

Reputation: 59451

These two urls don't match:

<param name="movie" value="Edit_video/9vi/home-page2.swf" />

<embed src="Edit_video/home-page2.swf" ... />

Upvotes: 2

Related Questions