Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
None
-
None
-
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