avoid flicker on load if no poster is set

This commit is contained in:
j 2014-02-07 05:08:17 +00:00
parent 1420ca914b
commit d3fc02e344

View file

@ -289,7 +289,10 @@ Ox.VideoElement = function(options, self) {
} }
self.video.volume = volume; self.video.volume = volume;
self.video.muted = muted; self.video.muted = muted;
self.$video.css(css).show(); self.$video.css(css);
onLoadedMetadata(self.$video, function() {
self.$video.show();
});
!self.paused && self.video.play(); !self.paused && self.video.play();
Ox.Log('Video', 'sCV', self.video.src, item['in']); Ox.Log('Video', 'sCV', self.video.src, item['in']);
if (item['in']) { if (item['in']) {