Skip to content

[BUG] 6.0.1 MedialElement doesn't display / load embedded source #2608

@jean-beziaud

Description

@jean-beziaud

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

Hi,
I try to use MediaElement component in my project.
To implement it, I follow this procedure but it doesn't work with embedded resources. The video isn't loaded and I have this error in the Debug console:

MediaManager: Error: SourceNotSupported, Error code: Value does not fall within the expected range.

If I use remote resource or file system resource (with absolute uri), it works and the video is displayed.

Expected Behavior

The video should be displayed

Steps To Reproduce

  1. Open the solution in the reproduction project repository
  2. Launch the application
  3. You have two MediaElement
    a. One with URI source => Video is displayed
    b. One with embedded source => Video isn't load

Link to public reproduction project repository

https://github.com/jeanbeziaud-bib/MediaElementEmbeddedSource

Environment

- CommunityToolkit.Maui.MediaElement: 6.0.1 
- OS: Windows 10 Build 10.0.19041.0
- .NET MAUI: 9.0.50

Anything else?

I have maybe forgotten something in the procedure but I don't know what.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working📽️ MediaElementIssue/PR that has to do with MediaElement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions