I've looked up a lot of threads in here, none have helped. I can't seem to play sound files from resources using MediaElement. SoundPlayer works but it's very limited. It doesn't support pause or resume, or anything important.
class Songs
{
static MediaPlayer Player = new MediaPlayer();
public static void PlaySong()
{
Player.Open(new Uri(@"pack://application:,,,/Songs/RandomSong.mp3"));
Player.Play();
}
}
Something like this doesn't give any errors, but doesn't play the song.
Is it possible to play from resources using MediaElement? If not, what do I do?