cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phuong Too (JIRA)" <>
Subject [jira] [Commented] (CB-9885) windows platform cannot play background audio
Date Fri, 08 Jul 2016 09:09:10 GMT


Phuong Too commented on CB-9885:

Hi [~ghenry22],

Thank you for your comment.
1. The audio play background work now. (follow the link above)

2. On windows phone: 
        <Application Id="" StartPage="www/index.html">
            <m3:VisualElements BackgroundColor="transparent" Description="CordovaApp" DisplayName="getAbstract"
ForegroundText="light" Square150x150Logo="images\Square150x150Logo.png" Square44x44Logo="images\Square44x44Logo.png">
                <m3:DefaultTile Square71x71Logo="images\Square71x71Logo.png" Wide310x150Logo="images\Wide310x150Logo.png">
                        <m3:ShowOn Tile="square150x150Logo" />
                        <m3:ShowOn Tile="wide310x150Logo" />
                <m3:SplashScreen BackgroundColor="#FFFFFF" Image="images\SplashScreenPhone.png"
                    <m3:Rotation Preference="portrait" />
                    <m3:Rotation Preference="landscape" />
                    <m3:Rotation Preference="landscapeFlipped" />
                <Extension Category="windows.backgroundTasks" StartPage="www/js/audio.js">
                        <Task Type="audio" />

addition to the "" file.
But I can not build app and got a message:

"Severity	Code	Description	Project	File	Line	Suppression State
Error		DEP0001 : Unexpected Error: Package could not be registered. (Exception from HRESULT:

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				

If I remove the  code below. Build app is OK.
<Extension Category="windows.backgroundTasks" StartPage="www/js/audio.js">
                 <Task Type="audio" />

Could you help me?
Thank you very much. Have a nice weekend.

> windows platform cannot play background audio
> ---------------------------------------------
>                 Key: CB-9885
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: Plugin Media
>         Environment: cordova platform windows
> windows 10 universal app
>            Reporter: Gaven Henry
>         Attachments:
>   Original Estimate: 1h
>  Remaining Estimate: 1h
> 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:

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message