Chromium Code Reviews
DescriptionMissing buffered attribute for <video>/<audio>
BUG=16056
TEST=LayoutTests/media/video-buffered.html
The current implementation of the buffered attribute for <video> and <audio>
is broken. There are several problems around this attribute:
1. We don't have any caching on disk, so we only keep a recent range of bytes
close to current playback position.
2. WebKit reports buffered as one range (0, max_time_buffered). But we only
cache a short partial range which doesn't start with 0. The correct
implementation is a list of ranges buffered. But this has to go into WebKit
first.
3. We don't have an accurate mapping between byte offset < - > timestamp.
So the current implementation is to lie about what we have buffered. We always
say we have buffered everything before the current download position. And we
only report one range. The calculation of time is also based on scaling the
duration with current buffered bytes.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=22087
Patch Set 1 #Patch Set 2 : fix again #Patch Set 3 : again #Patch Set 4 : again #
Total comments: 2
Patch Set 5 : done #
Messages
Total messages: 4 (0 generated)
|
|||||||||||||||||||||||||||||||||||||