网页嵌入视频播放代码

1、wmv播放

<object id="NSPlay" width=400 height=380 classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject" align="right" hspace="5">
                <param name="AutoRewind" value=1>
                <param name="FileName" value="海鸣威_老人与海.WMV">
                <param name="ShowControls" value="1">
                <param name="ShowPositionControls" value="0">
                <param name="ShowAudioControls" value="1">
                <param name="ShowTracker" value="0">
                <param name="ShowDisplay" value="0">
                <param name="ShowStatusBar" value="0">
                <param name="ShowGotoBar" value="0">
                <param name="ShowCaptioning" value="0">
                <param name="AutoStart" value=1>
                <param name="Volume" value="-2500">
                <param name="AnimationAtStart" value="0">
                <param name="TransparentAtStart" value="0">
                <param name="AllowChangeDisplaySize" value="0">
                <param name="AllowScan" value="0">
                <param name="EnableContextMenu" value="0">
                <param name="ClickToPlay" value="0">
            </object>

 

2、一个media播放窗口,点击链接直接变换窗口的视频

直接拷贝至<body>

 <object classid="clsid:05589FA1-C356-11CE-BF01-00AA0055595A" id="MediaPlayer" width="320" height="240">
                  <param name="AutoStart" value="-1">
                  <param name="AutoRewind" value="-1">
                  <param name="Filename" value="1.wmv">
                  <param name="MovieWindowSize" value="0">
                  <param name="PlayCount" value="0">
                  <param name="ShowControls" value="0">
                   <param name="ShowDisplay" value="0">
                </object><br>
                <a  onclick="filmurl('海鸣威_老人与海.WMV');">变换文件</a>

你可能感兴趣的:(代码)