Changeset 748


Ignore:
Timestamp:
12/11/09 16:07:17 (3 years ago)
Author:
zach
Message:
Location:
trunk/fl5
Files:
4 edited

Legend:

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

    r747 r748  
    116116                /** Finalizes the loading process **/ 
    117117                private function finishLoad():void { 
    118                         if (!media) { 
     118                        var ext:String = item.file.substr(-4); 
     119                        if (ext == '.mp3'){ 
     120                                media = null; 
     121                        } else if (!media) { 
    119122                                media = _video; 
    120123                        } 
     
    165168                /** Resume playing. **/ 
    166169                override public function play():void { 
     170                        /*  
     171                        * Livestreams will reset their buffer if _stream.resume is called, 
     172                        * so we suppress them after the intial call 
     173                        */ 
    167174                        if (!(livestream && _started)) { 
    168175                                _stream.resume(); 
  • trunk/fl5/src/com/longtailvideo/jwplayer/player/PlayerVersion.as

    r747 r748  
    33         
    44        public class PlayerVersion { 
    5                 protected static var _version:String = "5.1.747"; 
     5                protected static var _version:String = "5.0.748"; 
    66                 
    77                public static function get version():String { 
  • trunk/fl5/src/com/longtailvideo/jwplayer/view/View.as

    r735 r748  
    421421 
    422422                protected function imageComplete(evt:Event):void { 
    423                         Draw.smooth(_image.loadedObject as Bitmap); 
    424                         _imageLayer.addChild(_image.loadedObject); 
    425                         _imageLayer.x = _components.display.x; 
    426                         _imageLayer.y = _components.display.y; 
    427                         Stretcher.stretch(_image.loadedObject, _player.config.width, _player.config.height, _player.config.stretching); 
     423                        if (_image.loadedObject is Bitmap) { 
     424                                Draw.smooth(_image.loadedObject as Bitmap); 
     425                                _imageLayer.addChild(_image.loadedObject); 
     426                                _imageLayer.x = _components.display.x; 
     427                                _imageLayer.y = _components.display.y; 
     428                                Stretcher.stretch(_image.loadedObject, _player.config.width, _player.config.height, _player.config.stretching); 
     429                        } else { 
     430                                _image = null; 
     431                                Logger.log('Error loading preview image.'); 
     432                        } 
    428433                } 
    429434 
Note: See TracChangeset for help on using the changeset viewer.