Closed Bug 1220064 Opened 9 years ago Closed 8 years ago

Apps can't play MP3 files.

Categories

(B2GDroid Graveyard :: General, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: qiutian, Unassigned)

References

Details

Attachments

(3 files)

Attached file logcat_B2G2.txt
[1.Description]:
[B2GDroid]Launch  Music, select a MP3 file and play it, but Music can't play the file and total time length is shown as 0:00.
Found time:9:49
See attcchment:AriesKK_Mu.3gp & logcat_B2G2.txt & sample.zip

[2.Testing Steps]: 
Premise: There are some MP3 files in memory.

1. Launch Music.
2. Select a MP3 file and play it.

[3.Expected Result]: 
In step 2,  MP3 file should play in the music app, everything is normal. 

[4.Actual Result]: 
In step 2,Music can't play MP3 file even total time length is shown as 0:00 .

[5.Reproduction build]: 
Gecko: 44.0a1
Android version: 
4.4.4(Build Number 23.0.A.2.93)

[6.Reproduction Frequency]: 
Always Recurrence,5/5

[7.TCID]: 
2681

[8.Note]:
This function works normally on latest build of flame v2.5 & aries v2.5.
Attached video AriesKK_Mu.3gp
Attached file sample.zip
Product: Firefox OS → B2GDroid
Depends on: 1220344
Summary: [B2GDroid]Music app can't play MP3 file. → Apps can't play MP3 files.
The reason this happens is because Apps in B2GDroid are in a child process, which does not have access to a JVM. The media decoders we have use Java, so this isn't going to work.
Am I right in thinking at some point Fennec will need to have a solution for this (I'm unaware of Fennec + e10s timelines)?  Any idea what the timeline would be to solving this issue or if we could get started here?


> 1) Remote the decoding to the parent or another Java-enabled process
> 2) Spawn the content process using a Service instead of fork/exec 

Noting 2. I saw some work to get a headless GeckoView working in a service, could this be extended?
Flags: needinfo?(snorp)
(In reply to sgiles from comment #5)
> Am I right in thinking at some point Fennec will need to have a solution for
> this (I'm unaware of Fennec + e10s timelines)?  Any idea what the timeline
> would be to solving this issue or if we could get started here?
> 
> 
> > 1) Remote the decoding to the parent or another Java-enabled process
> > 2) Spawn the content process using a Service instead of fork/exec 
> 
> Noting 2. I saw some work to get a headless GeckoView working in a service,
> could this be extended?

Perhaps, yeah. Spawning Gecko in a service should be relatively straightforward now, but I don't know how difficult it would be to get it hooked up to the ipc bits.
Flags: needinfo?(snorp)
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: