 		
     /** Handles the actual reading of the TS fragment **/
     private function _readHandler(e:Event):void {
-       var min_pts:Number = Number.POSITIVE_INFINITY;
-       var max_pts:Number = Number.NEGATIVE_INFINITY;
+       var min_audio_pts:Number = Number.POSITIVE_INFINITY;
+       var min_video_pts:Number = Number.POSITIVE_INFINITY;
+       var max_audio_pts:Number = Number.NEGATIVE_INFINITY;
+       var max_video_pts:Number = Number.NEGATIVE_INFINITY;
        
        /* in case we are loading first fragment of a playlist, just retrieve 
        minimum PTS value to synchronize playlist PTS / sequence number. 

      
      try {
         _switchlevel = false;
         _levels[_level].pts_value = min_pts;
         _levels[_level].pts_seqnum = _seqnum;

         Log.txt("Loaded  SN " + _seqnum +  " of [" + (_levels[_level].start_seqnum) + "," + (_levels[_level].end_seqnum) + "],level "+ _level + " min/max PTS:" + min_pts +"/" + max_pts);
         _last_segment_duration = max_pts-min_pts;
         var frag:Fragment = _levels[_level].getFragmentfromSeqNum(_seqnum);
         if ((frag != null) && (frag.duration !=  (_last_segment_duration/1000))) {
           frag.duration = _last_segment_duration/1000;
           _levels[_level].updateStart();
         }
         _callback(_tags,min_pts,max_pts);
         _hls.dispatchEvent(new HLSEvent(HLSEvent.FRAGMENT, getMetrics()));
      } catch (error:Error) {
        _hls.dispatchEvent(new HLSEvent(HLSEvent.ERROR, error.toString()));


      // Push regular tags into buffer.
      for(var i:Number=0; i < _ts.videoTags.length; i++) {
         min_video_pts = Math.min(min_video_pts,_ts.videoTags[i].pts);
         max_video_pts = Math.max(max_video_pts,_ts.videoTags[i].pts);
        _tags.push(_ts.videoTags[i]);
      }
      for(var j:Number=0; j < _ts.audioTags.length; j++) {
         min_audio_pts = Math.min(min_audio_pts,_ts.audioTags[j].pts);
         max_audio_pts = Math.max(max_audio_pts,_ts.audioTags[j].pts);
        _tags.push(_ts.audioTags[j]);
      }
      
