Add notification when queueing jwplayer

This commit is contained in:
calzoneman 2013-06-02 19:37:48 -04:00
parent 3ebf4a1009
commit cfd70cff12
3 changed files with 25 additions and 10 deletions

View file

@ -622,6 +622,12 @@ Callbacks = {
if(data.type != "sc" && PLAYER.type == "sc")
// [](/goddamnitmango)
fixSoundcloudShit();
if(data.type != "jw" && PLAYER.type == "jw") {
// Is it so hard to not mess up my DOM?
var wtf = $("<div/>").attr("id", "ytapiplayer")
.insertBefore($("#ytapiplayer_wrapper"));
$("#ytapiplayer_wrapper").remove();
}
if(data.type != PLAYER.type) {
PLAYER = new Media(data);
}