cms/app-client/app/services/player.js
changeset 252 ba4fd614582a
parent 251 ac320de33ec7
child 253 0be9770b09b4
equal deleted inserted replaced
251:ac320de33ec7 252:ba4fd614582a
    25 
    25 
    26     setProgress: function(time) {
    26     setProgress: function(time) {
    27         this.set('progress', time);
    27         this.set('progress', time);
    28     },
    28     },
    29 
    29 
       
    30     select: function (id) {
       
    31         this.set('item', id);
       
    32     },
       
    33 
    30     play: function(id) {
    34     play: function(id) {
    31         this.set('item', id);
    35         this.select(id);
    32         this.set('playing', true);
    36         this.set('playing', true);
    33     },
    37     },
    34 
    38 
    35     pause: function() {
    39     pause: function() {
    36         this.set('playing', false);
    40         this.set('playing', false);