Space Skimmer Posted May 22, 2023 Share Posted May 22, 2023 (edited) If I click the link here https://www.w3schools.com/TAgs/att_autoplay.asp and click the link in the first example the sound will autoplay in Chrome. If I copy the example on my desktop using notepad and link to a local file it does not play in chrome, why is this? Edited May 22, 2023 by Space Skimmer Link to comment Share on other sites More sharing options...
Space Skimmer Posted May 26, 2023 Author Share Posted May 26, 2023 Found the solution. Chrome was blocking my page from running sound without letting me know it was blocking the page. How I fixed it- Click the three vertical dots (customize and control) then settings - Privacy and security - Site settings - Additional content settings - Sound. Make sure sites can play sound is checked (which it was) then under Allowed to play sound click Add then add your local page or webpage. Link to comment Share on other sites More sharing options...
Audiophile Posted July 5, 2023 Share Posted July 5, 2023 When I develop a website (with audio) on my PC, I need to test it, including testing the sound. I don't want to upload it to a server until I am fairly confident that it all works OK. BUT until it gets uploaded to a server it has no domain name. So I open the index.html file with my browser (Google Chrome or Microsoft Edge). This displays the prototype website, but it does NOT produce any sound. I have tried your kind suggestion above by entering "index.html" as the address. The browser pretends to accept this, but still refuses to produce any sound. I suspect this is intentional. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now