You Know How We Do It

So how does all this dream magic happen exactly? Surprisingly, it’s pretty straightforward. We simply need to know when a user with an app gets close to a speaker and then play whatever song they have set as their theme song.

Doorjammers set their theme song from Spotify through the Doorjam app. The Doorjam speaker emits an iBeacon signal which creates an invisible zone around it. When an app enters this zone it fires off the user’s theme song through the internet to the speaker. The song preview mp3 is remotely played from Spotify’s servers and output to the AUX input of the boombox. That’s it!

Below are the system highlights as well as a few out of context code snippets to give you a glimpse into what’s happening behind the scenes.