Hacker News new | ask | show | jobs
by mnemnc 1466 days ago
That‘s at least the default behavior if not the only way to play video on iPhone‘s Safari. iPad Safari however supports non-fullscreen video playback.
3 comments

iOS Safari can play videos non-fullscreen with the playsinline or webkit-playsinline attributes. The fun thing though is that this attribute must be enabled manually on each web view, so if some other app is embedding your page and they didn't enable it, your videos will play fullscreen despite the attribute being set.
Fullscreen is definitely not the only way to play video on iOS safari...
YouTube (the website) plays video in a frame just fine.