cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <>
Subject [jira] [Commented] (CB-10153) WKWebview does not respect the webkit-playsinline attribute
Date Tue, 15 Dec 2015 09:22:46 GMT


Shazron Abdullah commented on CB-10153:

I've verified it to be an Apple bug.

Firstly, I verified that it wasn't a Cordova configuration reading problem. 

I first observed, before setting it to true, that the value for:
... is NO.

So I set it to:
wkWebView.configuration.allowsInlineMediaPlayback = YES;

Then I grabbed the value again immediately, 
... and it was NO as well.

> WKWebview does not respect the webkit-playsinline attribute
> -----------------------------------------------------------
>                 Key: CB-10153
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin WKWebViewEngine
>    Affects Versions: 4.0.0
>         Environment: iPhone 5s, Cordova 5.4.1, iOS 9.1
>            Reporter: Frederik Wessberg
>            Assignee: Shazron Abdullah
>              Labels: cordova-ios-4.0.1
> With the config.xml preference "AllowInlineMediaPlayback" set to true and the attribute
"webkit-playsinline" set on HTML5 video elements, you would expect the media to play inline
on iPhone devices such as on UIWebview.
> Looking in the CDVWKWebViewEngine.m file, the property is correctly bound to the WKWebview
config object: 
> wkWebView.configuration.allowsInlineMediaPlayback = [settings cordovaBoolSettingForKey:@"AllowInlineMediaPlayback"
> However, video elements does NOT play inline.
> Here's a repo that shows this behavior:

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message