I using a html video on my webpage and I've noticed on android phones when the video goes to full screen and I press the back button, it just leaves and empty video player frame with the pause button showing. Is there a way to hide the empty player or the div that contains the video when the user presses the back button on their phone?
I'm currently using the the events js for the video tag and have added the mobile jquery pack in the hopes for an if back button press do this.
Any help on this would be great as it's all working fine on the web version and on an ipad/iphone.
Related
I am using react-native-community/react-native-webview and on the website we have Nexx player for playing videos.
Android works fine but I have problems with ios. On ios, I have a fullscreen modal where is possible to play video. And if I click on play button video jump into fullscreen mode and start playing. That is right. But if I want to close video by X button on the corner Video will jump back to start position and immediately jump back to the fullscreen mode and sometimes show an icon over the video. I will try to close it and the situation will be repeating after a few repeating is finally closed.
I think the problem is in ios fullscreen video player. Because if I want to play video some fancy webview features will handle video and show it in fullscreen (because Nexx player looks different then this view and I also tried to turn off fullscreen mode but video always jumps in fullscreen). I try to pause the video when it will jump out of fullscreen but it doesn't work. (It works when I pause the video first in fullscreen mode and then I will click on close button = video is close right but if I click on a close button it is doesn't work)
Is there some way how to fix this issues? Or How to control webview feature pause it and then close it when the user clicks on X button?
There is a page loaded into Android WebView that contains <video> tag which obviously loads a remote video. As it happened in the past, this tag causes videos to work on some devices, and on others they do not work - people do not see videos.
I have tried to detect when a user clicks on video so that I can handle video playback outside of the webview.
However, when the page loads I DO fetch URL via shouldOverrideUrlLoading() method and I can handle this part. However, this does not look nice as when you use the app the page will load and when it comes to the video, my code automatically takes over the playback. I would like my code be activated when a users click on play/stop buttons.
Even when I take over the video after page load, and a user goes back to the webview, I can NO LONGER detect action on play/stop buttons.
I have overriden all listeners of the webview and neither of then catches play/stop button events.
Am I missing something? How shall I detect when a user clicks on play/stop buttons?
I have created an ionic app. It gets a list of video from youtube channel and displays it in a view using <ion-list> after the tap on one of the list item app moves to next view where I set Iframe for a youtube video.
<iframe src="https://www.youtube.com/embed/gvI2ClWqHO0?feature=player_embedded" frameborder="0" width="560" height="315" allowfullscreen></iframe>
After play video if I press back button of mobile app moves back to my first screen where a list of all videos available. But the issue is that if a video is playing in fullscreen mode and I press back button app doesn't back to the previous screen it just exits the app.
I tried different question in stackoverflow but nothing to solve my problem yet.
Info Update
Currently, I am focusing only on Android
I am using a videoview to play videos in full screen. I have a hardware keyboard connected to my Android device.
Now when I press 'enter' key while a video is being played in full screen, I get a media
controls at the bottom.
By default, the focus is on 'play/pause' button, pressing left/right keys on the D-pad takes the focus to seekforward/seekbackward respectively.
Everything is working fine, the only problem is, the media controllers are not visible as focused. Is is possible to achieve this? or do I need to write my own custom controls??
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.