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

Issue 1824143004: Allow WebView to force MediaPlayer for unsupported containers. (Closed)

Created:
4 years, 9 months ago by DaleCurtis
Modified:
4 years, 8 months ago
Reviewers:
ncarter (slow), boliu
CC:
android-webview-reviews_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow WebView to force MediaPlayer for unsupported containers. WebView needs to allow all of the OS supported codecs since it is a system level feature. This forces all the containers that Chrome does not support onto the MediaPlayer path. Adds a non-exhaustive WebView test to ensure that 3gp media can be played. I've run the test locally w/ and w/o the unified media pipeline enabled. BUG=none TEST=new test. Committed: https://crrev.com/ae9adb7ab7c9067a0cfbbea2a6a53b457f038df0 Cr-Commit-Position: refs/heads/master@{#383784}

Patch Set 1 #

Patch Set 2 : Add test. #

Total comments: 4

Patch Set 3 : Use ContentRendererClient. #

Patch Set 4 : Fix typo. #

Patch Set 5 : Fix comment typo. Remove unnecessary toLower. #

Patch Set 6 : Don't concat strings. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -3 lines) Patch
M android_webview/android_webview_tests.gypi View 1 2 chunks +4 lines, -0 lines 0 comments Download
A android_webview/javatests/src/org/chromium/android_webview/test/PlatformMediaCodecTest.java View 1 1 chunk +55 lines, -0 lines 0 comments Download
M android_webview/renderer/aw_content_renderer_client.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/renderer/aw_content_renderer_client.cc View 1 2 3 4 5 1 chunk +23 lines, -0 lines 0 comments Download
M android_webview/test/BUILD.gn View 1 2 chunks +3 lines, -0 lines 0 comments Download
A android_webview/test/shell/assets/platform-media-codec-test.html View 1 1 chunk +4 lines, -0 lines 0 comments Download
A android_webview/test/shell/assets/video.3gp View 1 Binary file 0 comments Download
M content/public/renderer/content_renderer_client.h View 1 2 3 chunks +6 lines, -1 line 0 comments Download
M content/public/renderer/content_renderer_client.cc View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 26 (9 generated)
DaleCurtis
4 years, 8 months ago (2016-03-28 20:27:40 UTC) #3
ncarter (slow)
https://codereview.chromium.org/1824143004/diff/20001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/1824143004/diff/20001/content/renderer/render_frame_impl.cc#newcode772 content/renderer/render_frame_impl.cc:772: // Android WebView may allow codecs and containers that ...
4 years, 8 months ago (2016-03-28 22:30:04 UTC) #4
ncarter (slow)
https://codereview.chromium.org/1824143004/diff/20001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/1824143004/diff/20001/content/renderer/render_frame_impl.cc#newcode772 content/renderer/render_frame_impl.cc:772: // Android WebView may allow codecs and containers that ...
4 years, 8 months ago (2016-03-28 22:50:07 UTC) #5
ddorwin
https://codereview.chromium.org/1824143004/diff/20001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/1824143004/diff/20001/content/renderer/render_frame_impl.cc#newcode772 content/renderer/render_frame_impl.cc:772: // Android WebView may allow codecs and containers that ...
4 years, 8 months ago (2016-03-28 22:50:51 UTC) #6
boliu
test lg2m. And second not using switches for static webview-only settings; but I don't have ...
4 years, 8 months ago (2016-03-28 23:39:45 UTC) #7
DaleCurtis
https://codereview.chromium.org/1824143004/diff/20001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/1824143004/diff/20001/content/renderer/render_frame_impl.cc#newcode772 content/renderer/render_frame_impl.cc:772: // Android WebView may allow codecs and containers that ...
4 years, 8 months ago (2016-03-29 00:28:19 UTC) #8
boliu
a_w lgtm
4 years, 8 months ago (2016-03-29 00:32:06 UTC) #9
Torne
On 2016/03/28 22:30:04, ncarter wrote: > A command line switch seems like an awkward way ...
4 years, 8 months ago (2016-03-29 12:49:27 UTC) #11
ncarter (slow)
lgtm
4 years, 8 months ago (2016-03-29 16:15:24 UTC) #12
DaleCurtis
Thanks torne@ for the context. Thanks Nick and Bo for review!
4 years, 8 months ago (2016-03-29 17:27:04 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1824143004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1824143004/100001
4 years, 8 months ago (2016-03-29 17:27:32 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/41883) linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, ...
4 years, 8 months ago (2016-03-29 17:43:27 UTC) #18
DaleCurtis
Failed on '"." + extension', not sure why that compiled locally but not on the ...
4 years, 8 months ago (2016-03-29 17:49:02 UTC) #19
DaleCurtis
The answer of course is it didn't, I must have not had the file saved ...
4 years, 8 months ago (2016-03-29 17:57:22 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1824143004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1824143004/120001
4 years, 8 months ago (2016-03-29 17:57:50 UTC) #23
commit-bot: I haz the power
Committed patchset #6 (id:120001)
4 years, 8 months ago (2016-03-29 19:02:39 UTC) #24
commit-bot: I haz the power
4 years, 8 months ago (2016-03-29 19:03:58 UTC) #26
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/ae9adb7ab7c9067a0cfbbea2a6a53b457f038df0
Cr-Commit-Position: refs/heads/master@{#383784}

Powered by Google App Engine
This is Rietveld 408576698