Skip to content

play an MP3 file using LibVLCSharp in a C# console application

Notifications You must be signed in to change notification settings

Lenochxd/PlaySoundCS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PlaySoundCS

This silly project demonstrates how to play an MP3 file using LibVLCSharp in a C# console application.

Prerequisites

Installation

  1. Install the .NET Core SDK from the official website.
  2. Add the LibVLCSharp library to your project by running the following command:
    dotnet add package LibVLCSharp
    dotnet add package VideoLAN.LibVLC.Windows

Usage

  1. Clone the repository or download the source code.
  2. Navigate to the project directory.
  3. Build the project:
    dotnet build
  4. 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

License

Do whatever you want

About

play an MP3 file using LibVLCSharp in a C# console application

Topics

Resources

Stars

Watchers

Forks

Languages