[REMINDER: The transmission, storage, or presentation of any information, data or material in violation of any United States Federal, State or local law is strictly prohibited under the terms and conditions of your hosting account. This includes copyrighted material used without permission.]
To stream an mp3 file, upload your mp3 file to your www directory (or to a subdirectory of your www directory) in BINARY format.
Then use this code:
<audio controls> <source src="http://yourwebsite.com/youraudio.mp3" type="audio/mpeg"> <source src="http://yourwebsite.com/youraudio.ogg" type="audio/ogg"> </audio>
- Create a subdirectory (e.g., media) in your www directory.
- Then, upload your mp3 file named (e.g., youraudio.mp3 into that directory. Be sure to upload The mp3 file in BINARY format.
- Finally, add the above code with the fully-qualified URL of your mp3 file (e.g.,http://yourdomainname.com/media/mysongfile.mp3).
- Then visit the page and start the playback.
If you are using WordPress, it can natively handle media files and streaming. Upload your media file and insert it into a post. It’s that easy.
In the case of mp3 media, the buffering is determined by the media player on the listener’s computer — it’s not a server-side function.