Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add playsinline attribute to video tag #3938

Closed
wants to merge 1 commit into from

Conversation

FireMasterK
Copy link
Member

This PR 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 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.
Copy link

Deploying piped with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4e8b0ed
Status:🚫  Build failed.

View logs

@@ -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 />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ·ref="videoEl"·class="w-full"·data-shaka-player·:autoplay="shouldAutoPlay"·:loop="selectedAutoLoop"·playsinline with ⏎············ref="videoEl"⏎············class="w-full"⏎············data-shaka-player⏎············:autoplay="shouldAutoPlay"⏎············:loop="selectedAutoLoop"⏎············playsinline⏎·······

Suggested change
<video ref="videoEl" class="w-full" data-shaka-player :autoplay="shouldAutoPlay" :loop="selectedAutoLoop" playsinline />
<video
ref="videoEl"
class="w-full"
data-shaka-player
:autoplay="shouldAutoPlay"
:loop="selectedAutoLoop"
playsinline
/>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add playsinline attribute to <video> tag in VideoPlayer.vue
2 participants