adding checking thread after recording begins :
+ checking if recording is withing max recording duration and stopping otherwise and presenting the publishing frame