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

Issue 136523002: WebMediaPlayerAndroid - handling unseekable durations (Closed)

Created:
6 years, 11 months ago by amogh.bihani
Modified:
6 years, 11 months ago
CC:
chromium-reviews, fischman+watch_chromium.org, jam, mcasas+watch_chromium.org, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Currently duration is simply returned or changed without checking whether the stream is seekable or not. MediaSourcePLayer deems a stream unseekable if the duration is more than 2^31 msec. I'm adding that check here as per the TODO. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245508

Patch Set 1 #

Total comments: 8

Patch Set 2 : changes made according to the review #

Total comments: 7

Patch Set 3 : adding kInifiniteDuration check, removing 2^31 limiting check from onDurationChanged #

Total comments: 2

Patch Set 4 : dividing by 1000 to convert from millisecond to second #

Total comments: 2

Patch Set 5 : changing 1000 to 1000.0 #

Patch Set 6 : removing nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -11 lines) Patch
M content/renderer/media/android/webmediaplayer_android.cc View 1 2 3 4 5 4 chunks +7 lines, -11 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
amogh.bihani
PTAL https://codereview.chromium.org/136523002/diff/1/content/renderer/media/android/webmediaplayer_android.cc File content/renderer/media/android/webmediaplayer_android.cc (left): https://codereview.chromium.org/136523002/diff/1/content/renderer/media/android/webmediaplayer_android.cc#oldcode505 content/renderer/media/android/webmediaplayer_android.cc:505: // TODO(hclam): If this stream is not seekable ...
6 years, 11 months ago (2014-01-13 11:43:14 UTC) #1
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/136523002/diff/1/content/renderer/media/android/webmediaplayer_android.cc File content/renderer/media/android/webmediaplayer_android.cc (left): https://codereview.chromium.org/136523002/diff/1/content/renderer/media/android/webmediaplayer_android.cc#oldcode506 content/renderer/media/android/webmediaplayer_android.cc:506: return duration(); This does not see right to me. ...
6 years, 11 months ago (2014-01-13 16:32:06 UTC) #2
Ami GONE FROM CHROMIUM
Removing myself from reviewer list.
6 years, 11 months ago (2014-01-13 21:21:30 UTC) #3
amogh.bihani
Thanks for the review :) I have made the changes as suggested by you. Please ...
6 years, 11 months ago (2014-01-14 08:02:58 UTC) #4
amogh.bihani
https://codereview.chromium.org/136523002/diff/1/content/renderer/media/android/webmediaplayer_android.cc File content/renderer/media/android/webmediaplayer_android.cc (left): https://codereview.chromium.org/136523002/diff/1/content/renderer/media/android/webmediaplayer_android.cc#oldcode506 content/renderer/media/android/webmediaplayer_android.cc:506: return duration(); On 2014/01/13 16:32:07, acolwell wrote: > This ...
6 years, 11 months ago (2014-01-14 08:03:09 UTC) #5
acolwell GONE FROM CHROMIUM
Just a few more comments. Also please add tests that verify the new code paths ...
6 years, 11 months ago (2014-01-14 16:36:40 UTC) #6
amogh.bihani
On 2014/01/14 16:36:40, acolwell wrote: > Just a few more comments. Also please add tests ...
6 years, 11 months ago (2014-01-15 06:32:49 UTC) #7
amogh.bihani
https://codereview.chromium.org/136523002/diff/60001/content/renderer/media/android/webmediaplayer_android.cc File content/renderer/media/android/webmediaplayer_android.cc (left): https://codereview.chromium.org/136523002/diff/60001/content/renderer/media/android/webmediaplayer_android.cc#oldcode465 content/renderer/media/android/webmediaplayer_android.cc:465: // considers unseekable, including kInfiniteDuration(). On 2014/01/14 16:36:40, acolwell ...
6 years, 11 months ago (2014-01-15 06:33:02 UTC) #8
wolenetz
https://codereview.chromium.org/136523002/diff/120001/content/renderer/media/android/webmediaplayer_android.cc File content/renderer/media/android/webmediaplayer_android.cc (right): https://codereview.chromium.org/136523002/diff/120001/content/renderer/media/android/webmediaplayer_android.cc#newcode508 content/renderer/media/android/webmediaplayer_android.cc:508: return std::min(std::numeric_limits<int32>max(), duration()); Drive-by comment: The Java media player ...
6 years, 11 months ago (2014-01-15 20:47:28 UTC) #9
amogh.bihani
https://codereview.chromium.org/136523002/diff/120001/content/renderer/media/android/webmediaplayer_android.cc File content/renderer/media/android/webmediaplayer_android.cc (right): https://codereview.chromium.org/136523002/diff/120001/content/renderer/media/android/webmediaplayer_android.cc#newcode508 content/renderer/media/android/webmediaplayer_android.cc:508: return std::min(std::numeric_limits<int32>max(), duration()); On 2014/01/15 20:47:29, wolenetz wrote: > ...
6 years, 11 months ago (2014-01-16 12:00:40 UTC) #10
amogh.bihani
acolwell@ It seems that no one has made testcase for webmediaplayer_android. I did make unittests ...
6 years, 11 months ago (2014-01-16 12:11:53 UTC) #11
acolwell GONE FROM CHROMIUM
lgtm % nit https://codereview.chromium.org/136523002/diff/180001/content/renderer/media/android/webmediaplayer_android.cc File content/renderer/media/android/webmediaplayer_android.cc (right): https://codereview.chromium.org/136523002/diff/180001/content/renderer/media/android/webmediaplayer_android.cc#newcode508 content/renderer/media/android/webmediaplayer_android.cc:508: return std::min(std::numeric_limits<int32>max() / 1000, duration()); nit:s/1000/1000.0/ ...
6 years, 11 months ago (2014-01-16 18:17:45 UTC) #12
amogh.bihani
Thanks for the review :) https://codereview.chromium.org/136523002/diff/180001/content/renderer/media/android/webmediaplayer_android.cc File content/renderer/media/android/webmediaplayer_android.cc (right): https://codereview.chromium.org/136523002/diff/180001/content/renderer/media/android/webmediaplayer_android.cc#newcode508 content/renderer/media/android/webmediaplayer_android.cc:508: return std::min(std::numeric_limits<int32>max() / 1000, ...
6 years, 11 months ago (2014-01-17 03:54:21 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/amogh.bihani@samsung.com/136523002/240001
6 years, 11 months ago (2014-01-17 07:17:41 UTC) #14
commit-bot: I haz the power
Retried try job too often on android_dbg for step(s) slave_steps http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_dbg&number=140360
6 years, 11 months ago (2014-01-17 08:31:49 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/amogh.bihani@samsung.com/136523002/520001
6 years, 11 months ago (2014-01-17 08:37:34 UTC) #16
commit-bot: I haz the power
6 years, 11 months ago (2014-01-17 14:02:48 UTC) #17
Message was sent while issue was closed.
Change committed as 245508

Powered by Google App Engine
This is Rietveld 408576698