You could easily write your own native module to change WebView properties in a Trigger.io app. The function would probably look a lot like this:
+ (void)enableInlineMediaPlayback:(ForgeTask*)task {
if (NSClassFromString(@"WKWebView") && [[ForgeApp sharedApp] useWKWebView]) {
// Handle new WebView
WKWebView *webView = (WKWebView*)[[ForgeApp sharedApp] webView];
WKWebViewConfiguration *configuration = [[WKWebViewConfiguration alloc] init];
configuration.allowsInlineMediaPlayback = YES;
webView.configuration = configuration;
} else {
// Handle old WebView
UIWebView *webView = (UIWebView*)[[ForgeApp sharedApp] webView];
webView.allowsInlineMediaPlayback = YES;
}
[task success:nil];
}
Additionally, you need to add the webkit-playsinline
attribute to the video HTML tag.
EDIT: I've adjusted the code to include relevant code for iOS8 and WKWebView.