                 var tagData : FLVData = new FLVData(tag, position, continuity);
                 switch(tag.type) {
                     case FLVTag.AAC_HEADER:
+                        _aacHeader = tagData;
                     case FLVTag.AAC_RAW:
                     case FLVTag.MP3_RAW:
                         _audioTags.push(tagData);
                         break;
                     case FLVTag.AVC_HEADER:
+                        _avcHeader = tagData;
                     case FLVTag.AVC_NALU:
                         _videoTags.push(tagData);
                         break;

        private var _audioTags : Vector.<FLVData>;
        private var _videoTags : Vector.<FLVData>;
        private var _metaTags : Vector.<FLVData>;
        /** playlist duration **/
        private var _playlist_duration : Number = 0;
        /** requested start position **/


        /* filter/tweak tags to seek accurately into the stream */
        private function seekFilterTags(tags : Vector.<FLVData>) : Vector.<FLVData> {
            var aacHeaderfound : Boolean = false;
            var avcHeaderfound : Boolean = false;
            var filteredTags : Vector.<FLVData>=  new Vector.<FLVData>();
            /* PTS of first tag that will be pushed into FLV tag buffer */
            var first_pts : Number;
