Browse Source

Update to timeline.js to fix YouTube embeds

When I tried a YouTube embed using the stock code, I couldn't get it to go by following the documentation for it. Changing the API calls to https and one URL seemed to fix the issue.
pull/695/head
flynnmartin 10 years ago
parent
commit
7b86b8777f
  1. 4
      build/js/timeline.js

4
build/js/timeline.js

@ -4139,13 +4139,13 @@ if(typeof VMM != 'undefined' && typeof VMM.ExternalAPI == 'undefined') {
youtube: { youtube: {
get: function(m) { get: function(m) {
var the_url = "//gdata.youtube.com/feeds/api/videos/" + m.id + "?v=2&alt=jsonc&callback=?"; var the_url = "https://gdata.youtube.com/feeds/api/videos?q=" + m.id + "?&alt=jsonc&callback=?";
VMM.master_config.youtube.que.push(m); VMM.master_config.youtube.que.push(m);
if (!VMM.master_config.youtube.active) { if (!VMM.master_config.youtube.active) {
if (!VMM.master_config.youtube.api_loaded) { if (!VMM.master_config.youtube.api_loaded) {
LoadLib.js('//www.youtube.com/player_api', function() { LoadLib.js('https://www.youtube.com/player_api', function() {
trace("YouTube API Library Loaded"); trace("YouTube API Library Loaded");
}); });
} }

Loading…
Cancel
Save