I need to adjust the timeline so it corresponds to a specific time in a stream.
I can easily adjust the start time using the following code:
var startupPosition = new TimeSpan(0, 0, (int)asset.OnDemandTimeBegin);
mediaPlayer.StartTime = startupPosition;
mediaPlayer.StartupPosition = startupPosition;
But I can't seem to find the right properties to adjust the end of the timeline and to stop the video. The following code seems to have no effect:
endPosition = new TimeSpan(0, 0, (int) asset.OnDemandTimeEnd);
mediaPlayer.EndTime = endPosition;
And there is no EndPosition property. Any solutions out there?