Utterly confused- Cant play smooth streaming from Azure CDN

Answered Utterly confused- Cant play smooth streaming from Azure CDN

All Replies

  • Sunday, May 20, 2012 8:19 PM
     
     

    @ManuY could you please provide details:

  • Sunday, May 20, 2012 9:41 PM
     
      Has Code

    Hello Vishal,

    Thanks for the response. I have now encoded my video to VC-1 Advanced, so that I can get something working..

    any help / direction will be helpful.

    Thanks.

    public partial class SSMETest : PhoneApplicationPage
        {
            public SSMETest()
            {
                InitializeComponent();
            }
    
            private void PhoneApplicationPage_Loaded(object sender, RoutedEventArgs e)
            {
                video.AutoPlay = true;
                video.CurrentStateChanged += new RoutedEventHandler(video_CurrentStateChanged);
                video.PlaybackTrackChanged += new EventHandler<TrackChangedEventArgs>(video_PlaybackTrackChanged);
                video.SmoothStreamingSource = new Uri("http://xxx.vo.msecnd.net/teststreaming/6a3c2acd-8a2f-41ee-9203-137d7ba7ecd5.ism/manifest");
                            
                
            }
    
            void video_PlaybackTrackChanged(object sender, TrackChangedEventArgs e)
            {
                currentBitrate.Text = e.NewTrack.Bitrate.ToString();
            }
    
            void video_CurrentStateChanged(object sender, RoutedEventArgs e)
            {
                status.Text = video.CurrentState.ToString();
            }
    
            private void StopButton_Click(object sender, RoutedEventArgs e)
            {
                //This should simply stop the playback
                video.Stop();
                //We should also reflect the chang on the play button
                PlayButton.Content = "Play";
            }
    
            private void PlayButton_Loaded(object sender, RoutedEventArgs e)
            {
                switch (video.AutoPlay)
                {
                    case false:
                        PlayButton.Content = "Play";
                        break;
                    case true:
                        PlayButton.Content = "Pause";
                        break;
                }
            }
    
            private void PlayButton_Click(object sender, RoutedEventArgs e)
            {
    
                //Monitor the state of the content to determine the right action to take on this button being clicked
                //and then change the text to reflect the next action
                switch (video.CurrentState)
                {
                    case SmoothStreamingMediaElementState.Playing:
                        video.Pause();
                        PlayButton.Content = "Play";
                        break;
                    case SmoothStreamingMediaElementState.Stopped:
                    case SmoothStreamingMediaElementState.Paused:
                        video.Play();
                        PlayButton.Content = "Pause";
                        break;
                }
    
    
            }
        }

    • Edited by ManuY Sunday, May 20, 2012 9:42 PM
    •  
  • Sunday, May 20, 2012 9:49 PM
     
     

    @ManuY

    Please refer to instructions here and try - http://smf.codeplex.com/documentation.

    As I mentioned not all streams would run on Windows Phone given platform restrictions around resolution supported. Using SMF should be better as it has some code to work around those limitations and pick streams that work on Windows Phone.

  • Monday, May 21, 2012 10:40 PM
     
     Answered

    Blob storage doesn't know anything about Smooth Streaming. I believe the CDN does have a Smooth Streaming feature these days, but I also think that's currently in a limited CTP (was last time I checked), so you would have had to sign up for that feature to get it enabled. Did you?

    If not, blob storage and the CDN will happily serve up the file, but Smooth Streaming requires a different protocol than just serving up the file.