请问vlc在web中使用需要什么条件,什么环境,如何才能点击某个超链然后弹出一个播放窗体,播放指定的文件。

解决方案 »

  1.   

    <OBJECT classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921"
            codebase="http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab#Version=0,8,6,0"
            width="450"
            height="340"
            id="vlc"
            events="True">
    <param name="MRL" value="<%=url %>" />
    <param name="ShowDisplay" value="True" />
    <param name="AutoLoop" value="False" />
    <param name="AutoPlay" value="True" /></OBJECT>
      

  2.   

    <body onload="hidebox();">
    <form action="" method="post" name="">
    <div id="left" class="left">
    <table width="100%" height="524px" border="0" cellspacing="0"
    cellpadding="0">
    <tr valign="top">
    <td width="32%" id="tdUserList">
    <table width="100%" border="0">
    <thead class="title">
    <tr align="left">
    <th colspan="4" height="35px">
    历史 视频 告警 <%
    //String url = request.getParameter("url");
    String addressIP = "";
    addressIP = request.getRemoteAddr();
    if (addressIP.equals("127.0.0.1")) {
    addressIP = ConvertTool.getLocalIP();
    }
    String url = "rtp://@" + addressIP + ":40000";
    %>
    <!--  <input type="hidden" name="vlc_ip" value="">-->
    </th>
    </tr>
    </thead>
    </table>
    <div style="height: 496px; overflow-y: auto;">
    <table id="hutia" width="100%" border=0
    style="border: 1px solid gray;">
    <tr valign="middle">
    <td width="30%" align="left">
    开始时间 :
    </td>
    <td width="70%">
    <input id="atime" type="text" name="startTime"
    onclick="show_cele_date('','',startTime)"
    style="width: 100%;" />
    </td>
    </tr>
    <tr valign="middle">
    <td width="" align="left">
    结束时间 :
    </td>
    <td width="">
    <input id="btime" type="text" name="endTime"
    onclick="show_cele_date('','',endTime)" style="width: 100%;" />
    </td>
    </tr>
    </table>
    <br>
    <table align="center">
    <tr>
    <td>
    <input type="button" class=btn id="btnUpdate"
    onClick="findVideoIndexStat();" value="查 询"
    style="display: block;" />
    </td>
    <td>
    <input type="reset" class=btn id="btnConfirmAdd_3"
    value="清 空" style="display: block;" />
    </td>
    </tr>
    </table>
    </div>
    </td>
    </tr>
    </table>
    </div>
    <div id="cen" class="cen">
    <table cellspacing=0 cellpadding=0 height=524px>
    <tr>
    <td bgcolor=#AECBD4 width="12" onclick="pr(1);">
    &lt&gt
    </td>
    </tr>
    </table>
    </div>
    <div id="right" class="right">
    <!-- 选项卡0开始 -->
    <div class="nTab">
    <!-- 标题开始 -->
    <div class="TabTitle">
    <ul id="myTab1">
    <li class="active" onclick="nTabsTwo(this,1);">
    表格显示
    </li>
    </ul>
    </div>
    <!-- 内容开始 -->
    <div class="TabContent">
    <div id="myTab1_C1" class=""
    style="overflow-x: scroll; width: 100%; height: 490px;">
    <table width="1745" border=0 id="hutia">
    <thead class="">
    <tr class="title" align="center">
    <td width="80">
    媒体类型
    </td>
    <td width="146">
    开始时间
    </td>
    <td width="146">
    结束时间
    </td>
    <td width="82">
    管理编码
    </td>
    <td width="129">
    管理名称
    </td>
    <td width="106">
    源ip
    </td>
    <td width="66">
    源端口
    </td>
    <td width="105">
    目的ip
    </td>
    <td width="66">
    目的端口
    </td>
    <td width="75">
    告警类型
    </td>
    <td width="75">
    告警级别
    </td>
    <td width="88">
    告警值max
    </td>
    <td width="88">
    告警值min
    </td>
    <td width="88">
    告警值avg
    </td>
    <td width="114">
    周期内断流次数
    </td>
    <td width="112">
    周期指标的个数
    </td>
    <td width="109">
    操作
    </td>
    </tr>
    </thead>
    <tbody id="tblist"></tbody>
    <table>
    <tr>
    <form method="post" action="/iMVQ/videoAlarmStatAction.do">
    <input type="hidden" name="method" value="pageIndex" />
    <table border="0" cellspacing="#FFFFFF" bordercolor="#FFFFFF">
    <tr>
    <td>
    <<
    </td>
    <td>
    <a href="#" onclick="searchExec_logIndex('down')">上一页
    </a>
    </td>
    <td>
    转到第
    <input type="text" name="pageIndex" size="6" />

    <input class=btn type="submit" value="跳转" />
    </td>
    <td>
    <a href="#" onclick="searchExec_logIndex('up')">下一页</a>
    </td>
    <td>
    >>
    </td>
    </tr>
    </table>
    </form>
    </tr>
    </table>
    </table>
    </div>
    </div>
    </div>
    </div>
    <div id="ly"
    style="position: absolute; top: 0px; filter: alpha(opacity = 60); background-color: #777; z-index: 2; left: 0px; display: none;">
    <div id="showimage" align="center"
    style="position: absolute; z-index: 10; width: 100px; left: expression(( document . body . offsetWidth-540)/ 2 ); top: 100">
    <table border="0" width="250" bgcolor="#AECBD4"
    cellspacing="
    0" cellpadding="2">
    <tr>
    <td width="100%">
    <table border="0" width="100%" cellspacing="0" cellpadding="0"
    height="36">
    <tr>
    <td style="cursor: hand" width="100%"> <center>
    <font face="Verdana" color="#FFFFFF"><strong><small>VIDEOLAN
    CLIENT 视频告警回看</small> </strong> </font>
    </center>
    </td>
    <td style="cursor: hand">
    <a href="#" onClick="hidebox();endCommand()"><img
    src="../image/close.jpg" width="24" height="23" border=0>
    </a>
    </td>
    </tr>
    <tr>
    <td width="100%" bgcolor="#FFFFFF" style="padding: 4px"
    colspan="2">
    <small><strong><center>
    <font face="Verdana"> <OBJECT
    classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921"
    codebase="http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab#Version=0,8,6,0"
    width="540" height="350" id="vlc" events="True">
    <param name="MRL" value="<%=url%>" />
    <param name="ShowDisplay" value="True" />
    <param name="AutoLoop" value="False" />
    <param name="AutoPlay" value="True" />
    </OBJECT> </font>
    </center> </strong> </small><small><font face="Verdana"></font> </small>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </div>
    </form>
    </body>