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

Support mediaPlaybackRequiresUserAction on Android

VotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      The In App Browser in Android after API Version 17 (Android 4.2+ I believe) by default does not permit playback of audio and video elements unless triggered by a user event (blocks both autoplay and playing via Javascript). That's the same behaviour as iOS. I have forked Inappbrowser and written a patch for the Android version here that respects this feature (same parameter name as for iOS):

      https://github.com/UstadMobile/cordova-plugin-inappbrowser/

      Reading the contributors page I believe I need to send/sign the agreement and I need to add unit tests to cover this. I'm not familiar with the Cordova testing framework so might take me a bit of time to do that, or perhaps someone can add an appropriate test?

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            mikedawson Mike Dawson
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment