fregante / iphone-inline-video

📱 Make videos playable inline on the iPhone (prevents automatic fullscreen)
https://npm.im/iphone-inline-video
MIT License
2.05k stars 300 forks source link

Is there a way to do this on an iframe element instead of <video>? #139

Closed mcarthurnick closed 6 years ago

mcarthurnick commented 6 years ago
<div class="videoWrapper">
    <youtube-video video-id="webVideoUrl" player="player" player-vars="playerVars"></youtube-video>
</div>
fregante commented 6 years ago

Unfortunately not. To work, IIV needs direct access to a video element, and that’s not possible in an iframe with a different origin (in this case YouTube)