Skip to content

A simple console application that can be used to send multimedia command strings to Media Control Interface (MCI)

License

Notifications You must be signed in to change notification settings

vurdalakov/mcistringsender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MciStringSender

MciStringSender is a simple .NET 5 console application that can be used to send Multimedia command strings to Media Control Interface (MCI).

Download

Screenshots

Play WAV file with MciStringSender

Explorer multimedia device capabilities with MciStringSender

Points of interest

var mciRequest = Console.ReadLine();

if (mciRequest != null)
{
    var mciStringSender = new MciStringSender();
    
    if (mciStringSender.TrySendString(mciRequest, out var mciResponse))
    {
        if (!String.IsNullOrEmpty(mciResponse))
        {
            Console.WriteLine(mciResponse);
        }
    }
    else
    {
        Console.WriteLine($"Error {mciStringSender.LastErrorCode} '{mciStringSender.LastErrorString}'");
    }
}
  • MciPlayer.cs - a helper class that uses MciStringSender class to play multimedia files.

About

A simple console application that can be used to send multimedia command strings to Media Control Interface (MCI)

Resources

License

Stars

Watchers

Forks

Packages

No packages published