cms/app-client/app/services/player.js
changeset 249 e4204b1a579a
parent 248 256272c33349
child 251 ac320de33ec7
--- a/cms/app-client/app/services/player.js	Fri Jul 22 18:25:02 2016 +0200
+++ b/cms/app-client/app/services/player.js	Wed Aug 03 22:47:49 2016 +0200
@@ -9,15 +9,25 @@
     window: '',
     playing: false,
     progress: 0, // In Milliseconds
-    progressObserver: Ember.observer('progress', function() {
-        console.log('Ember.observer progress');
-    }),
     reduce: false,
 
     init: function() {
         this.on('reset', Ember.run.bind(this, this.get('reset')));
     },
 
+    setProgress: function(time) {
+        this.set('progress', time);
+    },
+
+    play: function(id) {
+        this.set('item', id);
+        this.set('playing', true);
+    },
+
+    pause: function() {
+        this.set('playing', false);
+    },
+
     reset: function(id) {
         this.set('item', id);
     }