Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

getting an error 'Video cannot be downloaded'

5 replies [Last post]

I am in need of embedding video clips within my site. from web, I picked up this code and try to run the html, I get the error 'Video cannot be downloaded';

The video file is of 'avi' format.

My code is as follows:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>SWFObject </title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="swfobject.js"></script>

<script type="text/javascript">
swfobject.registerObject("myId", "9.0.115", "expressInstall.swf");
</script>

</head>
<body>
<div>

<object id="myId" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="780" height="420">

<param name="movie" value="videos/chappati1.avi" type="video" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="videos/chappati1.avi" width="780" height="420" >
<!--<![endif]-->
<p>Alternative content</p>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
</body>
</html>

The set up i have is I have Tomcat 6.0.20 and Multimedia is an application within webapps. The above code is one if the html file. I have 'videos' folder within MultiMedia application and I have the avi file placed there.

Can someone help me on this.

Thanks in advance,
Vijaya

Can you provide a link to where you are running this?

I tested this html in my localhost. The url i gave is http://localhost/MultiMedia/test.html. the avi file is in /videos/.avi

What am i doing wrong?

Thanks in advance for the help.

Vijaya

Vijaya,

The JW Player can not play avi files.

Also, we can not help you out without a testpage.

Best,

Darjan

Thanks for the reply. I did kind of figured out that JW player cannot play an avi file. After looking at various sites, I am now getting a vague picture what needs to be done to include a vido in a web page.

The thing is my video works fine from my java code but it does not end the process once the video is over. Also i would like to have a start, pause, sound buttons so that the user can set it dynamically when they are watching the video.

Thanks,
Vijaya

Can you provide a link to where you are running this? Thanks.