在html中简单的一个播放器 player

<%@ 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;">&nbsp;</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);

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值