;

PDA

Click to See Complete Forum and Search --> : Problem playing the flv file


berki
06-21-2008, 10:49 PM
I make a simple Webpage (jsp page) and i embed a flvplayer. Everything is ok if the flash video file under web root. But i want to save the videos let say in c:/videos but the flvplayer does not start to play the videos from that location.
Here is my sample jsp file.

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<h1>JSP Page</h1>


<object type="application/x-shockwave-flash" data="flvplayer.swf" width="500" height="450" id="FlvPlayer">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value=flvplayer.swf" />
<param name="quality" value="high" />
<param name="scale" value="noScale" />
<param name="wmode" value="transparent" />
<param name="bgcolor" VALUE="#000000" />
<param name="flashvars" value="file=c:\star.flv" />
</object>

</body>
</html>

Any idea??
Thanks,

intromo
06-28-2008, 07:54 PM
are you changing the relative path:

<param name="flashvars" value="file=c:\videos\star.flv" />

berki
06-28-2008, 08:58 PM
Thanks for your reply. I made a mistake. Here is the correct code.
The flv player is displayed, but when i press play it hangs (loading...)

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<h1>JSP Page</h1>


<object type="application/x-shockwave-flash" data="flvplayer.swf" width="500" height="450" id="FlvPlayer">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value=flvplayer.swf" />
<param name="quality" value="high" />
<param name="scale" value="noScale" />
<param name="wmode" value="transparent" />
<param name="bgcolor" VALUE="#000000" />
<param name="flashvars" value="file=c:\video\star.flv" />
</object>

</body>
</html>

Thanks again for your reply.

intromo
06-29-2008, 02:19 PM
Try this:
<param name="flashvars" value="file=../video/star.flv" />

Normally I call the FLV, as I set-up the player in flash (within flash). What version of flash are you using?

berki
07-03-2008, 11:07 AM
Here is the structure of my web application (in Apache Tomcat)
MyApplication
METAINF
WEB-INF
index.jsp
mediaplayer.swf


I had tried such a thing (it points out of webapp context), but to put video files out of the app context but it was the same problem. I thought to place file in c:/videos/ should be easier.

Thanks a lot for your reply.