Search code examples
wpfmedia-player

WPF's MediaPlayer not playing sounds on certain pc's


I made an WPF app that plays sounds using the MediaPlayer class.

This works great on a lot of pc's, but there are 2 pc's that play regular sounds (and they also play the .wav's from the app when opened with windows media player) but they don't play the sounds when opened from my app..

I get no error message or anything, they just refuse to play the sound..

The PCs run windows XP, but so do the other ones on which the sound plays great.

Is there any known requirement for making the MediaPlayer work in WPF? I have no idea in what direction I have to start looking..

.NET client framework 4.0 is installed on all pc's. We tested on about 6 PCs with different hardware, and on 2 of them we have no sound in the app.

Any idea?


Solution

  • The problem was that Windows media player 9 was installed on these PC's. Updating to WMP 11 fixed the issue.