rmdejonge
(Rmdejonge)
November 28, 2016, 6:58pm
1
Hello Everybody,
I try to get a iframe with Spotify.
In the left on HA, there is the link to spotify, but the page is white.
I acces HA to SSL. I have also a http link as iframe, and this is good working.
Is there someone how has spotify working on a iframe?
Thanks for the help!
spotify:
title: 'Spotify'
icon: mdi:spotify
url: 'https://www.spotify.com/nl/'
1 Like
rmdejonge
(Rmdejonge)
December 2, 2016, 12:11pm
2
Nobody have the same experiance with blanc iframe?
Do you have it like this
spotify:
title: 'Spotify'
icon: mdi:spotify
url: 'https://www.spotify.com/nl/'
of this
panel_iframe:
spotify:
title: 'Spotify'
icon: mdi:spotify
url: 'https://www.spotify.com/nl/'
Think the bottom version should work for you.
rmdejonge
(Rmdejonge)
December 2, 2016, 12:24pm
4
Thanks Dennisaion, i going to try it. I lett you know
rmdejonge
(Rmdejonge)
December 2, 2016, 12:31pm
5
@ Dennisaion,
It wonāt work, still with screen. Here the complete panel_iframe.yaml
Number one is working well, the other two not, blanc screen.
parkeren:
title: 'Bezoekersparkeren'
icon: mdi:car
url: 'https://parkeerloket.zwolle.nl/DVSPortal/bezoekersapp/www/#/'
kpn:
title: 'KPN Itv Online'
icon: mdi:television
url: 'http://www.itvonline.nl'
spotify:
title: 'Spotify'
icon: mdi:spotify
url: 'https://www.spotify.com/nl/'
Yeah I noticed it as well. Let me dive into this.
Hi!
Iāve done this for an individual playlist , Iām not sure you can put the entire Spotify player in an iframe though.
panel_iframe:
spotify:
title: "Spotify"
url: "https://embed.spotify.com/?uri={{ spotify_playlist_uri }}"
1 Like
Unfortunately it looks like you can only put in specific uris, which gives you a bit of flexibility if you come up with some savvy automationā¦
rmdejonge
(Rmdejonge)
December 4, 2016, 9:26pm
10
nice, thanks, that is working! For a artist or a album:
spotify:
title: "Spotify"
url: "https://open.spotify.com/embed?uri=spotify%3Auser%3A*****username***%3Aplaylist%3A68THPWO8hkSVs1g6LRliJvs"
I have it not yet working to display the whole menu, so i can deside a artist or album.
But it is a stepā¦
1 Like
Henrik1986
(Henrik1986)
January 4, 2017, 8:27pm
11
Is it possible to play the playlist from a automation, and then send it to att media_player?
I have been unable to do this. I can play individual tracks, but not the entire playlist.
davedan
(Dave Dan)
January 8, 2017, 9:18pm
13
Yes, It is possible.
I use this in a script:
- service: media_player.play_media
data_template:
media_content_type: PLAYLIST
entity_id: media_player.<mediaplayername>
media_content_id: spotify:user:<username>:playlist:<playlistid>
In this case the media_player is a LMS Player with the Spotify plugin.
Having tried this before, I am unable to replicate your success.
I only get the player to be IDLE.
davedan
(Dave Dan)
January 9, 2017, 5:20am
15
Uhmm, weird. It works like a charm here.
What is your media player? Itās a Sonos, LMS?? Can you play that playlist directly on it (without HA)??
My media_player
is a Google Cast device. Doesnāt work on Chromecast Audio or Google Home.
Sidenote: Whatās an LMS?
davedan
(Dave Dan)
January 11, 2017, 8:24am
17
Any progress to execute a Spotify playlist on google cast?
Havenāt tried, itās become unimportant to me and I havenāt seen anything in recent updates to make me want to try again.
Kurt_Agius
(Kurt Agius)
October 7, 2018, 9:56am
20
I know this is an old post, but I had this running and now it doesnāt work anymore.
Currently Iām getting the error: āRefused to display āhttps://open.spotify.com/ ā in a frame because an ancestor violates the following Content Security Policy directive: āframe-ancestors ānoneāā.ā