jsp頁面的視頻播放(靜態)

直接代碼: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都兼容



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章