cms/app-client/app/components/player-component.js
changeset 264 e0fc9f698b9b
parent 262 e999bcaa0c08
child 272 97c06607949b
--- a/cms/app-client/app/components/player-component.js	Wed Aug 24 09:46:03 2016 +0200
+++ b/cms/app-client/app/components/player-component.js	Wed Aug 24 15:01:54 2016 +0200
@@ -3,9 +3,8 @@
 
 export default Ember.Component.extend({
     classNames: ['player-component'],
-    classNameBindings: ['video:video', 'reduce:reduce'],
+    classNameBindings: ['video:video'],
     video: Ember.computed.alias('player.model.video'),
-    reduce: Ember.computed.alias('player.reduce'),
 
     player: Ember.inject.service(),
     popcorn: null,
@@ -52,7 +51,7 @@
     },
 
     didInsertElement: function() {
-        this.set('popcorn', Popcorn('#popcorn-audio'));
+        this.set('popcorn', new Popcorn('#popcorn-audio'));
         this.get('popcorn').on('loadeddata', Ember.run.bind(this, this.get('onUpdate')));
         this.get('popcorn').on('timeupdate', Ember.run.bind(this, this.get('onUpdate')));