Replay after stream ends

Feb 26, 2014 at 1:50 PM
Edited Feb 26, 2014 at 1:53 PM
I am using the player to play back a Smooth Streaming PlayReady stream.

Using the default player, when the stream ends, the Play button gets dimmed and clicking on it will not restart the stream at the beginning.

I tried to re-create the Playlist in the PlayStateChanged event like below:

private void PlayStateChanged(...)
    {
        if (e.Value == MediaPluginState.Closed)
        {
            var currentItem = this.CurrentPlaylistItem;
            this.Playlist = new   System.Collections.ObjectModel.ObservableCollection<Microsoft.SilverlightMediaFramework.Core.Media.PlaylistItem>();
           this.Playlist.Clear();
           this.Playlist.Add(currentItem);

            ////this.Play();                    
        }
    }
But that doesn't work either. If I uncomment the this.Play(), the stream will automatically replay the stream from the beginning. But I want the replay to be manually triggered by clicking the Play button.

Anyone has done this before?
Jul 24, 2014 at 1:16 AM
if user presses Stop button and the Play does it work?