Have had “fun” with the SilverlightStreamingMediaPlayerl today..haven’t found the solution..just all the symptoms.
So i’ve got a SilverlightStreamingMediaPlayer, I’ve set it to point to an application on Silverlight Streaming, with autoplay OFF so it doesn’t start playing as soon as you load the page…all works well.
Then I added a GridView which displayed thumbnails of all the videos I want to play, and when the user clicks on one i update the video and play it using the following javascript:
function updatevideo(url) { var slMediaPlayer = $find("<%=CurrentSilverlightStreamingMediaPlayer.ClientID %>"); slMediaPlayer.set_mediaSource(url); slMediaPlayer.set_autoPlay(true); return false; }
This also works a treat 🙂
My problem arrises in the following circumstance:
If I select a video from the list and then change pages the video starts from the beginning rather than keep playing.
If I play the default video and change pages, it continues on fine.
So it’s remembering the video url property ok, but losing where the video is up to. Will post back if I find a solution.