2016-08-21 4 views
1

私はこのコードを使用して自分のウェブサイトに音声ファイルを組み込んでいますが、自動再生はいつでも有効です。自動再生の音声ファイルを無効にすることはできません

<embed autostart="false" type="audio/mpeg" loop="true" height="35" src="http://prefeitojuninho.com.br/site/wp-content/themes/juninho45/audio/45-sou-eu.mp3"></embed>

どのように私は自動再生を無効にすることができますか?

答えて

0

関数内で関数を実行し、関数を呼び出したいときにのみ関数を呼び出します。あなたはそれがグローバルな範囲にあるように見えるので、自動的に再生されます。

0

<video width="340" height="80" controls preload="none"> 
 
    <source src="http://prefeitojuninho.com.br/site/wp-content/themes/juninho45/audio/45-sou-eu.mp3" type="audio/mpeg"> 
 
    Your browser does not support the video tag. 
 
</video>

関連する問題