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

Issue 56443002: Fix an issue that mediaplayer can return size(0,0) for a valid video (Closed)

Created:
7 years, 1 month ago by qinmin
Modified:
7 years, 1 month ago
Reviewers:
Ted C, no sievers
CC:
chromium-reviews, fischman+watch_chromium.org, jam, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, wjia+watch_chromium.org
Visibility:
Public.

Description

Fix an issue that mediaplayer can return size(0,0) for a valid video After MediaPlayer get prepared, we query the size from it. However, there are certain cases that the returned size will be (0, 0). Therefore, we cannot rely on the size info if it is empty. For fullscreen video, if the returned size is empty, this change will resize the surfaceView to occupy the entire screen space using the onMeasure() call. BUG=313774 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=232575

Patch Set 1 #

Patch Set 2 : Use MATCH_PARENT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -12 lines) Patch
M content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java View 1 4 chunks +8 lines, -10 lines 0 comments Download
M content/renderer/media/android/webmediaplayer_android.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
qinmin
PTAL
7 years, 1 month ago (2013-11-01 19:18:16 UTC) #1
Ted C
lgtm
7 years, 1 month ago (2013-11-01 20:41:25 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qinmin@chromium.org/56443002/1
7 years, 1 month ago (2013-11-01 21:30:15 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qinmin@chromium.org/56443002/220001
7 years, 1 month ago (2013-11-01 23:48:46 UTC) #4
commit-bot: I haz the power
7 years, 1 month ago (2013-11-02 03:48:45 UTC) #5
Message was sent while issue was closed.
Change committed as 232575

Powered by Google App Engine
This is Rietveld 408576698