Ignore:
Timestamp:
10/14/09 15:18:56 (4 years ago)
Author:
pablo
Message:

Playlist over state / fullscreen fix
PlaylistEvent.ITEM triggers play regardless of player state

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/fl5/src/com/longtailvideo/jwplayer/view/components/PlaylistComponent.as

    r454 r455  
    1010        import com.longtailvideo.jwplayer.utils.Stretcher; 
    1111        import com.longtailvideo.jwplayer.utils.Strings; 
     12        import com.longtailvideo.jwplayer.view.PlayerLayoutManager; 
    1213        import com.longtailvideo.jwplayer.view.interfaces.IPlaylistComponent; 
    1314         
     
    326327                        clip.back.height =  height; 
    327328                        buildPlaylist(false); 
    328                         if (config['position'] == 'over' || _player.fullscreen) { 
     329                        if (config['position'] == 'over') { 
    329330                                stateHandler(); 
    330                         } else { 
     331                        } else if (PlayerLayoutManager.testPosition(config['position'])) { 
    331332                                clip.visible = true; 
     333                        } else { 
     334                                clip.visible = false; 
    332335                        } 
    333336                } 
     
    383386                /** Process state changes **/ 
    384387                protected function stateHandler(evt:PlayerStateEvent = null):void { 
    385                         if (config['position'] == 'over' || _player.fullscreen) { 
     388                        if (config['position'] == 'over') { 
    386389                                if (player.state == PlayerState.PLAYING || player.state == PlayerState.PAUSED || player.state == PlayerState.BUFFERING) { 
    387390                                        visible = false; 
Note: See TracChangeset for help on using the changeset viewer.