I am having a problem with the MonoGame Videoplayer where once a video is played it will never play again.
I loaded about eight videos into my program. I then check if the videoplayer is in a stopped state. If so, I have it select a random video.
This works until I repeat any of the eight videos. Then nothing plays, the state of the player is “playing” and the current runtime of the video is always at 0 at this point.
What is really interesting, if I replay the same video over and over again it doesn’t break. Its only when I go to video 1 then video 2 then back to video 1 that it breaks.
The code is rather straight forward also:
if(jpsVideoPlayer.videoPlayer.State == MediaState.Stopped)
{
jpsVideoPlayer.videoPlayer.Play(jpsVideoPlayer.RandomVideo());
}