                 Log.debug("loading completed");
             }
             _fragSkipping = false;
+            _fragSkipCount = 0;
             _metrics.loading_end_time = getTimer();
             _metrics.size = fragData.bytesLoaded;
 

        private var _fragRetryCount : int;
        private var _fragLoadStatus : int;
        private var _fragSkipping : Boolean;
        /** reference to previous/current fragment */
        private var _fragPrevious : Fragment;
        private var _fragCurrent : Fragment;

                    }
                    // switch back to IDLE state to request new fragment at lowest level
                    _loadingState = LOADING_IDLE;
                } else if(HLSSettings.fragmentLoadSkipAfterMaxRetry == true && _fragSkipCount < HLSSettings.maxSkippedFragments || HLSSettings.maxSkippedFragments < 0) {
                    /* check if loaded fragment is not the last one of a live playlist.
                        if it is the case, don't skip to next, as there is no next fragment :-)
                    */
