vs 2010下WPF中如何播放MP3
MediaPlayerplayer=n...
MediaPlayer player = new MediaPlayer(); player.Open(new Uri(Environment. CurrentDirectory + "\\test.mp3", UriKind.Relative)); VideoDrawing aVideoDrawing =new VideoDrawing(); aVideoDrawing.Rect = new Rect(0, 0, 100, 100); aVideoDrawing.Player = player; player.Play(); 点击按钮,不能播放声音
展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询