문제

I'm trying to play 2 songs in total, one after another. This is my code now using C# for WPF. Any advice?

        MediaPlayer player = new MediaPlayer();
        player.Open(new Uri(@"C:\Users\L31006\Desktop\Window Wipe\welcome.mp3"));
        player.Play();
도움이 되었습니까?

해결책

You need to subscribe to the MediaEnded event of player. This is where you would start the second song.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top