© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
312 replies
Mango

Maui CommunityToolkit MediaElement

I'm trying to use the
MediaElement
MediaElement
component from
CommunityToolkit.Maui
CommunityToolkit.Maui
to add a media player. Their guide supports 3 different schemes(?) as defined here: https://learn.microsoft.com/en-us/dotnet/communitytoolkit/maui/views/mediaelement?tabs=windows

I don't want to use a URI resource, I would prefer to use either an
embed://
embed://
or
filesystem://
filesystem://
source but I don't know how to set either of them. I've tried filesystem with no luck. Assuming my
.mp4
.mp4
is located at
Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"Assets\Music\guidgen.mp4")
Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"Assets\Music\guidgen.mp4")
what would the corresponding
filesystem://
filesystem://
or
embed://
embed://
value be?
MediaElement - .NET MAUI Community Toolkit - Community Toolkits for...
This article explains how to use MediaElement to play video and audio in a .NET MAUI application.
MediaElement - .NET MAUI Community Toolkit - Community Toolkits for...
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Next page

Similar Threads

MediaElement MAUI
C#CC# / help
3y ago
❔ ✅ Databinding using CommunityToolkit.MVVM
C#CC# / help
3y ago
CommunityToolkit.MVVM ObservableProperty and JsonIgnore
C#CC# / help
15mo ago
✅ Switching from ReactiveUI to CommunityToolkit
C#CC# / help
2y ago