start time from a known point in dvr

Aug 25, 2011 at 11:09 PM

I have a smooth streaming with dvr option, how do I start from a point back in time?

PlaylistItem playItem;

playItem = new PlaylistItem();
playItem.MediaSource = new Uri("http://...");
playItem.DeliveryMethod = DeliveryMethods.AdaptiveStreaming;
playItem.LiveDvrRequired = true;
 playItem.StartPosition = new TimeSpan(0,-1,0); //??here i want to start playing with a 1 min delay


mainPlayer.Playlist.Add(playItem);
mainPlayer.GoToPlaylistItem(0);

Coordinator
Aug 25, 2011 at 11:31 PM

tatigo, StartPosition will determine where to start the video at, not when to start the video.

To delay playback, set AutoPlay=false, create a timer in your app that waits 1 min and then call .Play() to begin playback.

Hope that helps,

Tim

Aug 26, 2011 at 2:01 PM
Edited Aug 29, 2011 at 2:19 PM

Thanks Tim,

I need to use the DVR capabilities, to be able to scrub back to an earlier point in the video using the timeline while in live media.

I was playing with the various start positions and the offsets but it won't help, all I can go back is the standard 1 min. But how do I change this?

Please help!

 Update: solution found, there was a bug in the source code, see my other posts.