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

Unified Diff: android_webview/lib/main/aw_main_delegate.cc

Issue 1824143004: Allow WebView to force MediaPlayer for unsupported containers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add test. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: android_webview/lib/main/aw_main_delegate.cc
diff --git a/android_webview/lib/main/aw_main_delegate.cc b/android_webview/lib/main/aw_main_delegate.cc
index cdc9ba59c08e6410ea67cd59bfd3264a5cc67ada..0c14794ba3d269ab0a74ee75756682cedd0a0c4a 100644
--- a/android_webview/lib/main/aw_main_delegate.cc
+++ b/android_webview/lib/main/aw_main_delegate.cc
@@ -140,6 +140,13 @@ bool AwMainDelegate::BasicStartupComplete(int* exit_code) {
cl->AppendSwitch(switches::kDisableRendererBackgrounding);
}
+ // Android WebView needs to support codecs that Chrome does not, for these
+ // cases we must force the usage of Android MediaPlayer instead of Chrome's
+ // internal player. Format list mirrors:
+ // http://developer.android.com/guide/appendix/media-formats.html
+ cl->AppendSwitchASCII(switches::kUseMediaPlayerForExtensions,
+ ".3gp,.ts,.flac,.mid,.xmf,.mxmf,.rtttl,.rtx,.ota,.imy");
+
return false;
}

Powered by Google App Engine
This is Rietveld 408576698