|
-
Problem playing the flv file
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.
PHP Code:
<%@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,
-
are you changing the relative path:
<param name="flashvars" value="file=c:\videos\star.flv" />
-
Problem playing the flv file
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...)
Code:
<%@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.
-
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?
-
Problem playing the flv file
Here is the structure of my web application (in Apache Tomcat)
MyApplication
METAINF WEB-INF
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.
Last edited by berki; 07-03-2008 at 10:09 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|