mirror of
https://github.com/videojs/video.js.git
synced 2025-02-18 12:24:02 +02:00
Fixed an issue where tag was undefined in iOS
This commit is contained in:
parent
52751a0d67
commit
c616695e4d
@ -40,7 +40,7 @@ vjs.Html5 = vjs.MediaTechController.extend({
|
||||
// In Chrome (15), if you have autoplay + a poster + no controls, the video gets hidden (but audio plays)
|
||||
// This fixes both issues. Need to wait for API, so it updates displays correctly
|
||||
player.ready(function(){
|
||||
if (this.options_['autoplay'] && this.paused()) {
|
||||
if (this.tag && this.options_['autoplay'] && this.paused()) {
|
||||
delete this.tag['poster']; // Chrome Fix. Fixed in Chrome v16.
|
||||
this.play();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user