function Controller(){function e(){t.closeWindow(l.videoPlayer)}require("alloy/controllers/BaseController").apply(this,Array.prototype.slice.call(arguments)),this.__controllerPath="videoPlayer",arguments[0]?arguments[0].__parentSymbol:null,arguments[0]?arguments[0].$model:null,arguments[0]?arguments[0].__itemTemplate:null;var l=this,o={},r={};l.__views.videoPlayer=Ti.UI.createWindow({backgroundColor:Alloy.CFG.colors.black,id:"videoPlayer"}),l.__views.videoPlayer&&l.addTopLevelView(l.__views.videoPlayer),l.__views.player=Ti.Media.createVideoPlayer({autoplay:!0,id:"player",ns:Ti.Media}),l.__views.videoPlayer.add(l.__views.player),l.__views.buttonClose=Ti.UI.createButton({top:15,left:15,title:L("Button_Close"),id:"buttonClose"}),l.__views.videoPlayer.add(l.__views.buttonClose),e?l.__views.buttonClose.addEventListener("click",e):r["$.__views.buttonClose!click!closeWindow"]=!0,o.destroy=function(){},_.extend(l,l.__views);var t=require("helpers"),i=arguments[0]||{};t.i("opening video player | url: "+i.url),l.player.url=i.url,r["$.__views.buttonClose!click!closeWindow"]&&l.__views.buttonClose.addEventListener("click",e),_.extend(l,o)}var Alloy=require("alloy"),Backbone=Alloy.Backbone,_=Alloy._;module.exports=Controller;