Single File PHP Audio Player 2.0.0

WHAT IS SINGLE FILE PHP AUDIO PLAYER?


Single File PHP Audio Player is an intuitive browser based audio player, with build-in browser, playlist and search.
No configuration or programming skills needed. Simply place a copy of the file on your webserver, to have a great looking responsive HTML5 player serve your music.

When put in an iframe it looks like this:


The music used in this demo is Royalty Free Music from Bensound

Click the following link to have the player demo launch a new page. You can then see how it looks full screen in your browser on your device:
Single File PHP Audio Player DEMO

FEATURES

  • Only one single file
  • Free for private non commercial use
  • Very simple Plug'n'Play like ease of use
  • Uses no Database
  • Browser, playlist and search
  • Responsive design for mobile use
  • See readme.txt in the distirbution for all features

END USER LICENSE AGREEMENT


For private non commercial use Single File PHP Audio Player can be used for free. When used commercially a donation for at least 10$ must be made per domain where it is used. See readme.txt for full EULA.

You are of course still more than welcome to donate if you like the player, even though you only use it privately.

Making a donation:
Domain name must be clearly stated in the donation, otherwise the donation will not grant use of the script under donating conditions. Donations are not refundable.
Use the following PayPal donate button for donations:

REQUIREMENTS


For this player to function you will need the following:
  • A web server capable of running PHP 5 scripts
  • Client browser must support HTML5 and JavaScript

DOWNLOAD


Download latest version here: Single File PHP Audio Player 2.0.0
Released 25-Feb-2025.

NEWS IN SINGLE FILE PHP AUDIO PLAYER 2.0.0

  • Added an extra tab to allow access to +- buttons and the following three new toggle buttons while in portrait mode
  • Added Theme toggle button to allow setting light, dark or to have theme follow the browser or device preference
  • Added Tree toggle button to allow playing entire directory tree
  • Added Loop toggle button to allow looping chosen direcotry
  • Added option SKIP_BUTTONS_MENU to allow customizing skip buttons in Menu
  • Added option SKIP_BUTTONS_LANDSCAPE to allow customizing skip buttons below Play button row in landscape mode
  • Added option DIR_EXCLUDE_ARR to allow setting an array of directory names to be exclude from being listed in the player
  • Added option DIR_EXCLUDE_REGEX to allow setting a regular expressions to exclude directories from being listed in the player
  • Added option TRACK_AS_TITLE to allow showing track title as title in browser. This option is enabled by default
  • Added option TXT_PLAYER_TITLE to allow setting player title. This title is used when not playing a track or always if TRACK_AS_TITLE is disabled
  • Added error handling so that player will automatically skip a track after 5 seconds if the track is inaccessible or unplayable
  • Changed from cookies to localStorage for storing playlist. This will allow a much larger playlist
  • Changed most icons to Scalable Vector Graphics to have them look the same on all devices
  • Fixed so that browser always starts at top when entering a new directory
  • Fixed so that tracks always start at beginning even if +- buttons is pressed before choice of track
  • Fixed so that scrollbars only show when mouseover the element

CONTACT / SUPPORT (English or Danish/Dansk)


Please use the link below if you have any comments, questions, requests, greetings etc.

SUPPORT:
If you are having problems getting the script to work, please write a description of the issue you are having.
Use the contact form on this page: Contact