79105669

Date: 2024-10-19 18:44:57
Score: 3.5
Natty:
Report link

I think you should definitely try LibVLCSharp library. Check out the NuGet package (https://www.nuget.org/packages/LibVLCSharp/) and main documentation (https://code.videolan.org/videolan/LibVLCSharp/-/blob/3.x/docs/home.md). There is also a nice Q/A page that showcases common usages - “How Do I do X”

Recently I developed a simple demo project and wrote a blog post about it. I'm pretty sure you'll find it helpful. Basically I used Visual Studio 2022 as IDE, Avalonia UI as framework, LibVLCSharp package as audio API, and was able to play an URI based audio file. Probably you'll be able to use resource URI similarly in your project. Please download the complete source code from GitHub (https://github.com/Monsalma/Monsalma.AvaloniaUI/tree/main/Monsalma_AvaloniaAudioTest). There is a blog post that will take you through the process step by step (https://monsalma.net/avalonia-ui-audio-playback-demo/) so be sure to check it out.

Reasons:
  • Blacklisted phrase (1): How Do I
  • Blacklisted phrase (0.5): check it out
  • Contains signature (1):
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Monsalma