Last active
December 12, 2015 09:59
-
-
Save giannif/4755496 to your computer and use it in GitHub Desktop.
Endslate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
"use strict"; | |
var player = window.MTVNPlayer.getPlayers()[0]; | |
// this is required because the flash player doesn't emit a config event yet. | |
if(!player.config.module) { | |
player.config.module = {}; | |
} | |
player.config.formFactorID = prompt("formFactorID"); // change this to test different form factors. | |
// adjust these urls to your liking. | |
player.config.module.endslate = { | |
"$": { | |
shim: true, | |
url: "http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" | |
}, | |
"mtvn-util": "http://media.mtvnservices.com/player/api/module/mtvn-util/latest/mtvn-util.min.js", | |
"endslate-css": "http://media.mtvnservices.com/player/api/module/endslate/latest/style.css", | |
"endslate": "http://media.mtvnservices.com/player/api/module/endslate/latest/endslate.min.js" | |
}; | |
player.trigger("endslate", { | |
upNext: { | |
items: player.playlistMetadata.items | |
} | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This needs to be used with at least embed api 2.7.1.