How to make video stick on top? - android

When you play video in YouTube app, at first it's full screen. When you click back button it goes to this mode:
I have seen similar thing made in this app.
How is it made? Is there any particularly library? Thanks.

Related

YouTube Embedded Video Shows Developer Options when Click Play Button on Android

I am using embedded YouTube videos in my React Native Expo application. The embedded videos are inside a WebView from react-native-webview. I am having a bit of a weird problem and I am not sure if it is on the YouTube side or React Native side of things.
When I try to click the play button on Android, I get the developer options on the YouTube video. The video does not play and I cannot "click out" of these options.
What the YouTube Embedded Video looks like inside the WebView when I press play
Even though I am clearly clicking in the center of the player on the play button, I get this menu. It seems like the Webview is either not responding well to user touch input or it thinks it is a longPress. I am not long pressing the video. When I strip my UI down to just the WebView taking up the entire screen, it works fine. On long press, I see this menu pop up. But clicking the play button everything works as expected.
It seems like once I reduce the size of the WebView (even though the YouTube player is not cut off or squished at all), it isn't responding properly. On iOS, everything is working fine.
Device Problem Occurs on
When I started to test on the Samsung Galaxy S7, I noticed this problem. Running the application on a Google Pixel 3 emulator appears to work as expected.
Here is the simple WebView with embedded YouTube video in it.
<WebView
allowsInlineMediaPlayback={true}
source={{ uri: "https://www.youtube.com/embed/WOi0vnzcEzA?playsinline=1&rel=0&mute=1autoplay=1&fs=0" }}
/>
Thanks
I ended up figuring out what was going on. I hope this may help someone in the future.
My WebView was wrapped inside a TouchableWithoutFeedback. For some reason (it is probably correct behavior but over my RN capabilities), it was "blocking" proper user input into the WebView. After I moved the WebView outside of the TouchableWithoutFeedback, everything worked as expected.

Youtube Player Android API no fullscreen button anymore

I have a Youtube Player in my Android app and I suddenly got a complaint from a customer that the full screen is not working anymore. So I checked my app and yep! The place where the 'full screen' button (bottom-right) should be, is now a cogwheel, which shows information about the video.
Did anyone else notice this/have this issue? I think I will need to handle the full screen now myself, or is it possible to force this button back?

Native Brightcove for Android

I successfully implemented the bright cove in native Android. But Currently am facing some problem as,
When i press the video and Press HOME button, the Video starts from First
When i lock the screen and the unlock the screen, the Video starts from First.
Did any one come through this problem. Can share the knowledge.
THanks.
Are you extending the BrightCovePlayer or BrightCovePlayerFragment in your implementation? It will be nice if you share the code snippet for the player setup.

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.

Video inside android app

I would like to add one video to the main screen of my application but I want to user to be able to do other things in the app meanwhile. Think about some video animation or flash movie for some website that you can watch the video and look on other things in the website.
lets say I have buttons and more things in the same screen and I want a small video to be playing there too in a loop.
is this possible?
I thought that Flash movie could be good for that, but its only for latest versions of android then I don't want to use it.
Thanks.
You can just use the VideoView.

Categories

Resources