播放器代码

rmvb格式

<object id="player" name="player" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="200" height="172">
                                            <param name="_ExtentX" value="18415">
                                            <param name="_ExtentY" value="9102">
                                            <param name="AUTOSTART" value="-1">
                                            <param name="SHUFFLE" value="0">
                                            <param name="PREFETCH" value="0">
                                            <param name="NOLABELS" value="-1">
                                            <param name="SRC" value="video/1.rmvb"> //value中的值换成你想要播放的文件的地址
                                            <param name="CONTROLS" value="Imagewindow">
                                            <param name="CONSOLE" value="clip1">
                                            <param name="LOOP" value="0">
                                            <param name="NUMLOOP" value="0">
                                            <param name="CENTER" value="0">
                                            <param name="MAINTAINASPECT" value="0">
                                            <param name="BACKGROUNDCOLOR" value="#333333">
                                            </object><br>
                                                <object ID="RP2" CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" WIDTH="200" HEIGHT="25">
                                            <param name="_ExtentX" value="18415">
                                            <param name="_ExtentY" value="1005">
                                            <param name="AUTOSTART" value="-1">
                                            <param name="SHUFFLE" value="0">
                                            <param name="PREFETCH" value="0">
                                            <param name="NOLABELS" value="-1">
                                            <param name="SRC" value="video/1.rmvb"> //value中的值换成你想要播放的文件的地址
                                            <PARAM NAME="CONTROLS" VALUE="ControlPanel">
                                            <param name="CONSOLE" value="clip1">
                                            <param name="LOOP" value="0">
                                            <param name="NUMLOOP" value="0">
                                            <param name="CENTER" value="0">
                                            <param name="MAINTAINASPECT" value="0">
                                            <param name="BACKGROUNDCOLOR" value="#333333">
                                         </object>



wmv

<object id="player" height="480" width="650" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
            <param name="AutoStart" value="-1" />
            <param name="Balance" value="0" />
            <param name="enabled" value="-1" />
            <param name="EnableContextMenu" value="" />
            <param name="url" value="video/1.wmv" />
            <param name="PlayCount" value="1" />
            <param name="rate" value="1" />
            <param name="currentPosition" value="0" />
            <param name="currentMarker" value="0" />
            <param name="defaultFrame" value="" />
            <param name="invokeURLs" value="0" />
            <param name="baseURL" value="" />
            <param name="stretchToFit" value="0" />
            <param name="volume" value="50" />
            <param name="mute" value="0" />
            <param name="uiMode" value="Full" />
            <param name="windowlessVideo" value="0" />
            <param name="fullScreen" value="0" />
            <param name="enableErrorDialogs" value="-1" />
            <param name="SAMIStyle" value="" />
            <param name="SAMILang" value="" />
            <param name="SAMIFilename" value="" />
            <param name="ShowPositionControls" value="1" />
            <param name="VideoBorderColor" value="ffff00"/><!--显示黑色框的颜色, 为RGB值,比如ffff00为黄色-->

            <!--是否自动播放-->
            <!--调整左右声道平衡,同上面旧播放器代码-->
            <!--播放器是否可人为控制-->
            <!--是否启用上下文菜单-->

            <!--播放的文件地址-->
            <!--播放次数控制,为整数-->
            <!--播放速率控制,1为正常,允许小数,1.0-2.0-->
            <!--控件设置:当前位置-->
            <!--控件设置:当前标记-->
            <!--显示默认框架-->
            <!--脚本命令设置:是否调用URL-->
            <!--脚本命令设置:被调用的URL-->
            <!--是否按比例伸展-->
            <!--默认声音大小0%-100%,50则为50%-->
            <!--是否静音-->
            <!--播放器显示模式:Full显示全部;mini最简化;None不显示播放控制,只显示视频窗口;invisible全部不显示-->
            <!--如果是0可以允许全屏,否则只能在窗口中查看-->
            <!--开始播放是否自动全屏-->
            <!--是否启用错误提示报告-->
            <!--SAMI样式-->
            <!--SAMI语言-->
            <!--字幕ID-->
            </object>

你可能感兴趣的:(播放器)