Closed Bug 778052 Opened 12 years ago Closed 5 years ago

Support libstagefright metadata readers

Categories

(Core :: Audio/Video: Playback, defect)

All
Android
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: rillian, Unassigned, Mentored)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

libstagefright contains tag metadata parsers for most of the formats it supports. We should export this data through nsMediaPluginReader::ReadMetadata (or whatever platform decoder interface might replace it) so it's available to web content through media.mozGetMetadata().
Attached patch work in progress (obsolete) — Splinter Review
Current work-in-progress. This is my patch from some weeks ago, rebased against the current tree.
I cannot reproduce the utf-16 issue I was having with the patch on my Samsung Android 4.0.4 tablet. Perhaps it was fixed in the stagefright code. mp3 playback doesn't work on my Google Android 2.3.7 (CM7) phone, so I can't check there. In the absence of a re-occurrence I'll go ahead with the code as is. The current upstream stagefright should always be returning utf-8 strings. Todo: - Query more tags. We don't have 'raw' access in the sense of file-level tag names, but we can expose the ones stagefright defines. - Add tests. We already have an mp3 example with id3 tags, but it contains no i18n.
Assignee: nobody → giles
(In reply to Ralph Giles (:rillian) from comment #2) > mp3 playback doesn't work on my Google Android 2.3.7 (CM7) phone, so I can't > check there. Patches in Bug 787228 should get this working for you.
Thanks, Chris. BTW, is there something I can use the conditionalize the android version we're building against? Later releases defined more metadata keys than GB does.
In media/omx-plugin MOZ_ANDROID_GB and MOZ_ANDROID_HC for gingerbread and honeycomb. If neither are set it's JB+.
Attached patch work in progressSplinter Review
Updated patch conditionalizing kKeyLocation. Thanks Chris. This works some of the time on my ICS tablet, returning metadata, including cover art mime-type, but sometimes I get nothing, and sometimes playback itself fails.
Attachment #685399 - Attachment is obsolete: true
Blocks: 908902
I don't expect to pick this up again any time soon. Putting it up for grabs.
Assignee: giles → nobody
Whiteboard: [mentor=rillian]
Mentor: giles
Whiteboard: [mentor=rillian]
Component: Audio/Video → Audio/Video: Playback

Closing this on the basis that we've removed libstagefright and thus no longer want to integrate parts of it.

Status: NEW → RESOLVED
Closed: 5 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: