Android: How to prevent video into full screen in WebView? - android

Currently, we are creating an Android TV app, in this app, we use WebView to host a web page, there are a <video> tag in this web page, but when we click the play button, the video will go into fullscreen mode automatically.
We tried the following trick to prevent video into fullscreen, still can't prevent video into fullscreen mode.
Can I avoid the native fullscreen video player with HTML5 on iPhone or android?
Anyone have experience to prevent video into fullscreen?

Related

Android WebView video fullscreen mode not working

I look for this famous solution Playing HTML5 video on fullscreen in android webview. But even their own project is not working while I run it to my device(Nougat). Youtube videos are not go to fullscreen while clicking on that square box to go to fullscreen. What can I do in farther?
use link below for showing video in android:
ExoPlayer

Is it possible to use Picture in Picture (PIP) mode with Custom Tabs?

When opening a YouTube link in an activity with a WebView I don't get Chromecast and full screen icons. To get those, I seem to have to open the YouTube link in a Custom Tab and that works fine but then I'm unable to enter PIP mode since I cannot override onBackPressed() like when I host my own WebView with the YouTube video.
Is it possible to open a YouTube video inside an Android app with fullscreen button, Chromecast button and then enter PIP mode when pressing back?
To me it doesn't look that way and the Android YouTube API seems very outdated so didn't even look at that one: https://developers.google.com/youtube/android/player/

Is there a way to get html5 video (youtube, vimeo, etc) to play in the native video player automatically?

I would like to play a HTML5 video back to the user directly in the native android video player.
My current setup takes way too much effort to get into the native video player: Currently I have a WebView with an embedded HTML5 video (such as a Youtube or Vimeo HTML5, not flash, embed). The user has to hit play on the video, and then hit the fullscreen button (on far right in the picture below)
Then it opens in the native player which looks like this:
The native player is a View is a much better experience for video playback. (I believe it is a VideoView? though maybe it is different in newer versions of Android. It is a View within my Activity so provides extra control. See this post for more info.)
I'm looking for a graceful way of directly launching into this experience instead of having to load the embed in a WebView and then leaving it to the user to tap the full screen button.
Any ideas?
Thanks!

Running full-screen video on click for mobile devices

Is possible to run (on Android/iOS) full screen youtube video on click on a link? I don't want click on a player. For example: clicking on url will open video on full screen.
You can create a new activity with a VideoView in it. VideoView accepts video links (they say it can play rtsp, which is what youtube mobile is using, but I have yet to try)
just do videoView.setVideoUri(rtsp://...);

Android: open flash video stream on fullscreen

I would like to know if theres any way to open a webview with a stream flash video on fullscreen.
Right now ive the link of the page. This page has some stuff and a flash video. So i wonder if it would be posible to open the webview only with the stream video. In fullscreen or focused on it, without seing anything else. I mean, only the webview with the video, or the whole page, but with the view focused and zoomed so that i could just see the video.
Also, since there could get different kind of web pages, the video could come on different ways. But for now, would be enough to know if it would be posible to open it on fullscreen.
Thanks.
This may apply to the Android platform, but I think that for web-browser Flash Player - in order to go to full-screen, it requires a user action (like a button click) to initiate the transition. This means that the SWF cannot by itself initiate the transition.
I suspect that it applies to Android too. Are you writing and AIR app or a browser-based webpage.

Categories

Resources