Skip to content

[BUG] Using MediaElement version 7.0.0 crashes MAUI app on iOS with exception"No Parameterless Constructor Found for MediaElement" #2967

@suvashree123

Description

@suvashree123

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

Current Behavior

We are using .NET 10 GA and MediaElement 7.0.0 version. App crashes on iOS. But if we use version 3.1.1 it does not crash. All the versions after 3.1.1 crashes app with same exception on iOS.

Expected Behavior

App should not crash on iOS using MediaElement 7.0.0.

Steps To Reproduce

https://github.com/Ratnapriya/community_toolkit_sample_app.git

Here is the sample application where the issue is reproduced.
Steps to reproduce:
Download the code from above github repo.
Open the code in Visual Studio.
Deploy on iOS device.
Observe app is crashing with exception: "No parameterless constructor defined for type "CommunityToolkit.MAUI.Views.MediaElement""

Link to public reproduction project repository

https://github.com/Ratnapriya/community_toolkit_sample_app.git

Environment

- .NET MAUI CommunityToolkit:7.0.0
- OS:iOS
- .NET MAUI:10.0.10.1

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions