So I've wanted to play Spotify on my raspberry pi to make it into a streaming client. But for this, you need a premium account. So I found a workaround for playing Spotify on the raspberry pi 2 without premium.
- I'm using the Ubuntu community image since it has the latest packages which I like, although this should work on plain raspbian as well. Ubuntu download.
- Now what I'm going to use is the Spotify Web player, since to use or make an unofficial client would mean having premium. So make sure you have a Spotify account and a raspberry pi and get it all set up. A guide will be written on how to do that.
- Install chromium. This isn't the fastest browser, but through a hack it does have support for Flash which Spotify uses.
sudo apt-get install chromium -y
- Now I'm going to copy the instructions posted by gkreidl at the Raspberry Pi Forums (Link) Put this into the Terminal:
wget http://odroidxu.leeharris.me.uk/PepperFlash-12.0.0.77-armv7h.tar.gz tar -xzf PepperFlash-12.0.0.77-armv7h.tar.gz
cd PepperFlash
chmod +x *
sudo cp * /usr/lib/chromium/plugins
sudo nano /etc/chromium/default - Now uncomment the line starting with "CHROMIUM_FLAGS="
Add the following line:
CHROMIUM_FLAGS="--ppapi-flash-path=/usr/lib/chromium/plugins/libpepflashplayer.so --ppapi-flash-version=12.0.0.77 -password-store=detect -user-data-dir"
Save (CTRL+X, Y, ENTER) - Open up chromium and go to chrome://plugins. Find pepperflash and enable it. Now you have flash.
- Now go to the Spotify web player (Link) and it should work. The UI is very slow, but its the only way I could find that doesn't require premium. Playback hardly has any stutters on my tests though.
I hope you enjoyed this!
No comments:
Post a Comment