在网上找到的一些代码。。可是不太合适。。请问一下谁有合适的组件?THANKS
------解决方案--------------------
其实没必要那么麻烦的,直接调用media就可以了
<%@ page contentType= "text/html; charset=gb2312 " language= "java " import= "java.sql.* " errorPage= " " %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN " "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html xmlns= "http://www.w3.org/1999/xhtml ">
<head>
<meta http-equiv= "Content-Type " content= "text/html; charset=gb2312 " />
<title> 无标题文档 </title>
</head>
<body>
<object id= "Player " classid= "clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6 " width= "320 " height= "217 ">
<param name= "URL " value= "播放文件的相对路径或绝对路径 " />
<!--value就是播放的文件.其他地方自己看看就明白了-->
<embed autostart= "true " src= "windowsmedia.wmv " type= "video/x-ms-wmv " width= "320 " height= "217 " controls= "ImageWindow " console= "cons "> </embed>
</object>
</body>
</html>