在html页面插入flv播放器。ie火狐均可用

在html页面插入flv播放器。ie火狐均可用

<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'MyJsp.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->

</head>

<body>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
height="500" width="500">
<param name="movie"
value="http://localhost:8080/filedownload/vcastr22.swf?vcastr_file=http://localhost:8080/filedownload/wo.flv">
<param name="quality" value="high">
<param name="allowFullScreen" value="true" />
<embed
src="http://localhost:8080/filedownload/vcastr22.swf?vcastr_file=http://localhost:8080/filedownload/wo.flv"
quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" width="500" height="500">
</embed>
</object>
</body>
</html>

在别的博客里面看到的代码,自己做了调整,vcastr22.swf这个播放器需要去网上下载……不去也行,可以找一个网络的播放,但是我怕不稳定,就自己下了一个,放在程序里面了


你可能感兴趣的:(html)