        fragment at right offset */
        if(_playlist_pts_loading == true) {
           for(var k:Number=0; k < _ts.audioTags.length; k++) {
-             min_pts = Math.min(min_pts,_ts.audioTags[k].pts);
-             max_pts = Math.max(max_pts,_ts.audioTags[k].pts);
+             min_audio_pts = Math.min(min_audio_pts,_ts.audioTags[k].pts);
+             max_audio_pts = Math.max(max_audio_pts,_ts.audioTags[k].pts);
          }
-         _levels[_level].pts_value = min_pts;
+         _levels[_level].pts_value = min_audio_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);
+         Log.txt("Loaded  SN " + _seqnum +  " of [" + (_levels[_level].start_seqnum) + "," + (_levels[_level].end_seqnum) + "],level "+ _level + " min/max audio PTS:" + min_audio_pts +"/" + max_audio_pts);
          
          _playlist_pts_loading = false;
          _playlist_pts_loaded = true;


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

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

         Log.txt("Loaded  SN " + _seqnum +  " of [" + (_levels[_level].start_seqnum) + "," + (_levels[_level].end_seqnum) + "],level "+ _level + " min/max audio PTS:" + min_audio_pts +"/" + max_audio_pts);
         _last_segment_duration = max_audio_pts-min_audio_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_audio_pts,max_audio_pts);
         _hls.dispatchEvent(new HLSEvent(HLSEvent.FRAGMENT, getMetrics()));
      } catch (error:Error) {
        _hls.dispatchEvent(new HLSEvent(HLSEvent.ERROR, error.toString()));
