Play Stream for a set time only

Hello Brainstrust!

I’m after a way to turn off a stream say after 2min… Currently I have my doorbell video pushing to my google nest screen when the doorbell is pressed. But unless I direct the google nest to do something else the video stream will forever play… is there a way to set a time limit?