From 43393af13242971353db794580593ec500fdf213 Mon Sep 17 00:00:00 2001 From: j Date: Sun, 31 Dec 2017 15:16:24 +0100 Subject: [PATCH] dont seek again if already seeking --- source/UI/js/Video/VideoElement.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/UI/js/Video/VideoElement.js b/source/UI/js/Video/VideoElement.js index 89fb7ea5..0e4e33a9 100644 --- a/source/UI/js/Video/VideoElement.js +++ b/source/UI/js/Video/VideoElement.js @@ -215,9 +215,11 @@ Ox.VideoElement = function(options, self) { function isReady($video, callback) { - if ($video[0].seeking && !self.paused) { + if ($video[0].seeking && !self.paused && !self.seeking) { that.triggerEvent('seeking'); + Ox.Log('Video', 'isReady', 'seeking'); $video.one('seeked', function(event) { + Ox.Log('Video', 'isReady', 'seeked'); that.triggerEvent('seeked'); callback($video[0]); });