日期:2014-05-18  浏览次数:20716 次

如何实现视频
网站中想加入视频点播
不知道怎么才能实现
要在动态的实现
请各路高手帮忙了

------解决方案--------------------
<%@ include file= "conn.jsp "%>
<%String sql= "select * from scott.download where id = ' " + request.getParameter( "id ") + " ' ";
ResultSet rs=stmt.executeQuery(sql);
if(rs.next()){
if((session.getValue( "user ")==null)&&(rs.getString( "club ")!=null)){
%>
<script>
alert( '对不起!此为会员影片,请在首页注册成我们的会员并登录! ');
//document.location= "reg1.jsp "
window.close();
</script>
<%}else{
String url1= " ";
String downid= "2 ";
if(downid.equals(request.getParameter( "downid "))){
url1=rs.getString( "filename1 ");
}
downid= "3 ";
if(downid.equals(request.getParameter( "downid "))){
url1=rs.getString( "filename2 ");
}
downid= "1 ";
if(downid.equals(request.getParameter( "downid "))){
url1=rs.getString( "filename ");
}
%>
<head>
<title> 在线点播 </title>
<meta http-equiv=Content-Type content= "text/html; charset=gb2312 ">
<style type=text/css>
td{font-size:9pt;line-height:13pt}
a:link{color:#FFFF00;text-decoration:none}
a:visited{color:#FFFF00;text-decoration:none}
a:hover{color:#FFFF00;text-decoration:underline} </style>
</head>

<body bgcolor= "#000000 " text= "#FFFFFF " topmargin= "0 " leftmargin= "0 ">
<table border= "0 " width= "610 " cellspacing= "0 " cellpadding= "0 " bgcolor= "#3F3F3F ">
<tr>
<td width= "450 " valign= "top ">
<object classid= "clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95 " id= "MediaPlayer1 " width= "450 " height= "400 ">
<param name= "AudioStream " value= "-1 ">
<param name= "AutoSize " value= "0 ">
<param name= "AutoStart " value= "-1 ">
<param name= "AnimationAtStart " value= "-1 ">
<param name= "AllowScan " value= "-1 ">
<param name= "AllowChangeDisplaySize " value= "-1 ">
<param name= "AutoRewind " value= "0 ">
<param name= "Balance " value= "0 ">
<param name= "BaseURL " value>
<param name= "BufferingTime " value= "5 ">
<param name= "CaptioningID " value>
<param name= "ClickToPlay " value= "-1 ">
<param name= "CursorType " value= "0 ">
<param name= "CurrentPosition " value= "-1 ">
<param name= "CurrentMarker " value= "0 ">
<param name= "DefaultFrame " value>
<param name= "DisplayBackColor " value= "0 ">
<param name= "DisplayForeColor " value= "16777215 ">
<param name= "DisplayMode " value= "0 ">
<param name= "DisplaySize " value= "2 ">
<param name= "Enabl