New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 660851 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Last visit > 30 days ago
Closed: Oct 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug



Sign in to add a comment

Metadata preload seems to be loading the same thing three times

Project Member Reported by mlamouri@chromium.org, Oct 31 2016

Issue description

Loading this page with network devtools on:
https://mounirlamouri.github.io/sandbox/preload/test-metadata.html

You can see that there are three ranged network requests. One download 0-RANGE, the other x-RANGE and the last y-RANGE. It's unclear if the downloads actually happen or if we use the cache for the other requests but it sounds that we don't.
 
Owner: hubbe@chromium.org

Comment 2 by hubbe@chromium.org, Oct 31 2016

Status: WontFix (was: Untriaged)
Here is what I see when I load this page:

First, we make a request for 0-763969, after reading 32.4kB, we realize that we need to read the index data for the file, which is at the end of the file, so we abort the read and seek to the end of the file.

This results in the second request: 753664-763968. After reading that, we know where the video data is in the file, so we go back to the beginning and start reading. However, it turns out that we need more than the first 32kb to decode the first keyframe, so we make a request for 32768-763968/763969. After reading 32.4kb, we have enough data to decode the first keyframe, and since that's all we wanted, we close the connection.

Only 0.4kB of data was actually read twice.
This is working as intended.

Sign in to add a comment