How to force stop streaming or how to disable/enable a user's streamkey?

This way i can limit the live streaming to only 2-4 hours

One way to do this might be to make a signed token that is limited to the time period you want the video to be viewable.
Take a look at the docs on creating tokens: Secure your Stream · Cloudflare Stream docs

Then, you can use that token in place of a video ID. When the validity time for token expires, the token will no longer work.

1 Like

Will token expiration work on live stream? Or mp4 videos only?

Hi @renan