Changeset 973
- Timestamp:
- 04/29/10 12:47:07 (3 years ago)
- Location:
- trunk/fl5
- Files:
-
- 4 edited
-
player.swf (modified) (previous)
-
src/com/longtailvideo/jwplayer/media/HTTPMediaProvider.as (modified) (3 diffs)
-
src/com/longtailvideo/jwplayer/media/MediaProvider.as (modified) (1 diff)
-
src/com/longtailvideo/jwplayer/view/components/PlaylistComponent.as (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/fl5/src/com/longtailvideo/jwplayer/media/HTTPMediaProvider.as
r960 r973 255 255 var bufferFill:Number; 256 256 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; 259 259 var bufferTime:Number = _stream.bufferTime < (item.duration - pos) ? _stream.bufferTime : Math.round(item.duration - pos); 260 260 bufferFill = _stream.bufferTime == 0 ? 0 : Math.ceil(_stream.bufferLength / bufferTime * 100); … … 341 341 switch (evt.info.code) { 342 342 case "NetStream.Play.Stop": 343 if (state != PlayerState.BUFFERING) { 344 complete(); 345 } 343 complete(); 346 344 break; 347 345 case "NetStream.Play.StreamNotFound": … … 362 360 /** Destroy the HTTP stream. **/ 363 361 override public function stop():void { 364 if (_stream.bytesLoaded < _stream.bytesTotal ) {362 if (_stream.bytesLoaded < _stream.bytesTotal || _byteoffset > 0) { 365 363 _stream.close(); 366 364 } else { -
trunk/fl5/src/com/longtailvideo/jwplayer/media/MediaProvider.as
r960 r973 231 231 /** Completes video playback **/ 232 232 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 } 235 237 } 236 238 -
trunk/fl5/src/com/longtailvideo/jwplayer/view/components/PlaylistComponent.as
r941 r973 102 102 background = new Sprite(); 103 103 background.name = "background"; 104 background.graphics.beginFill( 0, 1);104 background.graphics.beginFill(player.config.screencolor.color, 1); 105 105 background.graphics.drawRect(0, 0, 1, 1); 106 106 background.graphics.endFill();
Note: See TracChangeset
for help on using the changeset viewer.
