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

Issue 496683002: Updating buffered duration of local resource in android (Closed)

Created:
6 years, 4 months ago by amogh.bihani
Modified:
6 years, 3 months ago
CC:
avayvod+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, mcasas+watch_chromium.org, posciak+watch_chromium.org, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Updating buffered duration of local resource in android OnBufferingUpdate does not work for local resources. Because of this the buffered range does not get updated. This patch updates the bufferd range atleast untill the video has played so that media controls can be painted properly. TBR=abarth@chromium.org BUG=405474 Committed: https://crrev.com/ee85a1188ee2454e62dc24c58477df39970a990b Cr-Commit-Position: refs/heads/master@{#292837}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Cheking for localhost and 127.0.0.1 #

Total comments: 3

Patch Set 3 : Addressing comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -6 lines) Patch
M content/renderer/media/android/webmediaplayer_android.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M content/renderer/media/android/webmediaplayer_android.cc View 1 2 5 chunks +18 lines, -1 line 0 comments Download
M media/base/android/media_player_bridge.cc View 3 chunks +2 lines, -5 lines 0 comments Download
M url/gurl.h View 1 chunk +5 lines, -0 lines 0 comments Download
M url/gurl_unittest.cc View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (1 generated)
amogh.bihani
PTAL. Since the buffering update does not work for local resources in android, I have ...
6 years, 4 months ago (2014-08-21 09:02:12 UTC) #1
amogh.bihani
https://codereview.chromium.org/496683002/diff/1/content/renderer/media/android/webmediaplayer_android.cc File content/renderer/media/android/webmediaplayer_android.cc (right): https://codereview.chromium.org/496683002/diff/1/content/renderer/media/android/webmediaplayer_android.cc#newcode220 content/renderer/media/android/webmediaplayer_android.cc:220: is_local_resource_ = url_.SchemeIsFile() || url_.SchemeIs("blob"); Ah! sorry I'll make ...
6 years, 4 months ago (2014-08-21 09:06:32 UTC) #2
qinmin
https://codereview.chromium.org/496683002/diff/1/content/renderer/media/android/webmediaplayer_android.cc File content/renderer/media/android/webmediaplayer_android.cc (right): https://codereview.chromium.org/496683002/diff/1/content/renderer/media/android/webmediaplayer_android.cc#newcode220 content/renderer/media/android/webmediaplayer_android.cc:220: is_local_resource_ = url_.SchemeIsFile() || url_.SchemeIs("blob"); I think you should ...
6 years, 4 months ago (2014-08-21 16:43:07 UTC) #3
amogh.bihani
Thanks for the review :) https://codereview.chromium.org/496683002/diff/20001/content/renderer/media/android/webmediaplayer_android.cc File content/renderer/media/android/webmediaplayer_android.cc (right): https://codereview.chromium.org/496683002/diff/20001/content/renderer/media/android/webmediaplayer_android.cc#newcode856 content/renderer/media/android/webmediaplayer_android.cc:856: if (is_local_resource_ && current_time_ ...
6 years, 4 months ago (2014-08-22 09:02:45 UTC) #4
amogh.bihani
On 2014/08/22 09:02:45, amogh.bihani wrote: > Thanks for the review :) > > https://codereview.chromium.org/496683002/diff/20001/content/renderer/media/android/webmediaplayer_android.cc > ...
6 years, 3 months ago (2014-08-26 03:32:52 UTC) #5
qinmin
https://codereview.chromium.org/496683002/diff/20001/content/renderer/media/android/webmediaplayer_android.cc File content/renderer/media/android/webmediaplayer_android.cc (right): https://codereview.chromium.org/496683002/diff/20001/content/renderer/media/android/webmediaplayer_android.cc#newcode286 content/renderer/media/android/webmediaplayer_android.cc:286: if (url_.spec().find("//127.0.0.1/") != std::string::npos || // port 80 use: ...
6 years, 3 months ago (2014-08-26 03:44:17 UTC) #6
amogh.bihani
Thanks :) https://codereview.chromium.org/496683002/diff/20001/content/renderer/media/android/webmediaplayer_android.cc File content/renderer/media/android/webmediaplayer_android.cc (right): https://codereview.chromium.org/496683002/diff/20001/content/renderer/media/android/webmediaplayer_android.cc#newcode286 content/renderer/media/android/webmediaplayer_android.cc:286: if (url_.spec().find("//127.0.0.1/") != std::string::npos || // port ...
6 years, 3 months ago (2014-08-26 05:31:14 UTC) #7
qinmin
lgtm
6 years, 3 months ago (2014-08-26 06:24:55 UTC) #8
amogh.bihani
amogh.bihani@samsung.com changed reviewers: + abarth@chromium.org
6 years, 3 months ago (2014-08-26 07:00:00 UTC) #9
amogh.bihani
Thanks for the review :) +abarth for url/
6 years, 3 months ago (2014-08-26 07:00:48 UTC) #10
amogh.bihani
On 2014/08/26 07:00:48, amogh.bihani wrote: > Thanks for the review :) > > +abarth for ...
6 years, 3 months ago (2014-08-27 13:24:16 UTC) #11
amogh.bihani
On 2014/08/27 13:24:16, amogh.bihani wrote: > On 2014/08/26 07:00:48, amogh.bihani wrote: > > Thanks for ...
6 years, 3 months ago (2014-09-01 05:06:36 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/amogh.bihani@samsung.com/496683002/40001
6 years, 3 months ago (2014-09-01 05:09:19 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001) as 4aa3cec8ae0c8dd5264546ccd8c5e4727ca2b110
6 years, 3 months ago (2014-09-01 06:07:54 UTC) #15
abarth-chromium
//url LGTM
6 years, 3 months ago (2014-09-02 19:31:21 UTC) #16
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:15:42 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/ee85a1188ee2454e62dc24c58477df39970a990b
Cr-Commit-Position: refs/heads/master@{#292837}

Powered by Google App Engine
This is Rietveld 408576698