this.offsetParent = container.offsetParent;
flashvars = {
- playerapiid: this.playerId
+ playerapiid: this.playerId,
+ controls: this.controls,
+ iv_load_policy: this.iv_load_policy
};
+
params = {
allowscriptaccess: 'always',
allowfullscreen: 'true',
// This is so we can overlay html on top of Flash
wmode: 'transparent'
+
};
attributes = {
- id: this.playerId
+ id: this.player
};
-
- console.log ("http://www.youtube.com/e/" + this.vidId +"?enablejsapi=1&playerapiid=" + this.playerId + "&controls=" + this.controls + "&iv_load_policy=" + this.iv_load_policy + "&version=3");
- swfobject.embedSWF( "http://www.youtube.com/e/" + this.vidId +"?enablejsapi=1&playerapiid=" + this.playerId + "&controls=" + this.controls + "&iv_load_policy=" + this.iv_load_policy + "&version=3",
+ swfobject.embedSWF( "http://www.youtube.com/e/" + this.vidId +"?enablejsapi=1&playerapiid=" + this.playerId + "&version=3",
this.playerId, this.width, this.height, "8", null, flashvars, params, attributes );
}
options.height = options.height && (+options.height)+"px";
// show controls on video. Integer value - 1 is for show, 0 is for hide
- this.controls = +options.controls === 1 || +options.controls === 2 ? options.controls : 1;
+ this.controls = +options.controls === 0 || +options.controls === 1 ? options.controls : 1;
// show video annotations, 1 is show, 3 is hide
this.iv_load_policy = +options.annotations === 1 || +options.annotations === 3 ? options.annotations : 1;