You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Phuong Too (JIRA)" <ji...@apache.org> on 2016/07/07 07:29:11 UTC

[jira] [Comment Edited] (CB-9885) windows platform cannot play background audio

    [ https://issues.apache.org/jira/browse/CB-9885?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15365734#comment-15365734 ] 

Phuong Too edited comment on CB-9885 at 7/7/16 7:28 AM:
--------------------------------------------------------

Dear [~purplecabbage], [~ghenry22], @ [~jira-bot]

I tried create new app cordova and install latest version cordova plugin media (2.3.0) to demo play background audio on windows platform but not work.

1. On windows platform (windows 10 desktop):
- Open app -> play audio
- Minimize app -> audio doesn't play background. 
- Lock screen -> audio doesn't play background. 

2. On windows phone 10:
- Open app -> play audio
- Lock screen, presses home button device -> audio doesn't play background.

Please help me double check this issue.
You can refer my source code cordovaMediaBackground.zip

Thank you very much


was (Author: phuongwd):
Dear [~jira-bot], [~ghenry22],

I tried create new app cordova and install latest version cordova plugin media (2.3.0) to demo play background audio on windows platform but not work.

1. On windows platform (windows 10 desktop):
- Open app -> play audio
- Minimize app -> audio doesn't play background. 
- Lock screen -> audio doesn't play background. 

2. On windows phone 10:
- Open app -> play audio
- Lock screen, presses home button device -> audio doesn't play background.

Please help me double check this issue.
You can refer my source code cordovaMediaBackground.zip

Thank you very much

> windows platform cannot play background audio
> ---------------------------------------------
>
>                 Key: CB-9885
>                 URL: https://issues.apache.org/jira/browse/CB-9885
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: Plugin Media
>         Environment: cordova platform windows
> windows 10 universal app
>            Reporter: Gaven Henry
>         Attachments: cordovaMediaBackground.zip
>
>   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:
> http://blogs.technet.com/b/chadduffey/archive/2014/06/27/implement-background-audio-for-modern-windows-applications.aspx



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org