Add webview.allowsInlineMediaPlayback feature for support HTML5 videos play inline on iPhone
brucesong08 opened this issue · 0 comments
brucesong08 commented
Is your feature request related to a problem? Please describe.
support HTML5 videos play inline on iPhone;
The default value of this property is false for iPhone and true for iPad.
Describe the solution you'd like
Add this code in wry/src/wkwebview/mod.rs at line 396
let _: id = msg_send![_preference, setValue:_yes forKey:NSString::new("allowsInlineMediaPlayback")];
Describe alternatives you've considered
Additional context
Important
Apps created before iOS 10.0 must use the webkit-playsinline attribute.