-1
A
回答
0
您可以改用MediaPlayer。
首先,旁邊語句添加到您的代碼文件:
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Media;
然後,你要玩AUDO添加下面的代碼。與一個爲您的文件更改URI字符串:
FrameworkDispatcher.Update();
Song song = Song.FromUri("SongName", new Uri("SongURI", UriKind.RelativeOrAbsolute)); // Change with your audio file URI
MediaPlayer.Play(song);
音頻將繼續,如果你瀏覽其他網頁玩,但如果你退出程序將停止。