0

我在 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(); 

我怎么解决这个问题?

4

1 回答 1

0

这是多分辨率视频的问题。因为 wp7 不支持所有分辨率的视频。

因此,当您当时在设备上运行应用程序时,请使用 RestrictTracks 方法。 限制跟踪方法

我认为它的视频比特率问题。

请参考本教程诺基亚 lumia 开发者指南

如果有任何问题,请告诉我

于 2013-01-08T09:39:57.597 回答