Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/video/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows phone 7 WP7:实时视频流_Windows Phone 7_Video_Live Streaming_Smooth Streaming Player - Fatal编程技术网

Windows phone 7 WP7:实时视频流

Windows phone 7 WP7:实时视频流,windows-phone-7,video,live-streaming,smooth-streaming-player,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="Blu

我在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>

如何解决此问题?

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

所以,当您在设备上运行应用程序时,请使用RestrictTracks方法。

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

请参考本教程


如果有任何问题,请让我知道

@是的,它的比特率问题,因为我的视频比特率是420992,这种方法允许400000比特率,当我第一次运行时,它将播放,而不是在它不工作后播放。可以使用我已经给你的RestrictTracks方法。这种方法允许1000000比特率。跳转它工作
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();