define(["ember","text!./video-tmpl.hbs","./video_player"],function(a,b,c){return a.View.extend({classNames:["videobottom"],template:a.Handlebars.compile(b),captionHeight:function(){if(!this.get("model.data.Summary"))return 0;var a=parseInt(.15*this.get("model.style.height"));return a>=50?50:25>=a?25:a}.property("model.style.height"),captionStyle:function(){return"height:%@px;".fmt(this.get("captionHeight"))}.property("captionHeight"),mainHeight:function(){return this.get("model.style.height")-this.get("captionHeight")}.property("model.style.height"),mainStyle:function(){return"height:%@px;".fmt(this.get("mainHeight"))}.property("mainHeight"),initialize:function(){this.get("model.data.resource.VideoUrl")&&this.set("video",c.create({model:this.get("model"),controls:!0,source:[{src:this.get("model.data.resource.VideoUrl"),type:"video/mp4"}]}))}.on("init")})});