在html中简单的一个播放器 player
2009-09-08 14:07
246 查看
<%@ page language="java" import="java.util.*" pageEncoding="gbk"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head runat="server">
<title>player</title>
</head>
<body topmargin="10">
<form id="form1" runat="server">
<span id="lrcContent">
</span>
<table border="0" cellpadding="0" cellspacing="0" style="width: 466px; height: 69px;">
<tr>
<td style="text-align: center">
${sessionScope.fileNames }
<div style="z-index:1; background-color: #ffffff;">
<object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" id="mediaPlayer"
height="64" style="width: 361px; margin-right: 6px;">
<param name="url" value="${sessionScope.url}"/>
<param name="volume"" value="100"/>
<param name="playcount" value="1"/>
<param name="enablecontextmenu" value="0"/>
<param name="enableerrordialogs" value="0"/>
<embed width="420" height="360" src="${sessionScope.url}" type="audio/x-pn-realaudio-plugin" controls="ImageWindow" autostart="true">
</embed>
</object>
</div>
</td>
<td style="width: 307px; text-align: left;"> </td>
</tr>
<tr>
<td valign="top" style="height: 260px;">
<!-- lrc -->
</td>
<td style="width: 307px; height: 19px;"></td>
</tr>
</table>
</form>
</body>
</html>
=================================================================================
String url="";
url=request.getContextPath()+"/void/"+wavID+".wav";
httpSession.setAttribute("url", url);
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head runat="server">
<title>player</title>
</head>
<body topmargin="10">
<form id="form1" runat="server">
<span id="lrcContent">
</span>
<table border="0" cellpadding="0" cellspacing="0" style="width: 466px; height: 69px;">
<tr>
<td style="text-align: center">
${sessionScope.fileNames }
<div style="z-index:1; background-color: #ffffff;">
<object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" id="mediaPlayer"
height="64" style="width: 361px; margin-right: 6px;">
<param name="url" value="${sessionScope.url}"/>
<param name="volume"" value="100"/>
<param name="playcount" value="1"/>
<param name="enablecontextmenu" value="0"/>
<param name="enableerrordialogs" value="0"/>
<embed width="420" height="360" src="${sessionScope.url}" type="audio/x-pn-realaudio-plugin" controls="ImageWindow" autostart="true">
</embed>
</object>
</div>
</td>
<td style="width: 307px; text-align: left;"> </td>
</tr>
<tr>
<td valign="top" style="height: 260px;">
<!-- lrc -->
</td>
<td style="width: 307px; height: 19px;"></td>
</tr>
</table>
</form>
</body>
</html>
=================================================================================
String url="";
url=request.getContextPath()+"/void/"+wavID+".wav";
httpSession.setAttribute("url", url);
相关文章推荐
- SKPlayer -- 一个超级简单好用的音乐插件+CSS+HTML+JS
- 一个基于Window Media Player控件的简单播放器
- DirectShow学习之二做一个简单的媒体文件播放器
- 推荐一个图片管理的html模版和简单的js交互
- 一个xml转html的小程序 别人一个毕业设计【难度:简单】
- ffmpeg+sdl教程——编写一个简单的播放器3(为视频加入音频)
- 一个小型的网站,比如个人网站,可以使用最简单的html静态页面就实现了,配合一些图片达到美化效果,所有的页面均存放在一个目录下,这样的网站对系统架构、性能的要求都很简单,随着互联网业务的不断丰富,网站
- 如何写一个播放器-解析MNVideoPlayer(三)
- 一个web前端初学者对html的简单理解
- 一个简单的利用微软ajax技术开发的HTMLEditer
- 一个简单的html问题,怎样默认选中radio中的某个值
- ffmpeg+sdl教程----编写一个简单的播放器5(同步视频到音频)
- jsp_首先利用纯HTML写一个简单的登录页面以及后台处理页面【代码】
- 用html制作一个简单的五环
- ffmpeg+sdl2.0做一个简单的音频播放器
- 【实例】在html中用d3.绘制一个 简单的圆
- 一个简单的HTML语法分析类
- 一个简单的HTML病毒分析
- 一个简单的HTML标签能够使64位Windows 7操作系统崩溃
- ffmpeg+sdl教程----------编写一个简单的播放器1