Closed
Bug 493431
Opened 16 years ago
Closed 15 years ago
.currentTime is reported as -0.001 for the last frame of some videos
Categories
(Core :: Audio/Video, defect)
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
status1.9.2 | --- | beta1-fixed |
People
(Reporter: Dolske, Assigned: roc)
References
()
Details
(Keywords: fixed1.9.1)
Attachments
(2 files, 1 obsolete file)
(deleted),
patch
|
cajbir
:
review+
roc
:
approval1.9.1+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
roc
:
approval1.9.2+
|
Details | Diff | Splinter Review |
Spun off from bug 481106.
Some videos are reporting .currentTime == 1 for the last frame. This is wrong for two reasons:
* It shouldn't ever be < 0
* The time of the last frame should be approximately (exactly?) equal to the actual duration
STR:
Enable videocontrol logging (or just add a timeupdate listener that dumps .currentTime). Open and play http://tinyvid.tv/show/1obk8qgd3j3s5, wait for it to reach the end. The value of .currentTime is -1 both when the last timeupdate event fires, and when the ended event fires.
Assignee | ||
Updated•16 years ago
|
Flags: wanted1.9.1+
Assignee | ||
Updated•16 years ago
|
Assignee: nobody → roc
Assignee | ||
Comment 1•16 years ago
|
||
currentTime is actually -0.001, but I guess that's what you meant.
Reporter | ||
Comment 2•16 years ago
|
||
Oops, yeah. The videocontrols work with milliseconds, so the value they log is -1 instead of -.001.
Summary: .currentTime is reported as -1 for the last frame of some videos → .currentTime is reported as -0.001 for the last frame of some videos
Assignee | ||
Comment 3•15 years ago
|
||
The video stream's video ends before the audio. This causes oggplay_callback_info_get_headers to return null for the video track, then oggplay_callback_info_get_presentation_time returns -1 as an error indicator, but we treat it as a time.
My solution here is to set the frame time and state based on the video data if there is any for this frame, otherwise the audio data.
Attachment #378229 -
Flags: review?(chris.double)
Assignee | ||
Comment 4•15 years ago
|
||
Generally it seems clear that bundling audio and video data into common "frames" is a mistake, we should just get them as independent streams and take responsibility for synchronizing them. We already have to handle synchronization anyway, in practice, and the oggplay frames are just adding complexity. If this means removing liboggplay, then so be it.
Updated•15 years ago
|
Attachment #378229 -
Flags: review?(chris.double) → review+
Assignee | ||
Comment 5•15 years ago
|
||
This test doesn't actually work at the moment, it triggers bug 493678 :-(
Assignee | ||
Updated•15 years ago
|
Whiteboard: [needs landing]
Assignee | ||
Comment 6•15 years ago
|
||
Status: NEW → RESOLVED
Closed: 15 years ago
Flags: in-testsuite?
Resolution: --- → FIXED
Whiteboard: [needs landing] → [needs 191 landing]
Assignee | ||
Updated•15 years ago
|
Attachment #378229 -
Flags: approval1.9.1+
Assignee | ||
Comment 7•15 years ago
|
||
Keywords: fixed1.9.1
Whiteboard: [needs 191 landing]
Comment 8•15 years ago
|
||
Rob,
Tried out your test with the short video on rv:1.9.1pre Gecko/20090521 and it passes. Push?
Assignee | ||
Comment 9•15 years ago
|
||
I'm not sure what you mean by 'Push?'. I did check this into 1.9.1 and marked this bug fixed1.9.1.
Comment 10•15 years ago
|
||
I meant that your test should be included in the suite now.
Comment 11•15 years ago
|
||
Add test to ensure video file with more audio than video plays and that video.currentTime only increases during playback.
Attachment #378241 -
Attachment is obsolete: true
Updated•15 years ago
|
Keywords: checkin-needed
Whiteboard: needs-landing
Comment 12•15 years ago
|
||
Pushed testcase to m-c: http://hg.mozilla.org/mozilla-central/rev/0028bf2bbf04
Flags: in-testsuite? → in-testsuite+
Updated•15 years ago
|
Keywords: checkin-needed
Whiteboard: needs-landing
Comment 13•15 years ago
|
||
Comment on attachment 394435 [details] [diff] [review]
Patch - add test
Can I push this to 192 to reduce merge conflicts? It's been on trunk for about 2 months now.
Attachment #394435 -
Flags: approval1.9.2?
Assignee | ||
Updated•15 years ago
|
Attachment #394435 -
Flags: approval1.9.2? → approval1.9.2+
Comment 14•15 years ago
|
||
Pushed test to 1.9.2: http://hg.mozilla.org/releases/mozilla-1.9.2/rev/ebf070248e50
Updated•15 years ago
|
status1.9.2:
--- → beta1-fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•