0

来自服务器的 mp3 文件需要 5 分钟以上才能在 mediaelement 中播放。

代码:

  <MediaElement 
            Name="player" 
    Source="{Binding ElementName=lbTrack, Path=SelectedItem.FilePath, NotifyOnSourceUpdated=True,NotifyOnTargetUpdated=True}"
            UnloadedBehavior="Stop"
            Volume="{Binding ElementName=volume, Path=Value}" MediaEnded="player_MediaEnded" MediaOpened="player_MediaOpened" 
            LoadedBehavior="Manual" />
4

1 回答 1

0

您将从 ActiveX 媒体播放器获得更好的性能。试试这个演练:http: //msdn.microsoft.com/en-us/library/ms742735.aspx

于 2010-07-27T20:40:50.227 回答