RT.还有添加完了以后如何播放视频?

解决方案 »

  1.   

    这中播放器很少使用
    http://topic.csdn.net/u/20100723/16/286adadd-44cd-4e54-8936-907b8fe57ab4.html
      

  2.   

    <%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %><!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 runat="server">
        <title>无标题页</title>
        
        <script type="text/javascript" language="javascript">
        function show() {
           document.getElementById("StormPlayer").play();
        }
        </script>
    </head>
    <body onload="show();">
        <form id="form1" runat="server" >
        <div>
     <object id="StormPlayer" style="left: 3px; width:98%; top: 3px; height:425px;" codebase="http://dla.baofeng.com/webstorm/storm.cab#version=3,8,9,7" 
                             classid="clsid:BDBB259C-9729-484F-BF9D-778149B375B2">
                            <param name="URL" value="d:\.avi">
                            <PARAM NAME="ShowUI" VALUE="0">
                            <PARAM NAME="volume" VALUE="50">
                            <PARAM NAME="autoPlay" VALUE="2">
                            <PARAM NAME="mute" VALUE="0">
                            <PARAM NAME="DropEnable" VALUE="0">
                            <PARAM NAME="EnableFullScreen" VALUE="0">
                            <PARAM NAME="ShowVideo" VALUE="1">
                            <param name="loop" value="1"/>
                            </object>
        </div>
        </form>
    </body>
    </html>照着写了,还是不行,播放不了视频
      

  3.   

    我怀疑是不是codebase="http://dla.baofeng.com/webstorm/storm.cab#version=3,8,9,7"  有问题
      

  4.   

    在C#应用程序中嵌入暴风影音播放器步骤1、建立新项目步骤2、在项目中导入暴风影音中的mps.dll,(“Com组件”中名为“StormPlayer Object”)工具箱里就出现了名为“StormPlayer Object”的组件,直接拖到窗体上就可以用了。步骤3、        设置窗体FormBorderStyle为None;        设置axStormPlayer1.controlBarVisible=0;        设置axStormPlayer1.infoBarVisible=0;        设置axStormPlayer1.titleVisible=0;        设置axStormPlayer1.URL="E:\\电影1.rmvb";        设置axStormPlayer1.autoplay=1;步骤4、OK,F5~!完成。---------------------------------------------------------------------------------------------------        axStormPlayer1主要属性:         URL:这个是播放文件的路径;        autoplay:0和1,是否自动播放;         controlBarVisible:0和1,是否显示控制栏;        enableFullScreen:0和1,是否允许全屏播放;        infoBarVisible:0和1,是否显示剪辑信息栏;        titleVisible:0和1,是否显示标题栏;        titleImage:标题栏显示的图片;        titleText:标题栏显示的文字;        volume:音量大小;        axStormPlayer1主要方法:        play():开始播放;        pause():暂停播放;        stop();停止播放;这是我在网上看到的,可是我引用了mps.dll,但工具箱里没出现名为“StormPlayer Object”的组件