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

Issue 1241923003: Work around unreliable metadata for HLS in WebMediaPlayerAndroid (Closed)

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

Description

Work around unreliable metadata for HLS in WebMediaPlayerAndroid There are two bugs involved, both specific to HLS: 1. MediaPlayer.getDuration() returning 0 as opposed to -1. 2. The MediaPlayer.OnVideoSizeChangedListener callback being called with width and height zero and later with a non-zero size. Logging statements were used to test for the bugs on http://www.aljazeera.com/watch_now/ with some different devices: * Huawei P6-U06, Android 4.2.2: both bugs * Samsung Galaxy S Duos 2, Android 4.2.2: duration bug * HTC One, Android 4.3: both bugs * Sony Xperia CP C5303, Android 4.3: both bugs * Samsung Galaxy S III, Android 4.3: duration bug * Samsung Galaxy S4, Android 4.4.2: duration bug * Samsung Galaxy Young 2, Android 4.4.2: duration bug * Samsung Galaxy Grand Prime, Android 4.4.4: duration bug * Sony Xperia Z2, Android 5.0.2: duration bug * Samsung Galaxy S4, CyanogenMod 12.1, Android 5.1.1: duration bug In summary, the duration bug affects every device tested, while the video size bug seems to affect some but not all devices running Android 4.3 and older. Avoid the need for a local duration variable in OnMediaMetadataChanged by passing its argument by value, which is already the case for all other OnMediaMetadataChanged methods in the code base. BUG=501213, 509972 R=qinmin@chromium.org Committed: https://crrev.com/e95e3c68fffcac8ca62cb4d0269c7a867bcd02ff Cr-Commit-Position: refs/heads/master@{#339019}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Also check has_size_info_ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -2 lines) Patch
M content/renderer/media/android/webmediaplayer_android.h View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/android/webmediaplayer_android.cc View 1 2 chunks +12 lines, -1 line 0 comments Download

Messages

Total messages: 13 (3 generated)
philipj_slow
5 years, 5 months ago (2015-07-15 16:37:24 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1241923003/1
5 years, 5 months ago (2015-07-15 16:38:09 UTC) #3
philipj_slow
PTAL. In addition to the testing mentioned in the description I've also verified separately that ...
5 years, 5 months ago (2015-07-15 16:40:16 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 5 months ago (2015-07-15 17:51:08 UTC) #6
qinmin
https://codereview.chromium.org/1241923003/diff/1/content/renderer/media/android/webmediaplayer_android.cc File content/renderer/media/android/webmediaplayer_android.cc (right): https://codereview.chromium.org/1241923003/diff/1/content/renderer/media/android/webmediaplayer_android.cc#newcode865 content/renderer/media/android/webmediaplayer_android.cc:865: if (width == 0 && height == 0 && ...
5 years, 5 months ago (2015-07-16 03:20:07 UTC) #7
philipj_slow
PTAL. I've retested that it still fixes the issues with https://www.aljazeera.com/watch_now/ https://codereview.chromium.org/1241923003/diff/1/content/renderer/media/android/webmediaplayer_android.cc File content/renderer/media/android/webmediaplayer_android.cc (right): ...
5 years, 5 months ago (2015-07-16 08:16:40 UTC) #8
qinmin
lgtm
5 years, 5 months ago (2015-07-16 12:26:14 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1241923003/20001
5 years, 5 months ago (2015-07-16 12:32:57 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 5 months ago (2015-07-16 13:18:45 UTC) #12
commit-bot: I haz the power
5 years, 5 months ago (2015-07-16 13:19:37 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/e95e3c68fffcac8ca62cb4d0269c7a867bcd02ff
Cr-Commit-Position: refs/heads/master@{#339019}

Powered by Google App Engine
This is Rietveld 408576698