I had a site for audio students to ask thing music/audio related.
I can see youtube videos just writing the URL thanks to Embed v1.7 por NoahY plugin.
I would like to do the same with soundcloud links. Is this possible? Is there a plugin for this? If not can you point me to where can I look so I can play a little with the code? (I have some knowledge of php)
Thanks
I implemented this using jquery, put this in your page.js file:
$(document).ready(function(){ $('a[href*="soundcloud.com"]').each(function(){ var $link = $(this); $.getJSON('http://soundcloud.com/oembed?format=js&url=' + $link.attr('href') + '&iframe=true&callback=?', function(response){ $link.replaceWith(response.html); }); }); });
Good luck, Kai
Welcome to the Q&A site for Question2Answer.
If you have a question about Q2A, please ask here, in English.
To report a bug, please create a new issue on Github or ask a question here with the bug tag.
If you just want to try Q2A, please use the demo site.