2013-04-24 71 views
0

我正在使用標記在頁面上顯示我的視頻。加載頁面後,視頻自動啓動。自動啓動不適用於視頻html

爲了防止出現這種情況,我使用autostart =「false」。但沒有運氣。

我的代碼:

<embed style="max-width:180px; max-height:135px;" src="url" autostart="false" loop="true"> 

誰能幫助我呢?

回答

1

如果它是嚴格嵌入的,通常你只需要在embed標籤中加入autostart =「false」。

<embed autostart="false"> 

如果它是一個對象(推薦),你將要使用PARAM。

<object width="160" height="144"> 
<param name="autoplay" value="false"> 

<embed src="sample.mov" width="160" height="144" autoplay="false" controller="false" 
</embed> 
+0

我希望只使用嵌入。任何修復? – 2013-04-24 11:25:16

+0

其實,正如我在我的回答中所建議的那樣,建議的解決方案將僅使用第二個選項。但是,如果只想使用嵌入式,則第一種解決方案應該可行。有時,Firefox檢測autostart =「false」的問題。由於它可能會遇到問題。所以,我建議你使用第二個選項。做upvote並接受我的答案,如果有幫助:) – Anil 2013-04-24 11:27:14