                 if (fragData.tags.length) {
                     if (fragData.metadata_tag_injected == false) {
                         fragData.tags.unshift(_fragCurrent.metadataTag);
+                        if (_hasDiscontinuity) {
+                            fragData.tags.unshift(new FLVTag(FLVTag.DISCONTINUITY, fragData.dts_min, fragData.dts_min, false));
+                        }
                         fragData.metadata_tag_injected = true;
                     }
                     _streamBuffer.appendTags(HLSLoaderTypes.FRAGMENT_ALTAUDIO,_fragCurrent.level,_fragCurrent.seqnum , fragData.tags, fragData.tag_pts_min, fragData.tag_pts_max + fragData.tag_duration, _fragCurrent.continuity, _fragCurrent.start_time + fragData.tag_pts_start_offset / 1000);


            if (fragData.metadata_tag_injected == false) {
                fragData.tags.unshift(_fragCurrent.metadataTag);
                fragData.metadata_tag_injected = true;
            }
            // provide tags to HLSNetStream

                _keystreamloader.addEventListener(HTTPStatusEvent.HTTP_STATUS, _keyLoadHTTPStatusHandler);
                _keystreamloader.addEventListener(Event.COMPLETE, _keyLoadCompleteHandler);
            }
            if (_hasDiscontinuity) {
                _demux = null;
            }
            _metrics = new HLSLoadMetrics(HLSLoaderTypes.FRAGMENT_ALTAUDIO);
            _metrics.level = _level.index;
            _metrics.id = frag.seqnum;
