A quickly hacked together simple audio player example using PHP, javascript, and HTML5 audio tag.
To use:
- Create a folder called "audio" wherever you've put the index.php file.
- Add MP3 or WAV files to the "audio" folder.
The two pages:
-
index.php is the basic simple audio player. It's a simple version with no bells and whistles so that it's a simple example of the basics involved.
-
styledplayer.php that does the same basic things but has additional styling and some added features to make it more usable in a day to day context.
Play and pause icons used in index.php.(MIT License)
- https://commons.wikimedia.org/wiki/File:OOjs_UI_icon_pause.svg
- https://commons.wikimedia.org/wiki/File:OOjs_UI_icon_play-ltr-progressive.svg
Icons in the styled player are icons found at https://www.svgrepo.com/ or tweaks of them (CC Attribution License) Sanghita Debnath - Common Material Design Vectors