Tested on:RPi3; Raspbian Stretch
Prerequisites:Raspberry Pi with Raspbian Jessie and internet connection (see steps 1-7 in the Introduction)
Hardware:active speakers
(USB soundcard)

Raspberry Pi as wifi jukebox with DLNA and UPNP smartphone controls

The Raspberry Pi-based device described here is an update of the classic jukebox. Instead of inserting a coin for selecting a song, everyone with an android smartphone connected to the local wifi network can choose the next song. Jukeboxes can be placed among different rooms and accessed seperately with the Android App BubbleUPNP.
The Raspberry Pi runs as DLNA Render with the GStreamer based renderer GMRender by Henner Zeller(thanks a lot!) and smartphones as Controller following the UPNP protocol.
This tutorial updates the setup presented by Stephen C. Phillips in his excellent UPNP Tutorial for Raspbian Stretch.

Dependency installation
Install all dependencies by entering

in the terminal.

GMRender installation
Enter in the terminal

Setup Pulseaudio
Now, Pulseaudio need to be set up. Enter in the terminal

USB soundcard
For using an USB soundcard instead of the not so great onboard sound, follow the steps described in Enable USB sound card.

Turn up the volume
The sound output volume should be maxed out. Enter

and press the up arrow key until the bar is full. Quit with Esc.

Test: play an MP3
Copy an mp3 file onto the Raspberry Pi and play it with

The Raspberry Pi should start GMRender after booting. Open cron with

and add these two lines at the end of the file:

BubbleUPNP for playing music
Install the free app BubbleUPNP from the Google Play Store on your smartphone. Start the app, click the BubbleUPNP icon top left and choose a device named Raspi under Local Renderer.

Choose BubbleUPNP sink

Choose BubbleUPNP sink

Swipe left to choose a file. For example, select an MP3 file stored on the smartphone and press play. The speakers attached to the Raspberry Pi output the song.
Play music with BubbleUPNP

Play music with BubbleUPNP

UPNP Tutorial von Stephen C. Phillips: http://blog.scphillips.com/posts/2014/05/playing-music-on-a-raspberry-pi-using-upnp-and-dlna-v3/
GStreamer Wiki: https://en.wikipedia.org/wiki/GStreamer
App BubbleUPNP: https://play.google.com/store/apps/details?id=com.bubblesoft.android.bubbleupnp
DLNA: https://en.wikipedia.org/wiki/Digital_Living_Network_Alliance
UPNP Wiki: https://en.wikipedia.org/wiki/Universal_Plug_and_Play
GMRender Github: https://github.com/hzeller/gmrender-resurrect/blob/master/INSTALL.md
Enable USB sound card: http://www.knight-of-pi.org/raspberry-pi-enable-an-usb-sound-card-for-raspbian-jessie/

Knight of Pi

Johannes Bergs aka Knight of Pi. Diploma in Bioinformatics, some Webdesign and Python coding then. Living in the beautiful city of Vienna.

Leave a Reply to Anonymous Cancel reply

Time limit is exhausted. Please reload CAPTCHA.