Answer the question
In order to leave comments, you need to log in
Why doesn't sound play through MediaPlayer?
WPF project. I use MediaPlayer to play music, and I uploaded the .mp3 file to the resources. If I specify the full path of the file, for example
gamePlayer.Open(new Uri("D:/C#/Resources/callme.mp3", UriKind.Absolute));
gamePlayer.Open(new Uri(AppDomain.CurrentDomain.BaseDirectory + "/Resources/90sFlavCallMe.wav", UriKind.Absolute));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question