define(["ember","text!./video_player-tmpl.hbs"],function(a,b){return a.View.extend({tagName:"video",template:a.Handlebars.compile(b),classNames:["video-js","vjs-default-skin"],attributeBindings:["controls","preload","width","height","poster"],parentHeight:a.computed.alias("parentView.mainHeight"),width:function(){return this.get("model.style.width")}.property("model.style.width"),height:function(){return this.get("parentHeight")?this.get("parentHeight"):parseInt(.8*this.get("model.style.height"))}.property("model.style.height"),domReady:function(){this.set("player",this.$())}.on("didInsertElement")})});