我在 wp7 应用程序中有流畅的直播 SMF 播放器。在第一次启动时,它运行良好。
我的意思是视频流正在工作。但是当我第二次运行它时,它不起作用但没有产生任何错误。我的 XMAL 代码是:
<StackPanel Orientation="Vertical">
<TextBlock Text="WP7 Smooth Streaming Demo" Height="12" Width="266" FontSize="22" Foreground="Blue"/>
<Core:SMFPlayer Name="strmPlayer"
HorizontalAlignment="Stretch"
Margin="0"
VerticalAlignment="Stretch"/>
</StackPanel>
我的 C# 代码是
PlaylistItem item = new PlaylistItem();
item.MediaSource = new Uri("http://video3.smoothhd.com.edgesuite.net/ondemand/Big%20Buck%20Bunny%20Adaptive.ism/Manifest");
item.DeliveryMethod = Microsoft.SilverlightMediaFramework.Plugins.Primitives.DeliveryMethods.AdaptiveStreaming;
strmPlayer.Playlist.Add(item);
strmPlayer.Play();
我怎么解决这个问题?