   if (currentTimeUpdateTimeout != null) {
                    clearTimeout(currentTimeUpdateTimeout);
                    currentTimeUpdateTimeout = null;
                }
            }
        }

        function playerBufferedEnd() {
            for (var i = 0; i < video.buffered.length; i++) {
                if (video.currentTime >= video.buffered.start(i) && video.currentTime <= video.buffered.end(i)) {
                    return video.buffered.end(i);
                }
            }

            ret