Closed Bug 1008800 Opened 10 years ago Closed 10 years ago

fastSeek audio to video stream position on Android

Categories

(Core :: Audio/Video, defect)

ARM
Android
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla32

People

(Reporter: cpearce, Assigned: cpearce)

Details

Attachments

(1 file)

Similar to the B2G and Ogg MediaDecoderReaders, the android Reader should seek the video stream, and then seek the audio stream to the video stream's position. This means we don't decode the video forward to the audio stream position after the fastSeek. Avoid this decoding speeds up fastSeek marginally, about 12% on my Nexus 7 2012 tablet.
Attached patch PatchSplinter Review
Basically copypasta from the MediaOmxReader.

Seek video, get time, then seek audio to video stream time, so they're in sync and we don't need to do any extra decoding to sync them.
Assignee: nobody → cpearce
Status: NEW → ASSIGNED
Attachment #8420753 - Flags: review?(cajbir.bugzilla)
Attachment #8420753 - Flags: review?(cajbir.bugzilla) → review+
https://hg.mozilla.org/mozilla-central/rev/fb0775864c89
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla32
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: