xamarin / XamarinCommunityToolkit

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

Open Johno-ACSLive opened 4 years ago

Johno-ACSLive commented 4 years ago

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

  1. Set device to flight mode
  2. Set MediaElement source with a URL and AutoPlay enabled
  3. 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

jsuarezruiz commented 4 years ago

The same happens on iOS too.

Johno-ACSLive commented 4 years ago

Correct, same issue on iOS

sact1909 commented 3 years ago

Any progress with this issue?