XamarinCommunityToolkit
XamarinCommunityToolkit copied to clipboard
[Bug] iOS app crashes after navigating back from page with MediaElement
Description
iOS app crashes after navigating back from page that contains MediaElement.
Stack trace:
VideoPlayerPage.xaml:
VideoPlayerPage.xaml.cs:
VideoPlayerVM:
Steps to Reproduce
- Implement page with MediaElement inside.
- Navigate to this page.
- Navigate back to the previous page.
Expected Behavior
Navigating back works fine.
Actual Behavior
App crashes immediately after navigating.
Basic Information
- Version with issue: 1.1.0
- Last known good version: -
- IDE: Visual Studio for Mac Community
- Platform Target Frameworks:
- iOS
@tabachuk thanks for this report. Could you attach a small repro?
I have already solved this problem by adding Source binding for MediaElement in XAML instead of assigning Source value in code behind. Now it works fine for me.
@pictos I can create a repo with a small test project if you still need it.
@tabachuk if you can do it will be great, that way we can see if this behavior is a bug.
@pictos https://github.com/tabachuk/VideoPlayerCrash
Thanks @tabachuk! I'll take a look this week 👍
Any news from this one? I'm having the same issue
Hi @huyvuskedulo! Apologies, this issue completely slipped my mind.
I'm still unable to reproduce this.
https://github.com/tabachuk/VideoPlayerCrash
The link provided to a reproduction sample throws a 404 Not Found error.
Looking at the screenshots provided, it appears to be a problem when using Prism.