timbru31 commented on a change in pull request #892:
URL: 
https://github.com/apache/cordova-plugin-inappbrowser/pull/892#discussion_r673212739



##########
File path: src/android/VideoEnabledWebChromeClient.java
##########
@@ -0,0 +1,294 @@
+package org.apache.cordova.inappbrowser;
+
+import android.media.MediaPlayer;
+import android.view.SurfaceView;
+import android.view.View;
+import android.view.ViewGroup;
+import android.webkit.WebChromeClient;
+import android.widget.FrameLayout;
+
+/**
+ * This class serves as a WebChromeClient to be set to a WebView, allowing it 
to play video.
+ * Video will play differently depending on target API level (in-line, 
fullscreen, or both).
+ *
+ * It has been tested with the following video classes:
+ * - android.widget.VideoView (typically API level <11)
+ * - android.webkit.HTML5VideoFullScreen$VideoSurfaceView/VideoTextureView 
(typically API level 11-18)
+ * - 
com.android.org.chromium.content.browser.ContentVideoView$VideoSurfaceView 
(typically API level 19+)
+ *
+ * Important notes:
+ * - For API level 11+, android:hardwareAccelerated="true" must be set in the 
application manifest.
+ * - The invoking activity must call VideoEnabledWebChromeClient's 
onBackPressed() inside of its own onBackPressed().
+ * - Tested in Android API levels 8-19. Only tested on http://m.youtube.com.
+ *
+ * @author Cristian Perez (http://cpr.name)

Review comment:
       This seems copy/pasted from 
https://github.com/cprcrack/VideoEnabledWebView




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to