--- a/cms/app-client/app/services/player.js Fri Aug 05 18:51:59 2016 +0200
+++ b/cms/app-client/app/services/player.js Tue Aug 16 00:16:08 2016 +0200
@@ -10,9 +10,21 @@
window: '',
playing: false,
progress: 0, // In Milliseconds
- reduce: false,
+ videoscreen: false,
+
+ modelObserver: Ember.observer('model', function() {
+ this.toggleVideoscreen(this.get('model').get('video'));
+ }),
- display: function(el) {
+ displayAdditionalInformation: function(el) {
+ if(el === 'video') {
+ this.toggleVideoscreen();
+ } else {
+ this.displayMetadata(el);
+ }
+ },
+
+ displayMetadata: function(el) {
if(this.get('window') !== el) {
this.set('window', el);
} else {
@@ -20,6 +32,14 @@
}
},
+ toggleVideoscreen: function(state) {
+ if(typeof state === 'undefined') {
+ this.set('videoscreen', !this.get('videoscreen'));
+ } else {
+ this.set('videoscreen', state);
+ }
+ },
+
init: function() {
this.on('reset', Ember.run.bind(this, this.get('reset')));
},