A friend of mine asked me if it was possible to use the Spotify Web Player on his Android smartphone.
If you are like me and don’t use Spotify on mobile very often, you might not know that the free version of the Spotify app is heavily castrated. I’m not using it a lot, but if I understood correctly, you can’t properly play a playlist or one song, you get force fed “matching” songs. Also you can’t constantly skip songs. To push their Premium Account to you, Spotify additionally prevents mobile browsers from using their less limited Web player.
While I understand that Spotify wants to earn money, I heavily dislike the artificial limitations to push people to a paying account. If you can’t sell your Premium Account with a feature list, you should probably work on the list instead of artificially limiting the features on different devices. Especially the differentiation between PC and mobile browsers triggered me. Therefore I welcomed the challenge of convincing Spotifys Web player to work on Android.
The Spotify Web Player uses EME(Encrypted Media Extensions), so we’ll need a Browser supporting these. I used Firefox Nightly, as I’m already using Firefox on all my devices anyways and I strongly dislike Chrome.
As Spotify seems to check the phone resolution, we need to configure Firefox to return an accepted resolution.
about:configinto a tabs URL window
- Search for
- Change it from
-1.0to a positive value,
1is a good starter
You can experiment with this value, for my OnePlus 3T and my friends Samsung Galaxy S6, setting it to 2 worked well.
This will change how web sites will be scaled, so don’t be surprised if everything is very small now.
Changing the User-Agent
Spotify Web also checks your User-Agent string. As your browser “admits” it’s running on an Android device, you will still be redirected to the “Download the App, hurr durr!”-site. Therefore we need to change the User-Agent string Firefox sends to Spotify.
- Install the already mentioned User-Agent Switcher and Manager Addon in Firefox Nightly
- Select “User-Agent Switcher and Manager” from the 3-dot menu
- Select a nice User-Agent from the list. I chose a recent Firefox Version (Firefox 63.0) with Windows 7, just because it’s most likely one of the most used User-Agents.
- Don’t forget to press “Apply”.
In theory this should suffice to let you use Spotifys Web Player. But I had a lot of Firefox crashes while testing, this setup. Adding a block rule to uBlock Origin seemed to fix that.
- Download the uBlock Origin Addon
- Go into its configuration (Addons -> uBlock Origin -> Options)
- Go to “My filters”
||www.spotify.com/*$document,domain=www.spotify.comin the list
After all those configurations, I was able to successfully use the Spotify Web Player from my OnePlus 3T Android device. My friend was able to use it from his Galaxy S6 as well.
If you don’t hear any sound, don’t forget to check your current playback device (the PC icon in the lower right corner).
This could work on iOS as well, but I have neither tested it nor do I have any interest in doing so.