The Xamarin Community Toolkit is a collection of Animations, Behaviors, Converters, and Effects for mobile development with Xamarin.Forms. It simplifies and demonstrates common developer tasks building iOS, Android, and UWP apps with Xamarin.Forms.
MIT License
1.59k
stars
474
forks
source link
[Bug] MediaElement not raising MediaFailed event on Android when given a URL and device has no network #399
MediaElement displays a blank screen on Android when the device is in flight mode. On UWP, when it fails to load the native control displays a message saying it cannot play back the media. Hooking into the MediaFailed event allows me to provide a custom message on top of that. This doesn't work on Android (nor iOS) since the MediaFailed event is never triggered.
Steps to Reproduce
Set device to flight mode
Set MediaElement source with a URL and AutoPlay enabled
MediaElement is blank with no information on what is happening
Expected Behavior
MediaFailed event should be triggered in the first instance to allow custom messaging.
Actual Behavior
MediaFailed event does not get triggered.
Basic Information
Version with issue: 4.5.0.356
Last known good version: N/A
IDE: Visual Studio 2019
Platform Target Frameworks:
Android: 10.1
Android Support Library Version: 28.0.0.3
Nuget Packages: v1.1.0 of Xamarin.AndroidX.MediaRouter
Description
MediaElement displays a blank screen on Android when the device is in flight mode. On UWP, when it fails to load the native control displays a message saying it cannot play back the media. Hooking into the MediaFailed event allows me to provide a custom message on top of that. This doesn't work on Android (nor iOS) since the MediaFailed event is never triggered.
Steps to Reproduce
Expected Behavior
MediaFailed event should be triggered in the first instance to allow custom messaging.
Actual Behavior
MediaFailed event does not get triggered.
Basic Information