Add playsinline attribute to video tag

This fixes #3734 by adding the playsinline attribute to the video tag in VideoPlayer.vue.
This attribute is required for iOS devices to play videos inline instead of going into fullscreen mode by default.
This commit is contained in:
openhands 2025-01-13 20:59:17 +00:00
parent 14c857ae08
commit 4e8b0edaa5

View File

@ -5,7 +5,7 @@
class="relative max-h-screen w-full flex justify-center"
:class="{ 'player-container': !isEmbed }"
>
<video ref="videoEl" class="w-full" data-shaka-player :autoplay="shouldAutoPlay" :loop="selectedAutoLoop" />
<video ref="videoEl" class="w-full" data-shaka-player :autoplay="shouldAutoPlay" :loop="selectedAutoLoop" playsinline />
<span
id="preview-container"
ref="previewContainer"