Closed
Bug 1085229
Opened 10 years ago
Closed 6 years ago
music stop playing when the app goes into the background
Categories
(Firefox OS Graveyard :: AudioChannel, defect)
Firefox OS Graveyard
AudioChannel
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: mythrobins, Unassigned)
Details
(Keywords: APIchange, ux-control)
User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0 Build ID: 20141011015303 Steps to reproduce: One of my FirefoxOS app has been published that plays music. Name: "FoxRad". In the webapp manifest I have used: "permissions": { "audio-channel-content":{ "description":"Use the audio channel for the music player" } Actual results: It plays well when screen goes locked. But when I press home button the app goes in background and music stop playing. Expected results: But the music should be playing. As I already have similar app working just fine "HoT". Only technical differences between two apps is, "HoT" uses a domain and "FoxRad" uses subdomain. Is it because of subdomain ? Tested on Peak. FxOS version 2.1
Reporter | ||
Updated•10 years ago
|
Keywords: APIchange,
ux-control
Comment 1•10 years ago
|
||
(In reply to mythrobins from comment #0) > User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:33.0) Gecko/20100101 > Firefox/33.0 > Build ID: 20141011015303 > > Steps to reproduce: > > One of my FirefoxOS app has been published that plays music. Name: "FoxRad". > In the webapp manifest I have used: > > "permissions": { > "audio-channel-content":{ > "description":"Use the audio channel for the music player" > } What kind of audio channel type is used? You can check the audio channel type of audio() element. AFAIK, the music app of FxOS use "content" audio channel type. Maybe you can choose a suitable type for the app. You can visit the website[1] to get more information about audio channel policy. [1] https://wiki.mozilla.org/WebAPI/AudioChannels
Reporter | ||
Comment 2•10 years ago
|
||
(In reply to Star Cheng [:scheng] from comment #1) > (In reply to mythrobins from comment #0) > > User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:33.0) Gecko/20100101 > > Firefox/33.0 > > Build ID: 20141011015303 > > > > What kind of audio channel type is used? You can check the audio channel > type of audio() element. AFAIK, the music app of FxOS use "content" audio > channel type. Maybe you can choose a suitable type for the app. You can > visit the website[1] to get more information about audio channel policy. > > [1] https://wiki.mozilla.org/WebAPI/AudioChannels Hi, Cheng. Thanks. But I already have a working app here [1]. But the new one [2] have almost the same code and not working. I mean not playing in background. I did use the type. Here: <audio mozaudiochannel="content"> <source id="sourceMp3" type="audio/mpeg" /> </audio> [1] https://marketplace.firefox.com/app/hot/ [2] https://marketplace.firefox.com/app/foxrad/
Reporter | ||
Comment 4•10 years ago
|
||
(In reply to Mahir Labib Chowdhury from comment #3) > Can you please share your codes in github? Certainly. Here you go: https://github.com/mythrobin/FoxRad
Flags: needinfo?(mythrobins)
Comment 5•6 years ago
|
||
Firefox OS is not being worked on
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•