Mục lục bài viết
Cập Nhật: 2021-11-29 11:43:09,Quý quý khách Cần biết về How do I autoplay audio on my website?. You trọn vẹn có thể lại Comment ở phía dưới để Admin đc lý giải rõ ràng hơn.
Trying to embed autoplay audio or video but non of the autoplay attribute isn’t working. Then today I will explain why audio autoplay not working as well as the solution of autoplay not working on any of the browsers.
Autoplay background music when someone visits your site is impressive but the autoplay function also helps to different advertisement networks. Google thinks that autoplay is out of control over the user or visitor side.
tocify $title=Table of Contents
The different advertisement uses autoplay to display advertisement in autoplay video format which annoy many visitors. So due to this google change, the autoplay policy and many other browsers also follow the google chrome autoplay policy. So autoplay not working even in HTML.
Please update your browser does not tư vấn the audio element.
The main reason behind audio autoplay not working is the Google Chrome Autoplay Policy. In April 2018 Google Chrome strictly implemented the Autoplay policy. Check out what is on Google Chrome Policy.
Link:getButton $text=Google Drive Link $icon=link $color=#0095ff
If you don’t understand I will explain it briefly.
Let’s explain from point 1.
Muted autoplay is always allowedMuted autoplay is always allowed means that if you add a muted attribute or if you mute your autoplay audio/video then the autoplay works perfectly without any issue.
Autoplay with sound is allowedThere are three points. let’s describe it.User has interacted with the domain:Whenever a user clicks or came from the same domain autoplay works.I am going to use this point to autoplay the audio.Other Points: You can easily understand others’ points. Let’s go for the solution.
Also Read:How to add Table of content in blogger alertInfo
As I already said I am going to use the second point that I am taking user permission to autoplay audio. Let’s move towards the solution with a stepwise process.
coming soon
Here is the stepwise process to fix autoplay not working for all browsers. First, you need to add the audio tag with audio on normally. You need to create an audio player normally.
Also Read: How To Add Audio Files/Mp3 On Blogger alertInfo
Normally, you can use the below code to add the audio player with an audio file on it.
Code
Please update your browser does not tư vấn the audio element.codeBox
Tóm lược đại ý quan trọng trong bài
We are using user permission to autoplay audio in blogger or any website. For that, you need to paste the below javascript code on the post that you want audio autoplay.
function autoplay() var r =confirm(“Would You Like To AutoPlay Music?”); if (r == true) document.getElementById(“audio”).play(); autoplay(); codeBox
Done. Now the autoplay works 100% as it also follows google audio autoplay policy.
You can see whenever the page loads it asks the user/visitor to start autoplay or not?Also, you can change the question according to your wish.
This is how you can easily fix audio autoplay not working in a browser. I hope you like this solution and comment below if you have any problems.
– Một số Keywords tìm kiếm nhiều : ” Video full hướng dẫn How do I autoplay audio on my website? tiên tiến và phát triển nhất , Chia Sẻ Link Tải How do I autoplay audio on my website? “.
Bạn trọn vẹn có thể để lại phản hồi nếu gặp yếu tố chưa hiểu nghen.
#autoplay #audio #website