How do I remove the autoplay from an embed?

2

I have the following html code:

<embed width="320" height="50" pluginspage="http://www.macromedia.com/go/getflashplayer" src="http://www.globalhost.com.ve/shoutcast/reproductor3.swf?s=2&p=60" play="false" loop="false" type="application/x-shockwave-flash" menu="false" title="Streaming HD By GLOBALHOST" autoplay="false"></embed>

I have the code with autoplay="false" and still it keeps playing.

    
asked by mestanza 10.11.2016 в 15:56
source

3 answers

2

You can try with autostart="0" or autostart="1" .

You can also try removing the autoplay value from the tag so it does not load automatically.

It seems that the problems in assigning true or false is due to Google Chrome that does not detect them.

Reference: HTML embed autoplay="false", but still plays automatically

    
answered by 10.11.2016 / 16:05
source
0

By the simple fact that the attribute is there, some browsers will take it as true and execute it.

Simply remove the attribute from the html. Or if it serves you better, by javascript:

document.getElementsByTagName("embed")[0].removeAttribute("autoplay");
    
answered by 10.11.2016 в 18:41
0

try using, it served me in google chrome and then let me know if it helped you

<video controls="" width="50%" height="50%" name="media"><source src="tuvideo.mp4" type="video/mp4"></video>
    
answered by 25.07.2018 в 08:44