Gu.Wpf.Media
Gu.Wpf.Media copied to clipboard
Looping feature
Could you add a setting to loop the video continuously?
Yeah it would be nice, @milleniumbug asked about it also.
What is a good name for a property like that?
Loop
Repeat
LoopsEndlessly
or Repeating
maybe.
tbh my workaround was like 6 lines, so I don't feel very strongly about this feature.
The built-in looping could be improved over my workaround if, some time before the end, the control would pre-load the start of the film so it would be able to start it again without any delay.
You could have a property Loop
and, on MediaEnded
, simply execute:
if (Loop)
{
MediaElement.Stop();
MediaElement.Play();
}