在页面中插入视频
我想在网页中插入个视频,但是用了两个方法都不行,不知道为什么,请各位指点下。或者还有别的方法没有?
<embed height="340" width="439" src="/userfiles/1.mpg">用这个不知道为什么在XP系统中就不能播放,而且好像IE6、360浏览器也都有问题。
<object classid="clsid:05589FA1-C356-11CE-BF01-00AA0055595A" id="ActiveMovie1" width="239" height="250">
<param name="Appearance" value="0">
<param name="AutoStart" value="-1">
<param name="AllowChangeDisplayMode" value="-1">
<param name="AllowHideDisplay" value="0">
<param name="AllowHideControls" value="-1">
<param name="AutoRewind" value="-1">
<param name="Balance" value="0">
<param name="CurrentPosition" value="0">
<param name="DisplayBackColor" value="0">
<param name="DisplayForeColor" value="16777215">
<param name="DisplayMode" value="0">
<param name="Enabled" value="-1">
<param name="EnableContextMenu" value="-1">
<param name="EnablePositionControls" value="-1">
<param name="EnableSelectionControls" value="0">
<param name="EnableTracker" value="-1">
<param name="Filename" value="视频地址" valuetype="ref">
<param name="FullScreenMode" value="0">
<param name="MovieWindowSize" value="0">
<param name="PlayCount" value="1">
<param name="Rate" value="1">
<param name="SelectionStart" value="-1">
<param name="SelectionEnd" value="-1">
<param name="ShowControls" value="-1">
<param name="ShowDisplay" value="-1">
<param name="ShowPositionControls" value="0">
<param name="ShowTracker" value="-1">
<param name="Volume" value="-480">
</object>
网上有很多是用这个方法,但我也还是播放不了。
------解决方案--------------------你播放的是什么格式的?转成flv的吧,网上flv代码的很多,你上面那段代码我没用过
------解决方案--------------------格式与浏览器兼容性是考虑重中之重
------解决方案--------------------
HTML code
<form id="form1" runat="server">
<object id="MediaPlayer" width="320" height="240" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
codebase= http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701
standby="Loading Microsoft? Windows Media? Player components..." type="application/x-oleobject" onclick="alert('a')">
<param name="AudioStream" value="0">
<param name="URL" value="hiv00007.wmv ">
<param name="UIMode" value="full">
<param name="AutoStart" value="true">
<param name="Enabled" value="true">
<param name="enableContextMenu" value="true">
</object>
<input type="button" value="暂停" onclick="msg()" />
<object ID="javademo" CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA&q