src/js/widgets/playerWidget.js
branchpopcorn-port
changeset 842 4ae2247a59f4
parent 839 4357aac4eb19
child 870 2c025db10a10
equal deleted inserted replaced
841:8da49ff273e0 842:4ae2247a59f4
   125       return;
   125       return;
   126       
   126       
   127   }
   127   }
   128   
   128   
   129   // we get it at each call because it may change.
   129   // we get it at each call because it may change.
   130   var duration = this._serializer.getDuration() / 1000; 
   130   var duration = this.getDuration() / 1000; 
   131   var totalTime = IriSP.secondsToTime(duration);
   131   var totalTime = IriSP.secondsToTime(duration);
   132   var elapsedTime = IriSP.secondsToTime(this._Popcorn.currentTime());
   132   var elapsedTime = IriSP.secondsToTime(this._Popcorn.currentTime());
   133   
   133   
   134   this.selector.find(".Ldt-ElapsedTime").html(elapsedTime.toString());
   134   this.selector.find(".Ldt-ElapsedTime").html(elapsedTime.toString());
   135   this.selector.find(".Ldt-TotalTime").html(totalTime.toString());
   135   this.selector.find(".Ldt-TotalTime").html(totalTime.toString());