• 网页中嵌入视频


    1.调用RealPlay或RealOne播放器的代码(初步测试能播 rm、rmvb)


     


    <OBJECT classid=”clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA” height=”265″ width=”500″>
    <PARAM NAME=”_ExtentX” VALUE=”10372″>
    <PARAM NAME=”_ExtentY” VALUE=”6456″>
    <PARAM NAME=”SRC” VALUE=”demo.rm”>
    <PARAM NAME=”AUTOSTART” VALUE=”-1″>
    <PARAM NAME=”SHUFFLE” VALUE=”0″>
    <PARAM NAME=”PREFETCH” VALUE=”0″>
    <PARAM NAME=”NOLABELS” VALUE=”0″>
    <PARAM NAME=”CONTROLS” VALUE=”IMAGEWINDOW”>
    <PARAM NAME=”CONSOLE” VALUE=”Clip528211525″>
    <PARAM NAME=”LOOP” VALUE=”0″>
    <PARAM NAME=”NUMLOOP” VALUE=”0″>
    <PARAM NAME=”CENTER” VALUE=”0″>
    <PARAM NAME=”MAINTAINASPECT” VALUE=”0″>
    <PARAM NAME=”BACKGROUNDCOLOR” VALUE=”#000000″>
    <embed _extentx=”10372″ _extenty=”6456″ autostart=”0″ src=”" shuffle=rdquo;0Prime; prefetch=rdquo;0Prime; nolabels=rdquo;0Prime; controls=rdquo;IMAGEWINDOWrdquo; console=rdquo;Clip528211525Prime; loop=rdquo;0Prime; numloop=rdquo;0Prime; center=rdquo;0Prime; maintainaspect=rdquo;0Prime; backgroundcolor=rdquo;#000000Prime;gt;
    </embed>
    </OBJECT>


     


    2.调用Windows Media Player 播放器代码(初步测试能播 rm、rmvb、avi、wmv)


     


     


    <object align=”middle” classid=”CLSID:22d312-b6-11d0-94ab7e95″
    id=”MediaPlayer” width=”500″ height=”350″>
    <param name=”ShowStatusBar” value=”-1″>
    <param name=”Filename” value=”demo.asf”>
    <embed type=”application/x-oleobject” codebase=”http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701″ flename=”mp” src=”你的视频路径” width=500 height=300></embed>
    </object>


     


    详细参数


     


    src 音乐文件的路径及文件名; 
    autostart true为音乐文件上传完后自动开始播放,默认为false(否) 
    loop true为无限次重播,false为不重播,某一具体值(整数)为重播多少次 
    volume 取值范围为"0-100",设置音量,默认为系统本身的音量 
    starttime "分:秒",设置歌曲开始播放的时间,如,starttime="00:10",从第10开始播放 
    endtime "分:秒",设置歌曲结束播放的时间 
    width 控制面板的宽 
    height 控制面板的高 
    controls 控制面板的外观controls="console/smallconsole/playbutton/ pausebutton/stopbutton/volumelever" middot;console 正常大小的面板nbsp; 
    ·smallconsole 较小的面板 
    ·playbutton 显示播放按钮 
    ·pausebutton 显示暂停按钮 
    ·stopbutton 显示停止按钮 
    ·volumelever 显示音量调节按钮 
    hidden 为true时可以隐藏面板


     


    3. 调用QuickTime播放器代码(没用过)


     


    <object classid=”clsid:02BF25D517-4B23-BC80-D3488ABDDC6B” codebase=”http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0″ width=”500″ height=”350″ align=”middle”>
    <param name=”src” value=”sample.mov”>
    <param name=”autoplay” value=”true”>
    <embed src=”sample.mov” autoplay=”true” width=”500″ height=”350″ align=”middle” bgcolor=”black” pluginspage=”http://www.apple.com/quicktime/download/“></embed>
    </object>


     


    4.调用Shockwave播放器代码(没用过)


     


     


    <object classid=”clsid:166B1BCA-11CF-8075-444553540000″ codebase=”http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=7,0,2,0″ width=”500″ height=”350″>
    <param name=”src” value=”demo.swf”>
    <embed src=”demo.swf” pluginspage=”http://www.macromedia.com/shockwave/download/” width=”500″ height=”350″></embed>
    </object>


    或者


    <object type=”application/x-shockwave-flash”
    width=”500″ height=”350″ />
    <param name=”movie” value=”demo.swf” />
    </object>


     


    5.调用Flash播放器代码(初步猜想能播放 flv)


     


    <OBJECT codeBase=”http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0″ classid=”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″ width=”500″
    height=”350″>
    <PARAM NAME=”movie” VALUE=”demo.swf”>
    <PARAM NAME=”play” VALUE=”false”>
    <PARAM NAME=”quality” VALUE=”high”>
    <embed src=”demo.swf” quality=”high” pluginspage=”http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash” type=”application/x-shockwave-flash” width=”500″ height=”350″></embed>
    </OBJECT>


     


     


     


    <object classid=”clsid:02BF25D517-4B23-BC80-D3488ABDDC6B” codebase=”http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0″ width=”500″ height=”350″ align=”middle”>
    <param name=”src” value=”sample.mov”>
    <param name=”autoplay” value=”true”>
    <embed src=”sample.mov” autoplay=”true” width=”500″ height=”350″ align=”middle” bgcolor=”black” pluginspage=”http://www.apple.com/quicktime/download/“></embed>
    </object>
  • 相关阅读:
    .Net下RabbitMQ的使用(1) 初识RabbitMQ
    Android GridView用法,用到了BaseAdapter
    android 代码布局简单的例子
    ActivityGroup的简单用法(1)详细讲解
    devc++中编译含WINSOCK的代码出现错误的解决方法
    Qt源码分析之QPointer
    QML基础——初识Qt Quick Designer
    Qt源码分析之信号和槽机制
    QML基础——UI布局管理
    Qt源码分析之QObject
  • 原文地址:https://www.cnblogs.com/vigorz/p/10499064.html
Copyright © 2020-2023  润新知