poster on load, hide on play

This commit is contained in:
j 2024-02-06 13:34:23 +01:00
commit 75bd96ff94
2 changed files with 12 additions and 3 deletions

View file

@ -301,9 +301,6 @@ window.VideoElement = function(options) {
} else {
video = document.createElement('video');
}
if (self.options.poster) {
video.poster = self.options.poster
}
video.playsinline = true
video.setAttribute('playsinline', 'playsinline')
video.setAttribute('webkit-playsinline', 'webkit-playsinline')