This silly project demonstrates how to play an MP3 file using LibVLCSharp in a C# console application.
- Install the .NET Core SDK from the official website.
- Add the LibVLCSharp library to your project by running the following command:
dotnet add package LibVLCSharp dotnet add package VideoLAN.LibVLC.Windows
- Clone the repository or download the source code.
- Navigate to the project directory.
- Build the project:
dotnet build
- Run the project with the path to an MP3 file and optionally an integer to specify the volume (0-100) as arguments. If the volume is not specified, it defaults to 50:
dotnet run -- "path/to/your/file.mp3" 50
Do whatever you want