Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-7323

InAppBrowser overrides MediaPlaybackRequiresUserAction in config for main app

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • 3.5.0
    • None
    • None
    • iOS

    Description

      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?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              niltz Jeff Sawatzky
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: