Media player in C#

user2750987 picture user2750987 · Sep 17, 2013 · Viewed 24.1k times · Source

Well I am making a media player in the C# using the System.Media.SoundPlayer class but there are too many limitations in that like it only plays .wav files and there is no volume control in this and also there is no media-progessbar. So is there any better builtin class or custom class. if there is any please specify. Or even if there is any thing which will work parallel with it.

Answer

user1064248 picture user1064248 · Sep 17, 2013

You can use the WPF MediaElement as full fledged audio and video player.

It is very easy to handle and brings more or less all functionality Windows Media Player has. If you use Windows Forms you can embedd the WPF control easily.

The only drawback in my optinion is that it needs Windows Media Player to be installed.