fregante / iphone-inline-video

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

iOS 10 WKwebview #89

Closed erikandershed closed 7 years ago

erikandershed commented 7 years ago

Will it work in a WKwebview on ios10. Because I can't get the playinline or autoplay to work. Even if it work in safari it will not work in WKwebview.

Please help.

fregante commented 7 years ago

What color is this in that view? https://codepen.io/anon/pen/xEdwop

If it's green, then IIV is disabled and playsinline should work natively.

If it's red, either look into how to enable playsinline in your WKWebView or verify that the video element has an IIV class. If not, you're probably not running IIV correctly.

erikandershed commented 7 years ago

sweet function! It's red for me. How is do I enable the playinline in my WKWebView?

fregante commented 7 years ago

I'm not an iOS developer so Google might be more helpful

erikandershed commented 7 years ago

I have google it like for ever.. there is no help. Do you know anyone how can help me?

fregante commented 7 years ago

StackOverflow

Reon90 commented 7 years ago

@erikandershed <preference name="AllowInlineMediaPlayback" value="true" />