[ 
https://issues.apache.org/jira/browse/CB-10153?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15054888#comment-15054888
 ] 

Frederik Wessberg commented on CB-10153:
----------------------------------------

I've commited a change to the repo with a meta CSP tag in the header of the 
index.html file:
<meta http-equiv="Content-Security-Policy" content="default-src 'self' data: 
gap: https://ssl.gstatic.com; style-src 'self' 'unsafe-inline'; media-src *">

This does not affect the behavior, though. The video will not play inline.
I've also added a call to the play() method of the HTML5 video element from 
Javascript which doesn't work either.
It would seem that also this config: <preference 
name="MediaPlaybackRequiresUserAction" value="false" /> is ignored.

> WKWebview does not respect the webkit-playsinline attribute
> -----------------------------------------------------------
>
>                 Key: CB-10153
>                 URL: https://issues.apache.org/jira/browse/CB-10153
>             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
>              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" defaultValue:NO];
> However, video elements does NOT play inline.
> Here's a repo that shows this behavior:
> https://github.com/dlmma/NoInline



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to