My friend wants his theme song to autoplay at the login screen.
He's using AWS for hosting.
To the bottom html I increased the dimension to 100 added:
<audio controls autoplay>
<source src="theme.mp3" type="audio/mpeg">
</audio>
I can see the player but it won't play the song.
I have the webfolder setting as C:\Users\Administrator\Desktop\Audiofolder and of course I created that folder on the desktop and it has theme.mp3 within it.
What am I doing wrong? Is there a better or easier way?
Thank you so much!
- Mike
Login Song
-
- Site Admin
- Posts: 5880
- Joined: Wed Mar 19, 2008 8:47 pm
Re: Login Song
Most web browsers will only play an initial sound as the result of a user click to keep web sites from auto playing sounds against the user's will. So that would be my guess why that doesn't work. Check your browser's error console (Ctrl-Shift-J) to see if there is an error to that effect.