Android: Show videos in WebView always fullscreen? - android

I have a WebView showing a HTML document with media content (embedded Youtube video, html5 video...). Is it possible to show them only as thumbnail and always open a fullscreen video view when the user clicks on them?

You can parse all content and show only preview picture. When user clicks on it you can start new fullscreen activity and play video there.

Related

Android WebView: How to Load links faster?

I have a WebView full of images, videos & gifs. When the WebView is loading and user clicks on any links on the WebView it don't open immediately. Instead it loads all the contents on the WebView and then loads the clicked link.
Is there any way to stop loading remaining content as soon as any link is clicked on the WebView and open the clicked link ASAP?

How to hide controls from webview

I have a video url and i have shown it in webview now the video from url shows download button in webview and i don't want to show it in my webview, is there any way to hide such type of buttons

VideoTag in webview inside dialog in android

I am using webview inside a dialog not Activity and using videoTag in webview to load a video from url.
if i use Activity than i am able to maximize video but in dialog that button is not maximizing video as per attached screenshot.
and other properties like autoplay is not working for webview.
And i am using VideoEnabledWebview as per given nice answer.
i have set also android:hardwareAccelerated="true"
so can i maximize video in webview inside dialog or can i hide maximize button?

Show video in dialog

I want to display video in dialog box
before the video was play in activity and it worked correctly,
but when I try to show video in dialog everything is broken.
It looks like video view becomes transparent, but clicks on video handled correctly.
Whether is a solution of this problem?

share a videoview between two activity

my app there are two activities. first activity displays a videoview which plays a video in non-fullscreen mode(there are other info about the video which occupies the rest of the screen). also there is a button in the same screen which pressing that causes the video play in fullscreen mode.
the way I implemented full screen is that I start a new activity with a videoview and I send the url of the playing video to this new activity. then I can load the url from begining and so on....
Is there a way that I can reuse the same videoview of the the first activity in my second activity?

Categories

Resources