Closed Bug 740124 Opened 13 years ago Closed 7 years ago

duration is not set when video is accessed through appCache

Categories

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

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: kaze, Unassigned)

References

Details

Attachments

(1 file)

See https://github.com/andreasgal/gaia/issues/1062 When a video is accessed through appCache, the .duration property is never set — even when the video is playing.
What's the "appCache"? Some sort of file system? Does it (or our implementation which interacts with it) support seeking? Getting the duration in Ogg video depends on the being able to seek in the media (unless the Ogg includes an index, and many don't).
the "appCache" here is the offline application cache. We preload it on b2g with various resources for default apps, including sample videos. They are then accessed through an http:// URL, but I'm not sure if the stream it seekable.
Right, so if it's accessed through http then we'll be copying it into the media cache (on disk) and reading it from there, which seems a waste since it's already on disk. Can you pass file URIs? Those don't go into the media cache.
We tried to use file:// urls, but that doesn't work because that triggers a "dom security error".
Attached patch Test caseSplinter Review
Here is a minimal testcase I while investigating.
sting with Otoro, build from tip (mozilla-b2g) from 7/18 Now, the opposite problem exists. Lauching a video shows the progress scrubber at the END of the video! Tapping the rewind (<<) key however, a few times, takes the video back to the beginning, and, after having done this, now the scrubber is syncroinized with the video. Almost. Except there's still quite a bit of video left after the scrubber reaches the end. So, closing this, but filing a new bug.
So, closing the gaia issue related to this, but filing a new bug : https://github.com/mozilla-b2g/gaia/issues/2604 - [Video App] Progress Scrubber already at end/not in sync with video playback
Component: Audio/Video → Audio/Video: Playback
Depends on: 1237782
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
Depends on: 1619673
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: