Rewrite ui.setPoster to check that images arent broken or youtube fallback images. Only show poster element when valid
This commit is contained in:
@@ -801,10 +801,7 @@ class Plyr {
|
||||
return;
|
||||
}
|
||||
|
||||
if (utils.is.string(input)) {
|
||||
this.media.setAttribute('poster', input);
|
||||
ui.setPoster.call(this);
|
||||
}
|
||||
ui.setPoster.call(this, input);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user