Closed Bug 600758 Opened 15 years ago Closed 7 years ago

Cannot get the duration of a moz-filedata media file

Categories

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

x86
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED INACTIVE

People

(Reporter: khuey, Unassigned)

References

Details

Load a media file from a moz-filedata uri and the duration of the media cannot be determined. There's some arch issues to deal with here about how we get the duration from the channel/file and whether or not we cache the media.
Testcase from bug 599367: https://bugzilla.mozilla.org/attachment.cgi?id=478394 Requires patch from bug 599367 to expose the issue. Also related to bug 583444 "When the src of an audio element is a DataUrl, it's duration property is NaN.".
Yeah, it's the same general idea. nsInputStreamChannel (which is what moz-filedata uses) uses the same base class (nsBaseChannel) discussed in that bug.
Component: Audio/Video → Audio/Video: Playback
Mass closing do to inactivity. Feel free to re-open if still needed.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.