Windows phone 7 媒体元素没有';安装Mango开发工具后无法工作

Windows phone 7 媒体元素没有';安装Mango开发工具后无法工作,windows-phone-7,Windows Phone 7,我正在从internet下载一个语音文件,并将其保存在独立存储中。我将这个文件传递给页面上的媒体元素,然后调用Play()方法。在我安装Mango开发者工具之前,这个应用程序一直运行良好。此后,媒体元素不再播放该文件 private void DownloadCompleted(System.IO.IsolatedStorage.IsolatedStorageFileStream _Result) { if (_Result.CanRead && (b

我正在从internet下载一个语音文件,并将其保存在独立存储中。我将这个文件传递给页面上的媒体元素,然后调用Play()方法。在我安装Mango开发者工具之前,这个应用程序一直运行良好。此后,媒体元素不再播放该文件

  private void DownloadCompleted(System.IO.IsolatedStorage.IsolatedStorageFileStream _Result)
    {
        if (_Result.CanRead && (bool)chkSpeak.IsChecked)
        {
            mediaElement1.SetSource(_Result);
            mediaElement1.Play();
        }
    }


<MediaElement Height="111" HorizontalAlignment="Left" Name="mediaElement1" VerticalAlignment="Top" Width="100"  Volume="1" AutoPlay="True" IsHitTestVisible="True" />
private void下载完成(System.IO.IsolatedStorage.IsolatedStorageFileStream\u结果)
{
如果(_Result.CanRead&(bool)chkSpeak.IsChecked)
{
mediaElement1.SetSource(_结果);
mediaElement1.Play();
}
}
我需要对我的代码进行任何更改吗?

根据(我假设你的意思是
beta 2
),这两个问题是已知的:

当Windows Phone Emulator正在运行时 在Windows Vista上,出现了一些音频问题 可能发生。这个问题是由 播放音频时丢失音频数据包 例如媒体文件或警报

设置MediaElement的源 对象每隔一次失败一次


可能有关联。(您是否在使用Vista/SetSource间歇性工作?

我想您的意思是它在Mango emulator中不工作。芒果前的设备呢?你的目标是7.0还是7.1?