always use poster
This commit is contained in:
parent
384519ed52
commit
3f128612ba
1 changed files with 3 additions and 3 deletions
|
@ -296,14 +296,14 @@ window.VideoElement = function(options) {
|
||||||
video = queue.pop();
|
video = queue.pop();
|
||||||
} else {
|
} else {
|
||||||
video = document.createElement('video');
|
video = document.createElement('video');
|
||||||
if (self.options.poster) {
|
|
||||||
video.poster = self.options.poster
|
|
||||||
}
|
|
||||||
restrictedElements.push(video);
|
restrictedElements.push(video);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
video = document.createElement('video');
|
video = document.createElement('video');
|
||||||
}
|
}
|
||||||
|
if (self.options.poster) {
|
||||||
|
video.poster = self.options.poster
|
||||||
|
}
|
||||||
video.playsinline = true
|
video.playsinline = true
|
||||||
video.setAttribute('playsinline', 'playsinline')
|
video.setAttribute('playsinline', 'playsinline')
|
||||||
video.setAttribute('webkit-playsinline', 'webkit-playsinline')
|
video.setAttribute('webkit-playsinline', 'webkit-playsinline')
|
||||||
|
|
Loading…
Reference in a new issue