--- a/cms/app-client/app/components/player-component.js Wed Jul 20 21:08:31 2016 +0200
+++ b/cms/app-client/app/components/player-component.js Thu Jul 21 23:36:50 2016 +0200
@@ -55,11 +55,12 @@
},
onUpdate: function() {
- var currentTime = this.get('popcorn').currentTime();
+ var progress = this.get('popcorn').currentTime();
var duration = this.get('popcorn').duration();
- this.$('.bar .value').width(currentTime * 100 / duration + '%');
- this.set('head', currentTime);
- this.set('remaining', duration - currentTime);
+ this.$('.bar .value').width(progress * 100 / duration + '%');
+ this.get('player').set('progress', progress * 1000);
+ this.set('head', progress);
+ this.set('remaining', duration - progress);
},
onPlay: function() {