直接代码:jsp页面
<%@ page language="java" contentType="text/html; charset=utf-8"
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>test</title>
</head>
<body>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
width="500" height="400">
<param name="movie" value="flvplayer.swf" />
<param name="quality" value="high" />
<param name="allowFullScreen" value="true" />
<param name="FlashVars" value="vcastr_file=ww.flv" />
<embed src="flvplayer.swf" allowfullscreen="true" flashvars="vcastr_file=ww.flv"
quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" width="500" height="400">
</embed>
</object>
</body>
</html>
flvplayer.swf
这个事播放器的文件,我是直接下载了在我项目的根目录下的;
ww.flv
这个是我用于测试的文件。用户可以自定义的。也是在根目录下的。
经过测试 IE6,IE9,Firefox,google都兼容