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

Sergey Grebnov commented on CB-7323:
------------------------------------

Marking as low priority as it is documented behavior and there is a workaround 
for this, but it will be great if plugin can fallback to config setting instead 
of default value in this case

mediaPlaybackRequiresUserAction: Set to yes or no to prevent HTML5 audio or 
video from autoplaying (defaults to no).

> InAppBrowser overrides MediaPlaybackRequiresUserAction in config for main app
> -----------------------------------------------------------------------------
>
>                 Key: CB-7323
>                 URL: https://issues.apache.org/jira/browse/CB-7323
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin InAppBrowser
>    Affects Versions: 3.5.0
>         Environment: iOS
>            Reporter: Jeff Sawatzky
>            Priority: Trivial
>
> In my config.xml I have
> <preference name="MediaPlaybackRequiresUserAction" value="true" />
> Which works fine (auto play vine videos don't autoplay. yay!)...until I 
> launch the InAppBrowser which then sets a user preference 
> WebKitMediaPlaybackRequiresUserGesture to false, and then the main app webkit 
> windows seems to read this setting instead of the one in the config.
> I got around this by passing the mediaPlaybackRequiresUserAction=yes to 
> window.open, but perhaps the InAppBrowser shouldn't be setting this 
> preference option?



--
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