equal
deleted
inserted
replaced
3 export default Ember.Component.extend({ |
3 export default Ember.Component.extend({ |
4 classNames: ['player-component'], |
4 classNames: ['player-component'], |
5 currentTime: "00:00", |
5 currentTime: "00:00", |
6 duration: "00:00", |
6 duration: "00:00", |
7 |
7 |
8 _soundChanged: Ember.observer('sound', function() { |
8 _documentChanged: Ember.observer('document', function() { |
9 this.pause(); |
9 this.pause(); |
10 this.changeTime(0); |
10 this.changeTime(0); |
11 this.updateProgress(0); |
11 this.updateProgress(0); |
12 this.audio.src = this.get("sound").get("master"); |
12 this.audio.src = this.get("document").get("master"); |
13 this.audio.load(); |
13 this.audio.load(); |
14 this.set("currentTime", "00:00"); |
14 this.set("currentTime", "00:00"); |
15 }), |
15 }), |
16 |
16 |
17 didInsertElement: function(){ |
17 didInsertElement: function(){ |
108 this.pause(); |
108 this.pause(); |
109 } else { |
109 } else { |
110 this.play(); |
110 this.play(); |
111 } |
111 } |
112 }, |
112 }, |
113 prevNextSong(change){ |
113 prevNextDocument(change){ |
114 this.sendAction("action", change); |
114 this.sendAction("action", change); |
115 } |
115 } |
116 } |
116 } |
117 }); |
117 }); |