unosquare / ffmediaelement

FFME: The Advanced WPF MediaElement (based on FFmpeg)
https://unosquare.github.io/ffmediaelement/
Other
1.17k stars 241 forks source link

Video with Resetting Clock Pauses and Cannot resume #644

Open jpwkeeper opened 1 year ago

jpwkeeper commented 1 year ago

Video with Resetting Clock

I have video that is embedded as part of other data, then streamed to another system. During analysis, the user may play this data several times, so the video would reset to some random point. What happens right now is when the clock resets, the video pauses and there doesn't appear to be any way to start it back up again. I'm using a custom source that cannot seek, which prevents the clock from being reset in Media.Stop(). This issue can easily be reproduced in the sample using a customfile:// source, but modifying the FileSourceStream to seek back to the beginning when the file reaches the end.

Issue Categories

Version Information

Steps to Reproduce

  1. Modify the FileSourceStream in the sample to seek back to the beginning of the file whenever the file is exhausted.
  2. Video Pauses itself at the end of the first run through the file.

Expected Results