--- a/cms/app-client/app/components/player-component.js Wed Jun 29 09:01:43 2016 +0200
+++ b/cms/app-client/app/components/player-component.js Wed Jun 29 10:54:13 2016 +0200
@@ -4,7 +4,6 @@
classNames: ['player-component'],
player: Ember.inject.service(),
- playing: false,
popcorn: null,
head: 0,
@@ -45,12 +44,12 @@
actions: {
play: function() {
- if(this.get('playing')) {
+ if(this.get('player').get('playing')) {
this.get('popcorn').pause();
} else {
this.get('popcorn').play();
}
- this.set('playing', !this.get('playing'));
+ this.get('player').set('playing', !this.get('player').get('playing'));
},
backward: function() {