Ignore:
Timestamp:
06/23/08 18:46:08 (5 years ago)
Author:
jeroen
Message:

lastminute bugfix on switching completed videostreams

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/as3/com/jeroenwijering/models/HTTPModel.as

    r13 r17  
    9999        /** Load content. **/ 
    100100        public function load() { 
    101                 stream.close(); 
     101                if(stream.bytesLoaded != stream.bytesTotal) { 
     102                        stream.close(); 
     103                } 
    102104                var url = model.playlist[model.config['item']]['file']; 
    103105                if(model.config["streamscript"] == "lighttpd") { 
     
    267269                clearInterval(loadinterval); 
    268270                clearInterval(timeinterval); 
    269                 stream.close(); 
     271                if(stream.bytesLoaded != stream.bytesTotal) { 
     272                        stream.close(); 
     273                } 
    270274                offset = timeoffset = 0; 
    271275        }; 
Note: See TracChangeset for help on using the changeset viewer.