Embed player in web page embed element autostart false invalid

Embed player in web page embed element autostart false invalid
Recently, I encountered the need to embed a player in a web page to play sound files at work. Finally, I used the embed element code as follows:

Copy code
The code is as follows:

<embed src='1093.swf' autostart='false' hidden='true' loop='false' ></embed>

To prevent it from making a sound when the page is first loaded, set the autostart attribute to false. If you want to play the sound, call the play method of the embed element to play the sound.

It worked at first, but after a while, I found that the autostart attribute of the embed element was invalid. Even if it was set to false, it would still play automatically once when the page was loaded. I searched for a long time and finally found the answer through Google. Adding the following code can solve the problem

Copy code
The code is as follows:

<embed id="emswf" src="1093.swf" play="false" flashvars="autoplay=false&play=false" menu="false" hidden="true" loop="false"></embed>

<<:  Website Standard Development Flowchart

>>:  Detailed explanation of the 4 codes that turn the website black, white and gray

Recommend

Why should you be careful with Nginx's add_header directive?

Preface As we all know, the nginx configuration f...

Detailed explanation of the update command for software (library) under Linux

When installing packages on an Ubuntu server, you...

MySQL subqueries and grouped queries

Table of contents Overview Subqueries Subquery Cl...

JS implements sliding up and down on the mobile terminal one screen at a time

This article shares with you the specific code of...

Detailed explanation of the principle and usage of MySQL stored procedures

This article uses examples to explain the princip...

JavaScript to display hidden form text

This article shares the specific code of JavaScri...

JavaScript adds event listeners to event delegation in batches. Detailed process

1. What is event delegation? Event delegation: Ut...

HTTP header information interpretation and analysis (detailed summary)

HTTP Header Explanation 1. Accept: Tells the web s...

How to use CSS custom variables in Vue

Table of contents The CSS custom variable functio...

Implementation of multi-port mapping of nginx reverse proxy

Code Explanation 1.1 http:www.baidu.test.com defa...

Simple steps to encapsulate components in Vue projects

Table of contents Preface How to encapsulate a To...