© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
5 replies
kevin

Cant play video in MAUI

Hey I'm trying to play a background video in MAUI, my underlying code is:

<toolkit:MediaElement x:Name="BgVideo" Source="Resources/Raw/video.mp4" ShouldShowPlaybackControls="False"
          ShouldLoopPlayback="True" Aspect="AspectFill" ShouldAutoPlay="True"
          HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand"/>
<toolkit:MediaElement x:Name="BgVideo" Source="Resources/Raw/video.mp4" ShouldShowPlaybackControls="False"
          ShouldLoopPlayback="True" Aspect="AspectFill" ShouldAutoPlay="True"
          HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand"/>


however it doesn't play the video if i change the path to a URL it works fine, is my path wrong ?
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

Similar Threads

MAUI Entry Point - MauiProgram.cs [Answered]
C#CC# / help
4y ago
.NET MAUI MAUI in ACTION BOOK
C#CC# / help
2y ago
✅ Video Recording with .NET MAUI ISSUE!
C#CC# / help
14mo ago
Tilemap control in MAUI
C#CC# / help
2y ago