You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/09/23 15:50:16 UTC
[GitHub] [cordova-ios] breautek commented on issue #1151: WebView Not Respecting video tag "playsinline" attribute
breautek commented on issue #1151:
URL: https://github.com/apache/cordova-ios/issues/1151#issuecomment-925938935
It appears for `playsinline` to work, we need to enable [allowsInlineMediaPlayback](https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/1614793-allowsinlinemediaplayback?language=objc)
https://github.com/apache/cordova-ios/blob/715c2dbfb273fb33721e8cf3f989ce7b20892d32/CordovaLib/Classes/Private/Plugins/CDVWebViewEngine/CDVWebViewEngine.m#L80
Looks like we do set this property but it's disabled by default, but can be enabled via the `AllowInlineMediaPlayback` preference.
Try adding `<preference name="AllowInlineMediaPlayback" value="true" />` in your config.xml.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org