mirror of
https://github.com/tubearchivist/tubearchivist
synced 2024-11-19 15:25:51 +00:00
playsinline fix for mobile safari
This commit is contained in:
parent
58efe64c5d
commit
e4352e5bec
@ -9,7 +9,7 @@
|
||||
<video
|
||||
src="/media/{{ video.media_url }}"
|
||||
poster="/cache/{{ video.vid_thumb_url }}" controls preload="false"
|
||||
type='video/mp4' width="100%">
|
||||
type='video/mp4' width="100%" playsinline>
|
||||
</video>
|
||||
</div>
|
||||
<div class="info-box info-box-3 padding-box">
|
||||
|
@ -230,6 +230,7 @@ function createPlayer(button) {
|
||||
videoPlayer.setAttribute('controls', true);
|
||||
videoPlayer.setAttribute('autoplay', true);
|
||||
videoPlayer.setAttribute('width', '100%');
|
||||
videoPlayer.setAttribute('playsinline', true);
|
||||
videoPlayer.setAttribute('poster', mediaThumb);
|
||||
playerElement.appendChild(videoPlayer);
|
||||
// title bar
|
||||
|
Loading…
Reference in New Issue
Block a user