I use Shell for navigation between pages. There are two pages, the details page and the video page. The details page will navigate to the video page. In addition to the MediaElement, the video page also has a CollectionView for the user to select a specific episode to be played.
On this basis, users click the full-screen button to enter the full-screen mode to watch videos, and when they don’t want to watch, they will exit the full-screen through the full-screen gesture of Android phone —— side slide back or click the system’s back button.
The result I expect is that the MediaElement exits full screen but is still playing, and the page is still a video page. But the reality is that the ondisappering () of the video page is called, the video resource is released, and the MediaElement stops playing but magically remains in full-screen mode. I guess I’ve gone back from the video page to the details page, but I can’t see it because of the full screen coverage of the MediaElement. At this point, if I click on the full screen button of MediaElement, the software will crash.
The only normal operation that doesn’t crash the software is that I first exit the full screen by clicking the full screen button of MediaElement, which is just as expected, and then I slide back or click back to return to the details page normally from the video page.
I want to know if anyone and II want to know if anyone has the same problem as me and if there is a good solution. I would be grateful if you could share it.