diff --git a/source/Ox.UI/js/Video/VideoElement.js b/source/Ox.UI/js/Video/VideoElement.js index 395b51c7..5c54e429 100644 --- a/source/Ox.UI/js/Video/VideoElement.js +++ b/source/Ox.UI/js/Video/VideoElement.js @@ -459,10 +459,12 @@ Ox.VideoElement = function(options, self) { if (self.ended) { that.currentTime(0); } - self.ended = false; - self.paused = false; - self.seeking = false; - self.video.play(); + isReady(self.$video, function(video) { + self.ended = false; + self.paused = false; + self.seeking = false; + video.play(); + }); return that; }; diff --git a/source/Ox.UI/js/Video/VideoPlayer.js b/source/Ox.UI/js/Video/VideoPlayer.js index 1731dbdd..af654ff4 100644 --- a/source/Ox.UI/js/Video/VideoPlayer.js +++ b/source/Ox.UI/js/Video/VideoPlayer.js @@ -1874,9 +1874,9 @@ Ox.VideoPlayer = function(options, self) { if (!self.options.paused) { self.options.paused = true; - togglePaused('button'); + togglePaused('loadedmetadata'); } else if (self.options.paused && self.playOnLoad) { - togglePaused('button'); + togglePaused('loadedmetadata'); } self.$playButton && self.$playButton.options({disabled: false});