src/js/widgets/playerWidget.js
branchpopcorn-port
changeset 468 651528a4f795
parent 458 5bafddd9e3ba
child 540 b1f3aee23199
equal deleted inserted replaced
467:79173b75e97c 468:651528a4f795
    13 	var height = this.height;
    13 	var height = this.height;
    14 	var heightS = this.height-20;
    14 	var heightS = this.height-20;
    15 	  
    15 	  
    16 	var Player_templ = Mustache.to_html(IriSP.player_template, {"share_template" : IriSP.share_template});
    16 	var Player_templ = Mustache.to_html(IriSP.player_template, {"share_template" : IriSP.share_template});
    17   this.selector.append(Player_templ);		
    17   this.selector.append(Player_templ);		
    18     
    18 	
    19 	this.selector.children(".Ldt-controler").width(width - 10);
       
    20 	  		
       
    21   this.selector.children(".Ldt-controler").show();
    19   this.selector.children(".Ldt-controler").show();
    22     
    20     
    23   // handle clicks by the user on the video.
    21   // handle clicks by the user on the video.
    24   this._Popcorn.listen("play", IriSP.wrap(this, this.playButtonUpdater));
    22   this._Popcorn.listen("play", IriSP.wrap(this, this.playButtonUpdater));
    25   this._Popcorn.listen("pause", IriSP.wrap(this, this.playButtonUpdater));
    23   this._Popcorn.listen("pause", IriSP.wrap(this, this.playButtonUpdater));