2016-08-21 1 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>

관련 문제