Changeset 973


Ignore:
Timestamp:
04/29/10 12:47:07 (3 years ago)
Author:
pablo
Message:
  • Fixed seeking problem in HTTP media provider ( 765)
  • The default playlist background for PNG skinning should be the screencolor, not always black ( 880)
Location:
trunk/fl5
Files:
4 edited

Legend:

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

    r960 r973  
    255255                        var bufferFill:Number; 
    256256                        if (item.duration > 0 && _stream && _stream.bytesTotal > 0) { 
    257                                 percentoffset =  Math.round(_timeoffset /  item.duration * 100); 
    258                                 bufferPercent = (_stream.bytesLoaded / _stream.bytesTotal) * (1 - _timeoffset / item.duration) * 100; 
     257                                percentoffset =  _timeoffset /  item.duration * 100; 
     258                                bufferPercent = (_stream.bytesLoaded / _stream.bytesTotal) * (1 - percentoffset/100) * 100; 
    259259                                var bufferTime:Number = _stream.bufferTime < (item.duration - pos) ? _stream.bufferTime : Math.round(item.duration - pos); 
    260260                                bufferFill = _stream.bufferTime == 0 ? 0 : Math.ceil(_stream.bufferLength / bufferTime * 100); 
     
    341341                        switch (evt.info.code) { 
    342342                                case "NetStream.Play.Stop": 
    343                                         if (state != PlayerState.BUFFERING) { 
    344                                                 complete(); 
    345                                         } 
     343                                        complete(); 
    346344                                        break; 
    347345                                case "NetStream.Play.StreamNotFound": 
     
    362360                /** Destroy the HTTP stream. **/ 
    363361                override public function stop():void { 
    364                         if (_stream.bytesLoaded < _stream.bytesTotal) { 
     362                        if (_stream.bytesLoaded < _stream.bytesTotal || _byteoffset > 0) { 
    365363                                _stream.close(); 
    366364                        } else { 
  • trunk/fl5/src/com/longtailvideo/jwplayer/media/MediaProvider.as

    r960 r973  
    231231                /** Completes video playback **/ 
    232232                protected function complete():void { 
    233                         stop(); 
    234                         sendMediaEvent(MediaEvent.JWPLAYER_MEDIA_COMPLETE); 
     233                        if (state != PlayerState.IDLE) { 
     234                                stop(); 
     235                                sendMediaEvent(MediaEvent.JWPLAYER_MEDIA_COMPLETE); 
     236                        } 
    235237                } 
    236238                 
  • trunk/fl5/src/com/longtailvideo/jwplayer/view/components/PlaylistComponent.as

    r941 r973  
    102102                                background = new Sprite(); 
    103103                                background.name = "background"; 
    104                                 background.graphics.beginFill(0, 1); 
     104                                background.graphics.beginFill(player.config.screencolor.color, 1); 
    105105                                background.graphics.drawRect(0, 0, 1, 1); 
    106106                                background.graphics.endFill(); 
Note: See TracChangeset for help on using the changeset viewer.