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

Windows Phones platform can not play background audio

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • cordova-plugin-media
    • None
    • Windows Phones

    Description

      There is video demo play background audio for windows and windows phones (version 8.1+) platform: https://youtu.be/zYY6NKf7KQM

      1. Use the plugin https://github.com/apache/cordova-plugin-media
      cordova plugin add cordova-plugin-media@2.3.0

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

      => It just work only for windows platform.
      It does not work for windows phones platform.

      3. There is some reference How to play audio in the background:
      https://msdn.microsoft.com/en-us/library/windows/apps/xaml/jj841209.aspx
      Instructions

      I follow this reference and declare the background audio task.
      Open the package.phone.appxmanifest file in theplatforms/windows.

      Addition in <Extensions> tag.
      <Extension Category="windows.backgroundTasks" StartPage="www/index.html">
      <BackgroundTasks>
      <Task Type="audio" />
      </BackgroundTasks>
      </Extension>

      After that, build app but it can not build and got a message:
      "Severity Code Description Project File Line Suppression State
      Error DEP0001 : Unexpected Error: Package could not be registered. (Exception from HRESULT: 0x80073CF6)"
      Severity Code Description Project File Line Suppression State
      Error DEP6701 : Bootstrapping failed with unexpected error: 'DEP6700 : LaunchMsvsmon failed on the device side with error code 0x80070019'.
      Severity Code Description Project File Line Suppression State
      Error DEP6700 : LaunchMsvsmon failed on the device side with error code 0x80070019

      Attachments

        Activity

          People

            Unassigned Unassigned
            phuongwd Phuong To
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: