方法一:
网页视屏
<embed src="[http://player.youku.com/player.php/Type/Folder/Fid/22127316/Ob/1/sid/XNjk1MDUyNzU2/v.swf" quality="high" width="500" height="440" align="center" allowScriptAccess="always" allowFullScreen="true" mode="transparent" type="application/x-shockwave-flash"></embed>
方法二(通用代码适用于手机页面播放 推荐):
<iframe src="http://localhost/2012/mayday2012.mp4" scrolling="no" allowfullscreen="" frameborder="0" height="418" width="675"></iframe>
<iframe height=498 width=510 src="http://player.youku.com/embed/XOTA1OTA2NjAw" frameborder=0 allowfullscreen></iframe>
<iframe frameborder=0 src="http://v.qq.com/iframe/player.html?vid=l01480qc099&tiny=0&auto=0" allowfullscreen></iframe>
方法三:
<video controls="controls" preload="auto" height="500" width="700">
<!-- Firefox -->
<source src="mv.ogg" type="video/ogg" />
<!-- Safari/Chrome-->
<source src="mv.mp4" type="video/mp4" />
<!-- 如果浏览器不支持video标签,则使用flash -->
<embed src="mv.mp4" type="application/x-shockwave-flash"
width="1024" height="798" allowscriptaccess="always" allowfullscreen="true"> </embed>
</video>
二:网页嵌入/插入优酷视频屏蔽广告去掉且自动播放代码]
embed src="http://player.youku.com/player.php/sid/XMTk0NjIyOTY2NA==/v.swf?VideoIDS=XODMzNDcwMzM2&winType=adshow&isAutoPlay=true" quality="high" width="100%" height="500" align="middle"
wmode="transparent" allowScriptAccess="never" allowNetworking="internal" allowfullscreen="true" autostart="0" type="application/x-shockwave-flash">
其中
winType=adshow
这个是控制底下的弹幕等等。
参数说明:
调整是否自动播放:
isAutoPlay=false(不自动)
isAutoPlay=true(自动播放)
调整大小:
1
width="580"height="435"
常见几种比例:
384×256、580×435、610×460
网友评论