FileStream (EX9.Texture VLC) not consistently playing full length

I have been trying to make a playlist player using FileStream (EX9.Texture VLC) I compare the Duration to Position but need a quite large epsilon on = to account for Position sometimes not making it to Duration.

Same behavior with Frame and FrameCount

I am thinking that I need to have a stopwatch start along with when I press play or load a new video clip and use that to compare to the duration.

I feel that the stopwatch solution is kind of a hack and wonder if someone else have had problems with this behavior and have found a solution.

Ideally an output pin of FileStream (EX9.Texture VLC) could be End Of Clip that could do the trick.

I think I have solved the problem this way, but it still feels like a hack. any suggestions are very welcome.

PlaylistPlayer.v4p (8.7 kB)