方法一:
網(wǎng)頁視屏
<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>
方法二(通用代碼適用于手機(jī)頁面播放 推薦):
<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標(biāo)簽,則使用flash -->
<embed src="mv.mp4" type="application/x-shockwave-flash"
width="1024" height="798" allowscriptaccess="always" allowfullscreen="true"> </embed>
</video>
二:網(wǎng)頁嵌入/插入優(yōu)酷視頻屏蔽廣告去掉且自動播放代碼]
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
這個是控制底下的彈幕等等。
參數(shù)說明:
調(diào)整是否自動播放:
isAutoPlay=false(不自動)
isAutoPlay=true(自動播放)
調(diào)整大小:
1
width="580"height="435"
常見幾種比例:
384×256、580×435、610×460