Merge pull request #963 from friday/verify-poster

Make sure poster element isn't shown if the image isn't loaded
This commit is contained in:
Sam Potts
2018-05-19 11:27:52 +10:00
committed by GitHub
7 changed files with 68 additions and 21 deletions

View File

@@ -802,10 +802,7 @@ class Plyr {
return;
}
if (utils.is.string(input)) {
this.media.setAttribute('poster', input);
ui.setPoster.call(this);
}
ui.setPoster.call(this, input);
}
/**