簡體   English   中英

MP3文件隔離存儲

[英]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
                  }
          }
        }

聽起來像tee-stream(為2個使用者拆分一個流)在這里可能很有用,盡管如果讀取速度不同,那么您將消耗內存。

這是一個實現這是另一個

那不可能 Song僅適用於存儲在用戶的MediaLibrary ,遠程URI或XAP文件本身中的曲目,而不適用於隔離存儲中的曲目。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM