I couldn't find a nice efficient, low resource hungry html5 player code to randomly play 83, 40-minute mp3s. So our soundtracks were manually loaded one at a time into each site, & changed manually every few hours.
Now that summer is almost over, & we're back into "listening season", I didn't want to go through that pain of manually rotating the audio feeds every few hours again (it actually requires writing in a new audio URL right into the player code), or feeling guilty if I didn't. I knew there must be a way to get it all automated, but still efficient for my servers, your browsers, bandwidth, & speed.
One again, like most of Betty's, today I took bits of other coding, then combined, chopped & edited them my way to make it work.
When you land on the front page of here or stories, you are randomly served one out of 83 mixes of music around 40 minutes long now. As long as you keep that front page open while surfing elsewhere it will continue to play to the end, or you can pause, rewind, forward it, or continue it later. But if you leave the front page & come back later, or refresh the front page you will be randomly served another mix.
No longer will you be stuck with the same 2 mixes for hours. But it's not no-repeat, random. If you hear a mix you just recently heard or don't like, just refresh the page to get another.
Don't go crazy or get too choosy. It's background music, not for big speakers at a big party. Give a mix a chance. If the opening number or first few seconds isn't to you're liking, it will change to something else within a few minutes. Besides, most websites, including us, will temporarily or permanently block people who press reload/refresh a whole lot of times in a row. So do not reload/refresh like crazy. But a few times to skip over something won't be a problem.
There's currently 54 hours of 40 minute mixes I made myself since January on a random play feed from here & stories. Don't worry if you're on a slow connection, have bandwidth caps, or monthly data limits. All mixes are under 5mb in file size, & only require 16kbs to stream! Yes, I know that sounds impossible, but it's true. It's an exclusive at Betty's that I made myself. Absolutely nobody else is making 16kbs sound this good.
Although the music is a html5 mp3 feed, some browsers won't play it with flash disabled, even though flash is not required. In Firefox, & Pale Moon browsers they play with flash, HTML5, & Silverlight disabled fine. Opera doesn't support streaming mp3 or cached mp3s. Perhaps a VLC player plugin or extension will work for browsers that can't play it or play it well.
The most popular tracks are also available on our unclegadget site to click on or save rather than random play them. All our audio feeds come from it's server too, because I like to balance out the workload between all 3 hybrid servers.
Being on random play, it would be very rare that any 2 users would be listening to the same song at the same time. Every person gets their own random selection. We're all listening to something different. Over the winter I was cranking out the mixes so fast, I've forgotten what some of them sound like except my favorites. I'm listening to this right now:
http://unclegadget.com/aud/chill14.mp3 from our random player. Wow, I'm really loving this one. It starts out like typical "ambient" background, but at around 22:00 it gets real interesting. I don't know why it wasn't on my favorite list. No wonder it got a lot of hits/views. Nice stuff!
Enjoy!