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
|
<video
|
||||||
src="/media/{{ video.media_url }}"
|
src="/media/{{ video.media_url }}"
|
||||||
poster="/cache/{{ video.vid_thumb_url }}" controls preload="false"
|
poster="/cache/{{ video.vid_thumb_url }}" controls preload="false"
|
||||||
type='video/mp4' width="100%">
|
type='video/mp4' width="100%" playsinline>
|
||||||
</video>
|
</video>
|
||||||
</div>
|
</div>
|
||||||
<div class="info-box info-box-3 padding-box">
|
<div class="info-box info-box-3 padding-box">
|
||||||
|
@ -230,6 +230,7 @@ function createPlayer(button) {
|
|||||||
videoPlayer.setAttribute('controls', true);
|
videoPlayer.setAttribute('controls', true);
|
||||||
videoPlayer.setAttribute('autoplay', true);
|
videoPlayer.setAttribute('autoplay', true);
|
||||||
videoPlayer.setAttribute('width', '100%');
|
videoPlayer.setAttribute('width', '100%');
|
||||||
|
videoPlayer.setAttribute('playsinline', true);
|
||||||
videoPlayer.setAttribute('poster', mediaThumb);
|
videoPlayer.setAttribute('poster', mediaThumb);
|
||||||
playerElement.appendChild(videoPlayer);
|
playerElement.appendChild(videoPlayer);
|
||||||
// title bar
|
// title bar
|
||||||
|
Loading…
Reference in New Issue
Block a user