cms/app-client/app/components/player-component.js
changeset 247 7a5d729992b8
parent 246 5b7ae96768be
child 248 256272c33349
--- a/cms/app-client/app/components/player-component.js	Thu Jul 21 23:36:50 2016 +0200
+++ b/cms/app-client/app/components/player-component.js	Fri Jul 22 16:11:44 2016 +0200
@@ -33,6 +33,10 @@
         this.get('popcorn').load();
     }),
 
+    progressObserver: Ember.observer('player.progress', function() {
+        this.get('popcorn').currentTime(this.get('player').get('progress') / 1000);
+    }),
+
     init: function() {
         this._super(...arguments);
         this.get('player');