Free cookie consent management tool by TermsFeed Policy Generator

/dev/blog/ID10T

Using the Spotify Web player on Android

Android, Web Comments

Advertisement

Update September 2020: While these exact instructions don’t work anymore, there are solutions in the comments. So please read the comments as well until I found the time to test new ways and to update the post.

A friend of mine asked me if it was possible to use the Spotify Web Player on his Android smartphone.

Spotify Android App

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.

Advertisement

Browser

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.

  1. Enter about:config into a tabs URL window
  2. Search for layout.css.devPixelsPerPx
  3. Change it from -1.0 to a positive value, 1 is a good starter

Firefox Mobile about:config - layout.css.devPixelsPerPx

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.

Addons

Sadly, using Firefox Nightly with the changed scaling settings is not sufficient. We need to use two additional Firefox Addons: User-Agent Switcher and Manager and uBlock Origin.

Advertisement

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.

  1. Install the already mentioned User-Agent Switcher and Manager Addon in Firefox Nightly
  2. Select “User-Agent Switcher and Manager” from the 3-dot menu
  3. 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.
  4. Don’t forget to press “Apply”.

Firefox Mobile: User Agent Switcher and Manager

uBlock Origin

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.

  1. Download the uBlock Origin Addon
  2. Go into its configuration (Addons -> uBlock Origin -> Options)
  3. Go to “My filters”
  4. Add ||www.spotify.com/*$document,domain=www.spotify.com in the list

Firefox Mobile: ublock Origin rule

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).

Firefox Mobile: Spotify Web Player

This could work on iOS as well, but I have neither tested it nor do I have any interest in doing so.

Advertisement

comments powered by isso

Advertisement