Closed Bug 1168374 Opened 9 years ago Closed 9 years ago

Add MP3 media decoder and integrate with the MP3 demuxer

Categories

(Core :: Audio/Video, defect)

41 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla41
Tracking Status
firefox41 --- fixed

People

(Reporter: esawin, Assigned: esawin)

References

Details

Attachments

(1 file, 1 obsolete file)

Bug 1166779 introduces the new MP3Demuxer based on the MediaDataDemuxer interface, in this bug we integrate it by implementing a MP3 decoder based on the MediaDecoder interface.
Based on the WIP patch from bug 1153731, rebased on MediaDecoder interface.

With this patch we enable the new MP3 demuxer an all Android platforms with MediaCodec support by default and keep it preffed off on non-Android platforms.

Do we want to hide the decoder selection behind a build flag?
Attachment #8612855 - Flags: feedback?(kinetik)
Comment on attachment 8612855 [details] [diff] [review]
0001-Bug-1168374-Add-MP3-decoder-and-integrate-with-MP3-d.patch

Review of attachment 8612855 [details] [diff] [review]:
-----------------------------------------------------------------

(In reply to Eugen Sawin [:esawin] from comment #1)
> Do we want to hide the decoder selection behind a build flag?

It's nice to be able to test on other platforms easily with a pref flip and no rebuild, so I think the Android check and pref is enough, unless you have a particular concern?

::: dom/media/MP3Decoder.cpp
@@ +26,5 @@
> +}
> +
> +MediaDecoderStateMachine*
> +MP3Decoder::CreateStateMachine() {
> +  using mp3::MP3Demuxer;

Might as well just do "new mp3::MP3Demuxer(...)" and save a couple of lines.
Attachment #8612855 - Flags: feedback?(kinetik) → review+
Assignee: nobody → esawin
Addressed review comments.
Attachment #8612855 - Attachment is obsolete: true
Attachment #8614936 - Flags: review+
Status: NEW → ASSIGNED
Depends on: 1197985
Depends on: 1214710
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: