Ignore:
Timestamp:
09/17/09 18:47:05 (4 years ago)
Author:
zach
Message:

Updating Models to reflect need to load and removal of complete state

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/fl5/src/com/longtailvideo/jwplayer/media/RTMPMediaProvider.as

    r364 r370  
    4040                 
    4141                 
     42                public function RTMPMediaProvider() { 
     43                } 
     44                 
    4245                /** Constructor; sets up the connection and display. **/ 
    43                 public function RTMPMediaProvider(cfg:PlayerConfig):void { 
    44                         super(cfg, 'rtmp'); 
     46                public override function initializeMediaProvider(cfg:PlayerConfig):void { 
     47                        super.initializeMediaProvider(cfg); 
     48                        _provider = 'rtmp'; 
    4549                        connection = new NetConnection(); 
    4650                        connection.addEventListener(NetStatusEvent.NET_STATUS, statusHandler); 
     
    114118                        if (dat.type == 'complete') { 
    115119                                clearInterval(interval); 
    116                                 setState(MediaState.COMPLETED); 
     120                                setState(MediaState.IDLE); 
     121                                sendMediaEvent(MediaEvent.JWPLAYER_MEDIA_COMPLETE); 
    117122                        } else if (dat.type == 'close') { 
    118123                                stop(); 
     
    172177                                        stop(); 
    173178                                } 
    174                                 setState(MediaState.COMPLETED); 
     179                                setState(MediaState.IDLE); 
     180                                sendMediaEvent(MediaEvent.JWPLAYER_MEDIA_COMPLETE); 
    175181                        } 
    176182                } 
Note: See TracChangeset for help on using the changeset viewer.