dont seek again if already seeking
This commit is contained in:
parent
de5f82045b
commit
43393af132
1 changed files with 3 additions and 1 deletions
|
@ -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]);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue