Skip to content

Commit 01cc1d1

Browse files
Teng-Hui ZhuAndroid (Google) Code Review
authored andcommitted
Merge "Document update for WebView user to support HTML5 video"
2 parents c83a666 + 50ba5a2 commit 01cc1d1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

core/java/android/webkit/WebView.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,15 @@
327327
* property to {@code device-dpi}. This stops Android from performing scaling in your web page and
328328
* allows you to make the necessary adjustments for each density via CSS and JavaScript.</p>
329329
*
330+
* <h3>HTML5 Video support</h3>
331+
*
332+
* <p>In order to support inline HTML5 video in your application, you need to have hardware
333+
* acceleration turned on, and set a {@link android.webkit.WebChromeClient}. For full screen support,
334+
* implementations of {@link WebChromeClient#onShowCustomView(View, WebChromeClient.CustomViewCallback)}
335+
* and {@link WebChromeClient#onHideCustomView()} are required,
336+
* {@link WebChromeClient#getVideoLoadingProgressView()} is optional.
337+
* </p>
338+
*
330339
*
331340
*/
332341
@Widget

0 commit comments

Comments
 (0)