Soundcloud, for those who don’t know, is a service that lets users upload and share their own created sounds and music easily on the interwebs.
It comes with a handy embedded player, which lets you play music from within your own browser, and embed that music in other web pages.
Since I occasionally link to media hosted on Soundcloud from within Idno posts, I thought I’d write a quick plugin to turn these links into an embedded player!
This Article was mentioned on brid-gy.appspot.com
When you paste a link into Known, if it’s something like a youtube video (or Soundcloud or Gist if you use my plugins), it’ll attempt to expand the link into a displayable embed code.
Trouble is, when you used a link shortening plugin, this url was changed and the display got broken.
I have submitted a patch upstream which modifies the link display code with a hook which a link shortening tool can listen to, and expand links where appropriate.
When you apply this patch, the latest version of the bitly link shortening plugin will be able to expand links within a post, caching them against the object for future reference.
» Visit the project on Github…
Thanks for visiting! If you’re new here you might like to read a bit about me. You may also like to follow me on Twitter!
(Psst… I am also available to hire! Find out more…)
Share this:EmailLinkedInTwitterGoogleFacebookReddit