The player embed element embedded in the web page autostart false fails_HTML/Xhtml_Web page production

WBOY
Release: 2016-05-16 16:39:02
Original
2173 people have browsed it

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:

Copy code
The code is as follows:



Don’t let it make a sound when the page is loaded for the first time, 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

At the beginning It is possible, but after a while, I found that the autostart attribute of the embed element is invalid. If it is set to false, it 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. Question

Copy code
The code is as follows:


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template