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

Issue 1234483003: Prevent seeking when Android MediaPlayer reports that it's not possible. (Closed)

Created:
5 years, 5 months ago by keitchen
Modified:
5 years, 5 months ago
Reviewers:
*qinmin, DaleCurtis
CC:
avayvod+watch_chromium.org, chromium-reviews, feature-media-reviews_chromium.org, mcasas+watch_chromium.org, mlamouri+watch-media_chromium.org, posciak+watch_chromium.org, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Prevent seeking when Android MediaPlayer reports that it's not possible. For some content (e.g. HLS live streams), attempting to seek will get the media player stuck in an error state. In https://codereview.chromium.org/22605013, this was addressed by preventing seeks if the duration of the video is negative. However, with https://codereview.chromium.org/617743004, a -1 returned by the Android MediaPlayer will be converted to media::kInfiniteDuration(). This CL utilizes two seek booleans derived from the Android MediaPlayer to determine if a seek should be allowed. BUG=510641 TEST=MediaPlayerBridgeTest.* Committed: https://crrev.com/513ce3cd3246269db14a5dd2c328ee0b97f505aa Cr-Commit-Position: refs/heads/master@{#339762}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Addressed comments from DaleCurtis. #

Total comments: 2

Patch Set 3 : Addressed comments from qinmin. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -5 lines) Patch
M AUTHORS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M media/base/android/media_player_bridge.h View 1 2 1 chunk +5 lines, -1 line 0 comments Download
M media/base/android/media_player_bridge.cc View 1 2 4 chunks +14 lines, -4 lines 0 comments Download
A media/base/android/media_player_bridge_unittest.cc View 1 1 chunk +109 lines, -0 lines 0 comments Download
M media/media.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 22 (8 generated)
keitchen
Hi everyone, Here's a fix for an Android media player issue when resuming HLS live ...
5 years, 5 months ago (2015-07-16 00:09:56 UTC) #2
DaleCurtis
https://codereview.chromium.org/1234483003/diff/1/media/base/android/media_player_bridge.h File media/base/android/media_player_bridge.h (right): https://codereview.chromium.org/1234483003/diff/1/media/base/android/media_player_bridge.h#newcode110 media/base/android/media_player_bridge.h:110: bool SeekInternal(const base::TimeDelta& current_time, base::TimeDelta time); Pass TimeDelta by ...
5 years, 5 months ago (2015-07-16 00:29:28 UTC) #3
keitchen
https://codereview.chromium.org/1234483003/diff/1/media/base/android/media_player_bridge.h File media/base/android/media_player_bridge.h (right): https://codereview.chromium.org/1234483003/diff/1/media/base/android/media_player_bridge.h#newcode110 media/base/android/media_player_bridge.h:110: bool SeekInternal(const base::TimeDelta& current_time, base::TimeDelta time); On 2015/07/16 at ...
5 years, 5 months ago (2015-07-17 00:00:06 UTC) #4
DaleCurtis
lgtm, but defer to qinmin@ for final review
5 years, 5 months ago (2015-07-17 00:04:20 UTC) #6
qinmin
https://codereview.chromium.org/1234483003/diff/20001/media/base/android/media_player_bridge.h File media/base/android/media_player_bridge.h (right): https://codereview.chromium.org/1234483003/diff/20001/media/base/android/media_player_bridge.h#newcode110 media/base/android/media_player_bridge.h:110: bool SeekInternal(base::TimeDelta current_time, base::TimeDelta time); the current_time can always ...
5 years, 5 months ago (2015-07-17 04:16:28 UTC) #7
keitchen
https://codereview.chromium.org/1234483003/diff/20001/media/base/android/media_player_bridge.h File media/base/android/media_player_bridge.h (right): https://codereview.chromium.org/1234483003/diff/20001/media/base/android/media_player_bridge.h#newcode110 media/base/android/media_player_bridge.h:110: bool SeekInternal(base::TimeDelta current_time, base::TimeDelta time); On 2015/07/17 at 04:16:28, ...
5 years, 5 months ago (2015-07-20 20:24:24 UTC) #8
qinmin
lgtm
5 years, 5 months ago (2015-07-21 00:05:36 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1234483003/40001
5 years, 5 months ago (2015-07-21 00:58:55 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/82456)
5 years, 5 months ago (2015-07-21 01:59:06 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1234483003/40001
5 years, 5 months ago (2015-07-21 17:57:25 UTC) #16
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 5 months ago (2015-07-21 18:05:53 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1234483003/40001
5 years, 5 months ago (2015-07-21 22:19:12 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 5 months ago (2015-07-21 22:25:36 UTC) #21
commit-bot: I haz the power
5 years, 5 months ago (2015-07-21 22:26:34 UTC) #22
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/513ce3cd3246269db14a5dd2c328ee0b97f505aa
Cr-Commit-Position: refs/heads/master@{#339762}

Powered by Google App Engine
This is Rietveld 408576698