- Joined
- Jul 9, 2018
- Messages
- 2
- Reaction score
- 1
I've been working on a pet project of a website with background music, no control bar, and autoplay loop. A while ago my code worked fine but now it doesn't seem to work?
<audio class="audio" controls="false" autoplay>
<source src="That Seagull Has Nothing On Me.ogg" type="audio/ogg">
<source src="That Seagull Has Nothing On Me.mp3" type="audio/mpeg">
</audio>
AND
<audio autoplay loop >
<source src="INSERT MP3 FILE NAME.ogg"
type="audio/ogg">
<source src="<INSERT MP3 FILE NAME.mp3"
type="audio/mpeg">
</audio>
Here are both codes I've used in the past. Now neither work. No autoplay, no loop and I have to have the control bar. Any ideas as to why ?
<audio class="audio" controls="false" autoplay>
<source src="That Seagull Has Nothing On Me.ogg" type="audio/ogg">
<source src="That Seagull Has Nothing On Me.mp3" type="audio/mpeg">
</audio>
AND
<audio autoplay loop >
<source src="INSERT MP3 FILE NAME.ogg"
type="audio/ogg">
<source src="<INSERT MP3 FILE NAME.mp3"
type="audio/mpeg">
</audio>
Here are both codes I've used in the past. Now neither work. No autoplay, no loop and I have to have the control bar. Any ideas as to why ?