Browse Source

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.
pull/623/head
Canton Becker 11 years ago
parent
commit
d8ad4e1b7e
  1. 2
      source/js/Core/Media/VMM.ExternalAPI.js

2
source/js/Core/Media/VMM.ExternalAPI.js

@ -1259,7 +1259,7 @@ if(typeof VMM != 'undefined' && typeof VMM.ExternalAPI == 'undefined') {
}, },
create: function(m, callback) { 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.getJSON(the_url, function(d) {
VMM.attachElement("#"+m.uid, d.html); VMM.attachElement("#"+m.uid, d.html);
callback(); callback();

Loading…
Cancel
Save