Closed Bug 834529 Opened 11 years ago Closed 11 years ago

[Music] If FM Radio is playing and you play a song in the music app, music app will not go to the next song

Categories

(Firefox OS Graveyard :: Gaia::Music, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: nhirata, Assigned: vliu)

Details

Attachments

(1 file)

## Environment :
Gecko  http://hg.mozilla.org/releases/mozilla-b2g18/rev/32c2cc3e19ff
Gaia   7cacbcb8042b49d816a34de8e9767dcedefa6d84
BuildID 20130124140859
Version 18.0
Unagi
  
## Repro :
1. play fm radio with headset
2. hit home
3. launch music app
4. fast forward or wait until you get the next song

## Expected :
1. next song plays

## Actual :
1. song stops; fm radio plays again

## Note :
1. who would really do this anyhow?  :|
I think this issue should be the same with bug 833517. When I tried to reproduce this issue, I can hear a second of sound coming from fm radio before next song playing.
Depends on: 833517
After discussed with Dominic and Rudy, This issue is not depends on Bug 833517.
No longer depends on: 833517
As I mentioned in Comment 1, I can hear a second of sound coming from fm radio and then play next song in music. May I confirm with you that you saw the same with me? Or you always play sound in fm radio after 4?
Flags: needinfo?(nhirata.bugzilla)
vliu, it's not the same.  The player completely stops playing with the build I was using.  when I state fast forward, I mean fast forward the song before the song switches and let the song switch by itself.

It kills the thread and doesn't open a new thread to start a new song.
Flags: needinfo?(nhirata.bugzilla)
After step 4, I always hear the fm radio beccause the music app completely stopped.
Hi Naoki Hirata,

Thanks for your information. May I confirm more?

I synced the latest version of b2g-18 today but get the third situation. The situation I saw is 

1. The fm sound and Music were mixed when Music played in first song.
2. When Music finished the first song and changed to the second song automatically, the fm was shut down and Music still run on its way.

May I know what build you used? b2g-18 or m-c?
I think there is a general case to discuss. When we go step 3, the Music app should disable fm radio when it start playing song. May I got any info from dkuo? This idea can cover the above different situations I and Naoki Hirata saw.
Flags: needinfo?(dkuo)
Assignee: nobody → vliu
Attached patch WIP V1Splinter Review
Hi Dominic,
WIP V1 comes out my idea for this issue. Can you please give me some comment? Thanks.
Attachment #707390 - Flags: feedback?(dkuo)
Naoki, I followed your steps but I cannot reproduce this. So I would like to put this qawanted first to find out the reproducible steps.

Vincent, I think your patch might fix this issue, but I remember it's FM app's privilege to use the FMradio api, although it looks like we can get FMradio api in Music app? (I believe it's a bug for permissions...). And the current Audio policy should be able to handle this case, if not, that should be another bug for the Audio policy.

So let's wait QA to gather more information of us, then see if we can find out the root cause.
Flags: needinfo?(dkuo)
Keywords: qawanted
Hi Dominic,

Thanks for your suggestion. Since the STR I did is not the same with the title said, I will file a new bug to track it.
Ya, I think things have changed with the recent builds.

With today's build:
Gecko  http://hg.mozilla.org/releases/mozilla-b2g18_v1_0_0/rev/361d9359f4f3
Gaia   0abc95774d0bbdfe314fa588e09fc92cac3e6427
BuildID 20130130113326
Version 18.0
Unagi

1) launch music app, play a song
2) launch fm music app, play a station
3) put both apps in the background.

Expected: only fm radio plays
Actual: both plays, fm radio keeps playing, music app stops after 1 song.
Hi Naoki,
I can't reproduce this issue with today's synchronization. Maybe you can try again with today's build.
Closing this bug out as this works fine using:

Gecko  http://hg.mozilla.org/releases/mozilla-b2g18/rev/8e9dd87b4f3b
Gaia   da5f08e77cee3c6ddac9e66ee7aa57dd9411064c
BuildID 20130314110831
Version 18.0
Status: NEW → RESOLVED
Closed: 11 years ago
Keywords: qawanted
Resolution: --- → WORKSFORME
Attachment #707390 - Flags: feedback?(dkuo)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: