-
Notifications
You must be signed in to change notification settings - Fork 494
[BUG] MediaElement Android video player throws exception #2480
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workingneeds reproductionstaleThe author has not responded in over 30 daysThe author has not responded in over 30 daysunverified
Description
Is there an existing issue for this?
- I have searched the existing issues
Did you read the "Reporting a bug" section on Contributing file?
- I have read the "Reporting a bug" section on Contributing file: https://github.com/CommunityToolkit/Maui/blob/main/CONTRIBUTING.md#reporting-a-bug
Current Behavior
in .net 9 maui, upgraded to the latest nuget packages as of today (27 Jan. 2025), MediaLElement version 6.0.0
When load the video player on Android (API 22), the following error threw:
Could not determine Java type corresponding to AndroidX.Media3.ExoPlayer.IExoPlayerInvoker, Xamarin.AndroidX.Media3.ExoPlayer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null. (Parameter 'targetType')
Expected Behavior
Video player worked fine prior to the nuget upgrades, video will play in the mediaElement. The new community toolkit nuget package broke the video player.
Steps To Reproduce
in. net 9 with all the latest nuget packages,
- Create a Xaml PAGE with the mediaElement instance.
- Set the mediaElement source video to a local video.
- When the page load, the exception throws
Link to public reproduction project repository
na
Environment
- .NET MAUI CommunityToolkit: latest nuget package as 27 Jan 2025
- .Net 9
- .on Android API 31Anything else?
The problem only happens on Android verison.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingneeds reproductionstaleThe author has not responded in over 30 daysThe author has not responded in over 30 daysunverified