0

I have smooth live streaming SMF player in wp7 application . At the first launch it works fine.

I mean video streaming is working. But when I run it a second time, it does not work but is not producing any errors. My XMAL code is:

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

And my C# Code is

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

How can I solve this problem?

Till
  • 27,559
  • 13
  • 88
  • 122
Mansinh
  • 1,365
  • 4
  • 19
  • 47

1 Answers1

0

This is problem of multi resolution video.Because wp7 not support all resolution video.

So when you run your application on device at that time use RestrictTracks Method. RestrictTracks Method

I think its bit rate problem of your video.

Please reffer this tutorialDeveloper Guide For nokia lumia

If any problem than let me know

  • @yes its bit rate issue because my video bitrate is 420992 and this methos allow 400000 bit rate – Mansinh Jan 08 '13 at 11:17
  • when i run first time that time it will play than after its not working – Mansinh Jan 08 '13 at 11:18
  • Okay so use RestrictTracksMethod that already i given you.this method allow 1000000 bit rate.Hop its working –  Jan 08 '13 at 11:22