The default bug view has changed. See this FAQ.

Seeking to end of file during loadedmetadata event breaks further playback

RESOLVED FIXED in mozilla9

Status

()

Core
Audio/Video
RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: cajbir, Assigned: cajbir)

Tracking

Trunk
mozilla9
x86_64
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments)

(Assignee)

Description

6 years ago
Created attachment 553360 [details]
testcase

In the loadedmetadata event I seek to the duration. An ended event is never raised, and the controls still show the 'pause' icon as if playback is still going. Pressing play/pause does not restart the playback.

Steps to reproduce:
 
1) Load testcase with 'content/media/tests/big.wav' in the local directory.

What should happen:

1) The 'Play' icon in the controls should appear.

What does happen:

2) The 'Pause' icon remains displayed.

Then do:

1) Press Play/pause.

What should happen:

1) Playback should start from the beginning

What does happen:

1) currentTime stays at the duration and no playback occurs.
(Assignee)

Updated

6 years ago
Blocks: 648595
(Assignee)

Updated

6 years ago
Assignee: nobody → chris.double
(Assignee)

Comment 1

6 years ago
Created attachment 555959 [details] [diff] [review]
Fix

Fix is to raise ended event if we seeked to the end of the file. Test is provided by re-enabling the 'todo' media fragment test that tests this issue.
Attachment #555959 - Flags: review?(chris)
Attachment #555959 - Flags: review?(chris) → review+
(Assignee)

Comment 2

6 years ago
http://hg.mozilla.org/integration/mozilla-inbound/rev/9722cd5cd38f
Whiteboard: [inbound]
http://hg.mozilla.org/mozilla-central/rev/9722cd5cd38f
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
Whiteboard: [inbound]
Target Milestone: --- → mozilla9
You need to log in before you can comment on or make changes to this bug.