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

Fix iOS video fullscreen problem #516

Merged
merged 2 commits into from
Nov 17, 2022
Merged

Fix iOS video fullscreen problem #516

merged 2 commits into from
Nov 17, 2022

Conversation

MrOrz
Copy link
Member

@MrOrz MrOrz commented Nov 10, 2022

Fixes #511

From doc:

Without the playsinline attribute, videos must be in full-screen mode for playback on iPhone.
https://developer.apple.com/documentation/webkit/delivering_video_content_for_safari#3030250

This PR adds playsinline (camelCase in React) so that iOS don't automatically fullscreen the videos.
The branch has been deployed to https://dev.cofacts.tw for iOS users to test.

RPReplay_Final1668105428.mov

@MrOrz MrOrz self-assigned this Nov 10, 2022
@coveralls
Copy link

Coverage Status

Coverage remained the same at 76.235% when pulling 95c88a0 on ios-fullscreen into 0f88656 on master.

@MrOrz MrOrz merged commit bf0362a into master Nov 17, 2022
@MrOrz MrOrz deleted the ios-fullscreen branch November 17, 2022 18:17
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.

iOS user will show full screen video on article list
2 participants