Problem
When resuming a previous session in OBS Studio using the sbobs Lua script, the background video appears to run multiple times faster than intended. This occurs after the system wakes up from being in sleep mode for some time. It seems the script attempts to "catch up" by speeding through the video, running it repeatedly to match the elapsed time that should have passed if the session had continued uninterrupted.
Steps to Reproduce
- Start a session using the script, ensuring the background video is playing.
- Put the system into sleep mode for a period of time.
- Wake the system and observe:
- The background video resumes running at much higher speed.
- It appears to be compensating for the time the computer was asleep by running multiple "missed" cycles quickly.
Expected Behavior
- When the system wakes from sleep, the background video should resume at normal playback speed and time synchronization, without attempting to make up for missed time.
Actual Behavior
- The video plays much faster than normal, seemingly accelerating to catch up with elapsed real time.
Environment
- Repository: bhaskarjha-com/sbobs
- Language: Lua
- Affects session resume feature after system sleep.
Additional Notes:
- May require handling system sleep/resume events or adjusting session timer logic to ignore elapsed time while asleep.
Problem
When resuming a previous session in OBS Studio using the sbobs Lua script, the background video appears to run multiple times faster than intended. This occurs after the system wakes up from being in sleep mode for some time. It seems the script attempts to "catch up" by speeding through the video, running it repeatedly to match the elapsed time that should have passed if the session had continued uninterrupted.
Steps to Reproduce
Expected Behavior
Actual Behavior
Environment
Additional Notes: