We are a wholesale / retail music distributor. Developing an upgrade to Pinnacle cart from CRE Loaded/Oscommerce. We need a way for customers to preview audio on product listing page and actual product page. This is a time consuming task, as audio is not available for each and every release.
On our existing site, we have a dynamic php code that looks to our server for a file. If the file exists on server, a speaker icon displays. If it does not exist, no icon is displayed. This saves the user frustration of clicking on dead links and saves us the hassle of updating each product manually.
We use .m3u playlist files, which points to mp3s on our server. The m3u file name is the same as our sku/item id. So if the product sku is called MUSIC001, the file would be MUSIC001.m3u. Code looks for file on server, if it's there, link/icon displayed, if not, no link/icon. An embedded audio player would be preferred.
We're open to suggestion on best way to achieve this result.