1
0
mirror of https://github.com/videojs/video.js.git synced 2025-04-13 11:50:49 +02:00

Close GH-593: When autoplay = true, delete tag.poster instead of setting to null.

This commit is contained in:
Jon Zepernick 2013-06-24 12:38:05 -07:00 committed by Steve Heffernan
parent a040ce61ad
commit 02a1057ff4

View File

@ -41,7 +41,7 @@ vjs.Html5 = vjs.MediaTechController.extend({
// This fixes both issues. Need to wait for API, so it updates displays correctly
player.ready(function(){
if (this.options_['autoplay'] && this.paused()) {
this.tag.poster = null; // Chrome Fix. Fixed in Chrome v16.
delete this.tag['poster']; // Chrome Fix. Fixed in Chrome v16.
this.play();
}
});