0

我在wp7應用程序中流暢的直播SMF播放器。 首次發佈時,它工作正常。WP7:實時視頻流

我的意思是視頻流正在工作。但是當我第二次運行它時,它不起作用,但不會產生任何錯誤。 我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(); 

我怎樣才能解決這個問題?

回答

0

這是多分辨率視頻的問題。因爲wp7不支持所有分辨率的視頻。

因此,當您在設備上運行應用程序時,請使用RestrictTracks方法。 RestrictTracks Method

我認爲它的視頻比特率問題。

請reffer本教程Developer Guide For nokia lumia

如果不是讓我知道

+0

@yes其比特率的問題,因爲我的視頻比特率是420992,這methos允許任何問題400000比特率 – MansinhDodiya

+0

當我運行第一次時間它會發揮比它不工作 – MansinhDodiya

+0

好吧,所以使用RestrictTracksMethod,我已經給你了。這個方法允許1000000比特率。跳轉它的工作 – 2013-01-08 11:22:38