0
我在IsolatedStorage
中有一些mp3文件,並且想要播放它們。如何從存儲中讀取音頻文件?
我這樣做,但我什麼也沒聽到:打開文件後,
IsolatedStorageFile isolatedStorage = IsolatedStorageFile.GetUserStoreForApplication();
IsolatedStorageFileStream fileStream = isolatedStorage.OpenFile(filePath, FileMode.Open, FileAccess.Read);
musicMediaElement.SetSource(fileStream);
musicMediaElement.Play();
我想,我需要閱讀它,但我不知道怎麼樣?
謝謝。我跟着它,但我的行不通。 – user2799350