Ensure poster image is not downloaded again for HTML5 videos
This commit is contained in:
parent
2e2c5ad72a
commit
bfc541b880
@ -172,6 +172,11 @@ const ui = {
|
|||||||
// Set property synchronously to respect the call order
|
// Set property synchronously to respect the call order
|
||||||
this.media.setAttribute('poster', poster);
|
this.media.setAttribute('poster', poster);
|
||||||
|
|
||||||
|
// HTML5 uses native poster attribute
|
||||||
|
if (this.isHTML5) {
|
||||||
|
return Promise.resolve(poster);
|
||||||
|
}
|
||||||
|
|
||||||
// Wait until ui is ready
|
// Wait until ui is ready
|
||||||
return (
|
return (
|
||||||
ready
|
ready
|
||||||
|
Loading…
x
Reference in New Issue
Block a user