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

windows platform cannot play background audio

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • cordova-plugin-media
    • None
    • cordova platform windows
      windows 10 universal app

    Description

      There are specific requirements to play background audio in a windows 10 universal app. If they are not met then audio will stop whenever the app is minimized or in the background.

      One of these requirements needs to be set on creation of the media object before the source is assigned.

      Need to update the create() method for the windows platform to assign msAudioCategory value so that people CAN enable background audio if they wish.

      This change has no impact on the general use case and audio will continue to behave the same way it currently does UNLESS the user also meets the other requirements in their particular app to enable background audio.

      These requirements are:
      register for media controls
      addition to the package.appxmanifest for your app to specifically enable background audio.

      There is some reference material here for the additional requirements:
      http://blogs.technet.com/b/chadduffey/archive/2014/06/27/implement-background-audio-for-modern-windows-applications.aspx

      Attachments

        1. cordovaMediaBackground.zip
          7.55 MB
          Phuong To

        Activity

          People

            Unassigned Unassigned
            ghenry22 Gaven Henry
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified