Possible to embed Spotify links?
Howdy, I've got another question for you guys. Is it possible to embed Spotify music links in Vanilla? I know there's a plugin with SoundCloud support out there, so maybe that could be modified?
EDIT: Found some relevant information on the official Spotify website, if it helps.
Best Answers
-
Kasper Vanilla Staff
OEmbed now supports embedding Spotify links as of version 1.3
Kasper Kronborg Isager (kasperisager) | Freelance Developer @Vanilla | Hit me up: Google Mail or Vanilla Mail | Find me on GitHub
5 -
Kasper Vanilla Staff
Embedding of Spotify user content (e.g. Playlists) is now supported as of 1.3.1
P.S.: I've also submitted a pull request for inclusion of the patch in the main repo https://github.com/starfishmod/jquery-oembed-all/pull/84
Kasper Kronborg Isager (kasperisager) | Freelance Developer @Vanilla | Hit me up: Google Mail or Vanilla Mail | Find me on GitHub
6
Answers
Seems like it would be a straight forward module or addition to your
default.master.tpl
fileSearch first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
Well, I'm not a coder so I'm not quite sure where to begin. Could you give me some more guidance?
Are you looking to change the song often?
If not, you could just copy the embed code on the site you linked and paste it into your
/themes/TheThemeYouUse/views/default.master.tpl
right after{asset name="Panel"}
.Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
Sorry, it looks like I was a bit unclear in my post. I don't want to add a specific song to the sidebar (or anywhere else), I'm looking for an auto-embed solution whenever people post Spotify links. Much like how YouTube links currently work in 2.1.
have a look at js/global.js, my js knowledge isn't too advanced ; but I'm sure someone could find a fix for you
Tip Search for youtube in that file
There was an error rendering this rich post.
I can add Spotify support in my OEmbed plugin - the author of the jQuery plugin that powers my plugin has recently released a patch adding support for Spotify embeds (https://github.com/starfishmod/jquery-oembed-all/commit/b947242174415a30d83f826363ed4c413ae4c3a9)
Kasper Kronborg Isager (kasperisager) | Freelance Developer @Vanilla | Hit me up: Google Mail or Vanilla Mail | Find me on GitHub
OEmbed now supports embedding Spotify links as of version 1.3
Kasper Kronborg Isager (kasperisager) | Freelance Developer @Vanilla | Hit me up: Google Mail or Vanilla Mail | Find me on GitHub
http://vanillaforums.org/addon/oembed-plugin Link for anyone who turns up here
There was an error rendering this rich post.
Is OEmbed compatible with 2.1b1?
EDIT: Awesome, that was quick! Thank you so much.
It works for single tracks, but not playlists. Any way to fix this? See screenshot below (playlist link vs single track):
Embedding of Spotify user content (e.g. Playlists) is now supported as of 1.3.1
P.S.: I've also submitted a pull request for inclusion of the patch in the main repo https://github.com/starfishmod/jquery-oembed-all/pull/84
Kasper Kronborg Isager (kasperisager) | Freelance Developer @Vanilla | Hit me up: Google Mail or Vanilla Mail | Find me on GitHub