Skip to content

Commit

Permalink
Add playsinline attribute to video (#185)
Browse files Browse the repository at this point in the history
This is meant to enhance the support of Safari browser, where when the
video starts in fullscreen there are rendering issues on some Safari /
OS versions. This is clearly a workaround but it does not hurt at all.
  • Loading branch information
benoit74 authored Apr 18, 2024
1 parent 8719442 commit d3037dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ted2zim/templates/article.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
{% endfor %}
<div id="video-wrapper">
<video class="video-js vjs-default-skin vjs-fill"
controls preload="auto"
controls preload="auto" playsinline
poster="videos/{{ video_id }}/thumbnail.webp"
data-setup='{"techOrder": ["html5", "ogvjs"], "ogvjs": {"base": "assets/ogvjs"}, "autoplay": {% if autoplay %}true{% else %}false{% endif %}, "preload": true, "controls": true, "controlBar": {"pictureInPictureToggle":false}}'>
<source src="videos/{{ video_id }}/video.{{ video_format }}" type="video/{{ video_format }}" />
Expand Down

0 comments on commit d3037dc

Please sign in to comment.