Ignore:
Timestamp:
10/20/09 16:22:03 (4 years ago)
Author:
pablo
Message:

Load playlist items correctly on playlistItem()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/fl5/src/com/longtailvideo/jwplayer/controller/Controller.as

    r455 r498  
    122122 
    123123                private function playlistLoadHandler(evt:PlaylistEvent):void { 
    124                         // This stuff moved to playlist item handler 
     124                        playlistItemHandler(evt); 
     125                        if (_player.config.autostart) {  
     126                                load(_model.playlist.currentItem);  
     127                        } 
    125128                } 
    126129 
     
    145148                                _model.setActiveMediaProvider(item.provider); 
    146149                        } 
    147  
    148                         if (_player.config.autostart) {  
    149                                 load(_model.playlist.currentItem);  
    150                         } 
    151150                } 
    152151 
     
    290289                        if (0 <= index && index < _player.playlist.length) { 
    291290                                _player.playlist.currentIndex = index; 
    292                                 play(); 
     291                                load(index); 
    293292                                return true; 
    294293                        } 
Note: See TracChangeset for help on using the changeset viewer.