[英]Copy mp3 files from Isolated storage to media library in windows phone 8
[英]Mp3 file isolated storage
我想影響我閱讀過Microsoft.FrameWorck.Media.Song中的隔離存儲的流,我完成了以下代碼:
public void Restory()
{
` Media.ClearValue(MediaElement.SourceProperty);
using (IsolatedStorageFile ISF = solatedStorageFile.GetUserStoreForApplication())
{
if (ISF.FileExists(MainPage.filename))
using (IsolatedStorageFileStream FS = ISF.OpenFile(MainPage.filename,FileMode.Open))
{
this.Media.SetSource(FS);
Media.Play();
//Media is Mediaenlement But in this step
i want to put that stream in Microsoft.Xna.FrameWorck.Media.Song
}
}
}
那不可能 Song
僅適用於存儲在用戶的MediaLibrary ,遠程URI或XAP文件本身中的曲目,而不適用於隔離存儲中的曲目。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.