Add UI for custom embeds

This commit is contained in:
calzoneman 2013-08-03 15:10:06 -04:00
parent 5e2b0929a9
commit a26df3c92c
5 changed files with 35 additions and 2 deletions

View file

@ -635,8 +635,9 @@ Player.prototype.initCustom = function() {
$("#ytapiplayer").remove();
div.append(this.id);
this.player = div.find("iframe") || div.find("object")
|| div.find("embed") || div;
this.player = div.find("iframe")
if(this.player.length === 0) this.player = div.find("object");
if(this.player.length === 0) this.player = div;
this.player.attr("id", "ytapiplayer");
this.player.attr("width", VWIDTH);
this.player.attr("height", VHEIGHT);