Home > Article > Web Front-end > Solution to the failure of autostart false when embedding player embed elements in web pages
Recently, I encountered the need to embed a player in a web page to play sound files at work. Finally, the embed element code was used as follows:
<embed src='1093.swf' autostart='false' hidden='true' loop='false' ></embed>
Do not let it make a sound when the page is first loaded, so Set the autostart attribute to false. If you want to play it, call the play method of the embed element to play the sound.
It was OK at first, but after a while, I found that the autostart attribute of the embed element was invalid. Set it to false will still play automatically once when the page is loaded. After searching for a long time, I finally found the answer using Google. Adding the following code can solve the problem
<embed id="emswf" src="1093.swf" play="false" flashvars="autoplay=false&play=false" menu="false" hidden="true" loop="false"></embed>
More webpages to embed the player embed element autostart false failure solution For related articles, please pay attention to the PHP Chinese website!