From 3b65b9a1c326d5ac65129eae2a29f59eafd5dd83 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 26 Dec 2014 23:44:31 +0000 Subject: [PATCH] trigger seeking/seeked events if video is not ready. fixes #2316 --- source/UI/js/Video/VideoElement.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/UI/js/Video/VideoElement.js b/source/UI/js/Video/VideoElement.js index 65ad76aa..7128c9d2 100644 --- a/source/UI/js/Video/VideoElement.js +++ b/source/UI/js/Video/VideoElement.js @@ -177,15 +177,21 @@ Ox.VideoElement = function(options, self) { function isReady($video, callback) { if ($video[0].seeking) { + that.triggerEvent('seeking'); $video.one('seeked', function(event) { + that.triggerEvent('seeked'); callback($video[0]); }); } else if ($video[0].readyState) { callback($video[0]); } else { + that.triggerEvent('seeking'); $video.one('loadedmetadata', function(event) { callback($video[0]); }); + $video.one('seeked', function(event) { + that.triggerEvent('seeked'); + }); } }