Closed Bug 1035758 Opened 10 years ago Closed 10 years ago

AudioOffloadPlayback: Music app progress bar resets when seek during pause

Categories

(Core :: Audio/Video, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla33
blocking-b2g 2.0+
Tracking Status
firefox31 --- wontfix
firefox32 --- fixed
firefox33 --- fixed
b2g-v2.0 --- fixed
b2g-v2.1 --- fixed

People

(Reporter: vasanth, Assigned: vasanth)

References

()

Details

(Keywords: regression, Whiteboard: [caf priority: p2][CR 688511])

Attachments

(1 file)

STR:
----
1. Open the Music App.
2. Play an AAC/MP3 clip with length more than 60secs. (only in offload playback)
3. Pause the playback.
4. Perform seek.
5. The progress bar pointer moves to beginning of the progress bar.
6. Resume the playback. But the audio resumes from the the seeked position in Step4.

Analysis
--------
It's a bug in my code [1] uncovered by fix for [2]

Always MediaOmxDecoder::PlaybackPositionChanged() should be called during offload playback,
but since I didn't make it virtual, MediaDecoder::PlaybackPositionChanged() 
was called when seek completed [3], which resets seek bar in UI.

Also made sure all other functions overridden in child (MediaOmxDecoder) are declared virtual in parent (MediaDecoder)

Attached the fix. 

[1] https://bugzil.la/976172
[2] https://bugzil.la/778077
[3] http://dxr.mozilla.org/mozilla-central/source/content/media/MediaDecoder.cpp#1077
Attachment #8452253 - Flags: review?(roc)
Whiteboard: [CR 688511] → [caf priority: p2][CR 688511]
Component: General → Video/Audio
Product: Firefox OS → Core
Hi Robert, 
Could you please give try run if needed? 
Else can we add checkin-needed?
Flags: needinfo?(roc)
You should get level 1 access so you can tryserver things yourself :-)
(In reply to Robert O'Callahan (:roc) (Mozilla Corporation) from comment #3)
> You should get level 1 access so you can tryserver things yourself :-)

Yep. Trying for that.
Starred 2 failures in try build. Adding checkin-needed flag
Keywords: checkin-needed
blocking-b2g: 2.0? → 2.0+
Keywords: regression
https://hg.mozilla.org/mozilla-central/rev/a8412692a3b5
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla33
covered by this test case because it covers slider bar(scrubber) manipulation:
https://moztrap.mozilla.org/manage/case/8519/
QA Whiteboard: [QAnalyst-Triage?]
Flags: needinfo?(ktucker)
Flags: in-moztrap?(rmead)
Test case has been added to moztrap:

https://moztrap.mozilla.org/manage/case/14324/
QA Whiteboard: [QAnalyst-Triage?] → [QAnalyst-Triage+]
Flags: needinfo?(ktucker)
Flags: in-moztrap?(rmead)
Flags: in-moztrap+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: