From d8ad4e1b7e4527564e486dde8bdde4c60ca040b8 Mon Sep 17 00:00:00 2001 From: Canton Becker Date: Thu, 8 May 2014 13:54:36 -0600 Subject: [PATCH] Added maxheight=168 directive for soundcloud iframes Requests that soundcloud render an iframe with a maxheight of 168. Without this, you end up with a very tall soundcloud iframe which hides the timeline dropshadow and caption. --- source/js/Core/Media/VMM.ExternalAPI.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/js/Core/Media/VMM.ExternalAPI.js b/source/js/Core/Media/VMM.ExternalAPI.js index a4e8593..49dc716 100644 --- a/source/js/Core/Media/VMM.ExternalAPI.js +++ b/source/js/Core/Media/VMM.ExternalAPI.js @@ -1259,7 +1259,7 @@ if(typeof VMM != 'undefined' && typeof VMM.ExternalAPI == 'undefined') { }, create: function(m, callback) { - var the_url = "//soundcloud.com/oembed?url=" + m.id + "&format=js&callback=?"; + var the_url = "//soundcloud.com/oembed?url=" + m.id + "&maxheight=168&format=js&callback=?"; VMM.getJSON(the_url, function(d) { VMM.attachElement("#"+m.uid, d.html); callback();