Playback a videoloop

Hello, I’d like to record a video from a webcam when someone is moving and then play this video on loop until another one is moving again, so “rec and play” in loop. Everytime, the new video overwrites the old one and so on.
to record the video like with a motion sensor, I used trautner and it works good. the problem is that I don’t know how to reproduce the videos in loop and refresh the files for a new reproduction. Help me please

How can I set filestream node, to be able to play a video loop when the recorded file is ready?