Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(376)

Issue 574253002: Enhance WebMediaPlayer::buffered() to account for evicted ranges. (Closed)

Created:
6 years, 3 months ago by DaleCurtis
Modified:
6 years, 3 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Enhance WebMediaPlayer::buffered() to account for evicted ranges. The BufferedResourceLoader now reports the earliest available byte via its ProgressCB. BufferedDataSource recieves this update and notifies the BufferedDataSourceHost to remove all ranges prior to the eviction point. Additionally modifies WebMediaPlayerImpl() to ignore demuxed ranges when reporting buffered() for streaming sources. Notably, this will cause missing ranges in the controls for streaming resources. I think this is acceptable since users can't seek to these positions. At present, this CL doesn't really do anything other than affect the controls. A followup change will change would change seekable() to use buffered() when a streaming resource w/ a duration is present. BUG=412562 TEST=lots, tbd.

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -8 lines) Patch
M media/blink/buffered_data_source.h View 2 chunks +4 lines, -3 lines 1 comment Download
M media/blink/buffered_data_source.cc View 2 chunks +3 lines, -1 line 0 comments Download
M media/blink/buffered_data_source_host_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M media/blink/buffered_data_source_host_impl.cc View 1 chunk +9 lines, -0 lines 0 comments Download
M media/blink/buffered_resource_loader.h View 1 chunk +1 line, -1 line 0 comments Download
M media/blink/buffered_resource_loader.cc View 1 chunk +2 lines, -1 line 0 comments Download
M media/blink/webmediaplayer_impl.cc View 1 chunk +18 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (1 generated)
DaleCurtis
Posting for feedback only right now, if we agree this is a reasonable improvement for ...
6 years, 3 months ago (2014-09-17 01:43:20 UTC) #2
scherkus (not reviewing)
At a high level I have concerns that we're hot fixing a lot of areas ...
6 years, 3 months ago (2014-09-17 16:25:28 UTC) #3
DaleCurtis
Sure lets chat today. The gist of my approach is that regardless of any larger ...
6 years, 3 months ago (2014-09-17 18:02:39 UTC) #4
scherkus (not reviewing)
On 2014/09/17 18:02:39, DaleCurtis wrote: > Sure lets chat today. The gist of my approach ...
6 years, 3 months ago (2014-09-17 18:17:48 UTC) #5
philipj_slow
So for my education, why is it that one can't simply look at the buffered ...
6 years, 3 months ago (2014-09-17 18:34:48 UTC) #6
philipj_slow
On 2014/09/17 18:34:48, philipj wrote: > Impossible with existing APIs because the API design on ...
6 years, 3 months ago (2014-09-17 19:00:11 UTC) #7
DaleCurtis
On 2014/09/17 18:17:48, scherkus wrote: > On 2014/09/17 18:02:39, DaleCurtis wrote: > > Sure lets ...
6 years, 3 months ago (2014-09-17 19:31:55 UTC) #8
DaleCurtis
On 2014/09/17 19:00:11, philipj wrote: > On 2014/09/17 18:34:48, philipj wrote: > > Impossible with ...
6 years, 3 months ago (2014-09-17 19:41:12 UTC) #9
DaleCurtis
Per offline discussion with scherkus@ I'm going to table this discussion until we can determine ...
6 years, 3 months ago (2014-09-18 00:45:10 UTC) #10
philipj_slow
There's plenty I'd like to learn about the Chromium side of <video> and friends, if ...
6 years, 3 months ago (2014-09-18 19:47:46 UTC) #11
DaleCurtis
On 2014/09/18 19:47:46, philipj wrote: > There's plenty I'd like to learn about the Chromium ...
6 years, 3 months ago (2014-09-18 20:24:14 UTC) #12
philipj_slow
6 years, 3 months ago (2014-09-18 21:02:35 UTC) #13
Message was sent while issue was closed.
On 2014/09/18 20:24:14, DaleCurtis wrote:
> On 2014/09/18 19:47:46, philipj wrote:
> > There's plenty I'd like to learn about the Chromium side of <video> and
> friends,
> > if you're all going to BlinkOn we should talk!
> 
> I hadn't planned to, but it's probably a good idea with acolwell@ moving on. I
> believe scherkus@ will be there, but I'll see about going as well.

Cool! No pressure, but I hope you can make it!

Powered by Google App Engine
This is Rietveld 408576698