summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Teng-Hui Zhu <ztenghui@google.com> 2012-01-17 09:06:02 -0800
committer Android (Google) Code Review <android-gerrit@google.com> 2012-01-17 09:06:02 -0800
commit01cc1d1e8c917ef2e63f0bd3ac38232d41820ad0 (patch)
tree61739ee66e6cf9b8fefa081d03a5a60d9bda3c68
parentc83a666fe6f808f99a88a34f3fe00ee16ed48fd9 (diff)
parent50ba5a26e6d48928b94e44fc67f057d29f40b261 (diff)
Merge "Document update for WebView user to support HTML5 video"
-rw-r--r--core/java/android/webkit/WebView.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java
index e46c88e72f1f..770f8ac7ba3e 100644
--- a/core/java/android/webkit/WebView.java
+++ b/core/java/android/webkit/WebView.java
@@ -327,6 +327,15 @@ import static javax.microedition.khronos.egl.EGL10.EGL_DEFAULT_DISPLAY;
* property to {@code device-dpi}. This stops Android from performing scaling in your web page and
* allows you to make the necessary adjustments for each density via CSS and JavaScript.</p>
*
+ * <h3>HTML5 Video support</h3>
+ *
+ * <p>In order to support inline HTML5 video in your application, you need to have hardware
+ * acceleration turned on, and set a {@link android.webkit.WebChromeClient}. For full screen support,
+ * implementations of {@link WebChromeClient#onShowCustomView(View, WebChromeClient.CustomViewCallback)}
+ * and {@link WebChromeClient#onHideCustomView()} are required,
+ * {@link WebChromeClient#getVideoLoadingProgressView()} is optional.
+ * </p>
+ *
*
*/
@Widget