WP7:实时视频流

时间:2013-01-04 11:07:28

标签: windows-phone-7 video live-streaming smooth-streaming-player

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

我该如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

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

因此,当您在设备上运行应用程序时,请使用RestrictTracks Method。 RestrictTracks Method

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

请参阅本教程Developer Guide For nokia lumia

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

相关问题