From 706ff615b62f47129ae7876a680282d849431d1c Mon Sep 17 00:00:00 2001 From: Patrik Hermansson Date: Sat, 30 Mar 2019 12:30:36 +0100 Subject: [PATCH] Better explanation of how to use sources (#9065) --- source/_components/media_player.spotify.markdown | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/source/_components/media_player.spotify.markdown b/source/_components/media_player.spotify.markdown index 982730bd33b..3140745e0fe 100644 --- a/source/_components/media_player.spotify.markdown +++ b/source/_components/media_player.spotify.markdown @@ -98,7 +98,19 @@ authorization, discard the download. It is not needed. The sources are based on if you have streamed to these devices before in Spotify. If you don't have any sources, then simply stream from your phone to another device in your house: Bluetooth, echo, etc. Once you do, the sources will -show up in the developer console as a device to cast/stream to. The devices won't show up in the dev-console as sources unless they are powered on as well. +show up in the Spotify developer console as a device to cast/stream to. +Go to https://developer.spotify.com and login. Click on "Console" in top menu and then "Player" in the left menu. Select "/v1/me/player/devices" in the list. Then click "Get token", accept the terms and click "Try it". Your active Spotify devices will then be listed in the right panel, beneath the curl-line (for example, "name": "Web Player (Chrome)"). +These names can then be used in for example an input selector: + +```yaml + spotify_source: + name: 'Source:' + options: + - Spotifyd@rock64 + - Web Player (Chrome) +``` + +The devices won't show up in the dev-console as sources unless they are powered on as well. ## {% linkable_title URI Links For Playlists/Etc. %} You can send playlists to spotify via the `"media_content_type": "playlist"` and something like (depending on your content ID)