Play back latest recorded video

 

Hi, Is there a way to play back the latest recorded video? I'd like to have a button that instantly plays the latest recorded video in the preview output and when I stop the playback (or when the video ends) it switches back to the live view. I tried to take the video path from the recorder and pointing it to the video path of the player, but when I start the recording it then immediatly tries to load it into the player, giving an error that it could not load the video (because it is still recording).

   tinodejong

 
Profile Image
Eifert@Aximmetry
  -  

Hi,

The simplest solution is to do this:

However, note that this may not work well with larger recordings, as the operating system may require several frames to write the file.
In such cases, you could add a Delay module to make the Video Player open the file a bit later:

Unfortunately, you'll need to experiment to find an adequate Delay value for the Delay module. Otherwise, if you need to show the video as soon as possible, there might be a way to check if the file has finished writing. However, implementing this will make the logic much more complex. If needed, I can explore a solution involving this.

Warmest regards,

 
Profile Image
tinodejong
  -  

Thanks, this is a simple but workable solution. With some testing in regards of the needed delay, I think it does what we need!