From 1f159bc8c9f710a5ca8376174b49d51fa1d4f536 Mon Sep 17 00:00:00 2001 From: Zac Colley Date: Thu, 13 Nov 2014 22:38:37 +0000 Subject: [PATCH] Embed code for Soundcloud --- app/js/directives.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/js/directives.js b/app/js/directives.js index 357b9f59..0f6f67a0 100644 --- a/app/js/directives.js +++ b/app/js/directives.js @@ -211,6 +211,13 @@ angular.module('myApp.directives', ['myApp.filters']) 'src="//vine.co/v/' + vineID + '/embed/simple">'; break; + case 'soundcloud': + var soundcloudUrl = embedData[1]; + html = '
<' + embedTag + ' type="text/html" frameborder="0" ' + + 'src="https://w.soundcloud.com/player/?url=' + soundcloudUrl + + '&auto_play=false&hide_related=true&show_comments=false&show_user=true&show_reposts=false&visual=true">
'; + break; + case 'twitter': html = '
';