-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: App close on hardware back button press when video is open in full screen. #19356
Comments
Please use the Cordova video player plugin. URL: https://ionicframework.com/docs/native/video-player It helps you bro. |
I wants to display video gallery. which is not possible with the above plugin. |
Hi, For video gallery, make sure bind thumbnails for interactive view and play the video by click event. |
@pateldi1524 did you find a solution for this? |
No. |
I'm facing this problem too. My videos are in the assets folder, it's a video gallery for an interative book app. I've tried this solution but didn't work. I'll wait here. Thanks. |
Another behaviour I noticed: 1 - Open page But if we don't go fullscreen: 1 - Open page Now I'm using a modal just to store the player: 1 - Open page But if we press back button instead of closing modal: 1 - Open page |
@pabloroxo same problem with me.. but this problem will only happens with API 28 and 29. lower version is working fine |
I have the same issue. I open Vimeo player that is embedded inside an iFrame through ionic android app and it works fine if the full screen button in the player is not clicked. But when playing the video in fullscreen, if the back button is pressed, it straight away closes the app. Although I have some code for What can be done to get around this problem? |
Same here ! |
I'm facing the same problem ! |
Any update??? |
Hi. If you guys using cordova here's a solution apache/cordova-android#822 cheers |
As @josephlodero mentioned that is an issue with cordova android. There is already a PR, but hasn't merged yet -> apache/cordova-android#823 So we need to hope they will add it soon - I am waiting for it, too :D |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Bug Report
Ionic version:
[x] 4.x
Current behavior:
I have an HTML video player in my app,
<video controls> <source [src]="videoUrl" type="video/mp4"> </video>
Which loads video from device gallery and show in screen.
Video controls have option to open video in full screen. when the video is in full screen, the app closes instead of go back on click on device hardware back button.
Expected behavior:
It should close the video full screen and go back to the previous screen.
Ionic info:
The text was updated successfully, but these errors were encountered: