I use html tag "embed" for display audio, video and images in my page, but when I load the page the video and audio begin to play without clicking on "Play" button. Setting autostart="false"
and autostart="0"
does not help. How can I fix my problem? Would some js/jquery code fix my problem? Maybe do you know some working analogs tag "embed" ? This is code:
<embed src="http://localhost:8080/upload/video.mp4" width="300" height="250" autostart="0"> </embed>
答案 0 :(得分:0)
您可以使用HTML5代码video
:
<video width="300" height="250" controls>
<source src="http://localhost:8080/upload/video.mp4" type="video/mp4">
</video>
无效:
将其更改为:
autostart="0"