Custom audio player for the band Montanahead's Demos
In short, I wanted to make something unique for Montanahead's demo site. There are four songs and I thought it would be fun to use the track listing as the framing for the player.
In addition, this site is linked from a QR code using qr.io that directs owners of the Demos cassette to the website for streaming.
I decided to use SvelteKit for the framework as I wanted more familiarity with it and it turned out to be a pretty seamless experience overall.
Version 1: complete
Version 2: in progress
I could write a novel on issues I've encountered working with audio on the web in the last few weeks. I incorporated Howler as I'd worked with it in the past and it was fairly simple to set up and use. It didn't play nicely with Vite until I adjusted the Vite config to include all external sources.
I then tried uploading mp3s to Github via a standard commit (mistake) and that led me to try Git LFS which, at first commit, seemed promising. The mp3s were hosted on Github in my repository but were unable to play when referenced in the site deployed on Vercel.
This then led me to seek out alternatives for streaming audio. I was recommended to check out Amazon S3 and while that very could have worked (in theory) with Cloudfront to serve the audio, it was way too far out of my wheelhouse to get working in a timely manner.
Finally, I was sent an article that outlined how someone used Cloudinary to stream audio from a test site. This ended up being what works for the current version.