MP3 audio file - auto play and other...

User 2796102 Photo


Registered User
66 posts

I am designing a rehearsal tool that can be used either online but also with a computer or other device that is offline.

How do I insert the MP3 audio file and get it to auto play when the page opens and also how can I give the user the ability to play the file again or pause the playback?

I tried using the CC Free MP3 Jukebox program but could not get the player to show or work in the page even after loading everything to my server.

Is it even possible for this type of element to work (meaning the pages to properly display and the sound to play) with the site exported and the computer not online?

User 187934 Photo


Senior Advisor
20,190 posts

Try this.
<audio src="mysongname.mp3" controls loop autoplay></audio>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2796102 Photo


Registered User
66 posts

The player and control is showing on my page when I view it in chrome but for some reason the mp3 file is not playing properly and I have uploaded the mp3 file into the same folder as the page. When I view it in Firefox I do not see it at all. I pasted the code into an HTML element and changed the "mysongname.mp3" to the proper name of the file.
User 2796102 Photo


Registered User
66 posts

Okay I don't know why this happened but I noticed that the file size of the .mp3 file was different on the server than on the original file. I am using CoffeeCup Direct FTP but everytime I load the file it does so incorrectly. I loaded the .mp3 file a different way and everything works in all browser I check.

Any thoughts as to why this might be happening?
User 187934 Photo


Senior Advisor
20,190 posts

I might be the transfer mode.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.