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

mediaPlaybackRequiresUserAction unable to be set to "NO"

VotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0
    • cordova-ios
    • None

    Description

      reported at: https://github.com/phonegap/phonegap-iphone/issues/318
      by: https://github.com/splendid

      It looks like the code that deals with checking the plist and setting the `mediaPlaybackRequiresUserAction` value is incorrect.

      it makes the assumption that this value is set to "NO" by default (which is incorrect); and as such does not allow a user to set this value to "NO".

      Relevant code: PhoneGapDelegate.m, lines 425-427:

      ```objective-c
      if ([mediaPlaybackRequiresUserAction boolValue] && [self.webView respondsToSelector:@selector(mediaPlaybackRequiresUserAction)]) {
      self.webView.mediaPlaybackRequiresUserAction = YES;
      }
      ```

      (Apologies for not submitting a patch myself, I'm still battling #104)

      Attachments

        Activity

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

          People

            becka11y Becky Gibson
            shazron Shazron Abdullah
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment