Sai Madhav Reddy
Posted on November 21, 2024
Hi everyone, I’m looking for suggestions on how to manage session timeouts for a Heygen video streaming avatar in my web application. Currently, their default timeout is 2 minutes of inactivity, after which the session ID is automatically terminated. However, I need the idle timeout to be 3 minutes for my application.
Since Heygen doesn’t allow modifying the timeout duration directly, they provide a parameter called disable_timeout. By setting this to true, I can disable their default timeout and implement my own server-side logic to detect idle time. My goal is to track 3 minutes of inactivity on the server and then call the streaming.stop API to terminate the session.
The challenge is to track idle timeout entirely on the server without relying on any signals from the client. Does anyone have ideas or best practices on how to achieve this effectively?
Posted on November 21, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.