STRONGLY RECOMMENDED TO USE OBS VERSION 32.0.2
A Python script for OBS 32.0.2 that automatically reloads a "Browser" source if its audio disappears. Specifically designed for donation alerts and widgets that tend to "freeze" or lose connection.
Unlike other methods (such as xObsBrowserAutoRefresh etc.), this script will NOT refresh the page if a donation alert or requested audio is currently playing.
A Python script for OBS 32.0.2 that automatically reloads a "Browser" source if its audio disappears. Specifically designed for donation alerts and widgets that tend to "freeze" or lose connection.
Unlike other methods (such as xObsBrowserAutoRefresh etc.), this script will NOT refresh the page if a donation alert or requested audio is currently playing.
Python 3.10
Key Features
- Auto Silence Detector: The script analyzes the source's audio activity in real-time.
- Independent of Mixer: Works even if the source is muted in the OBS mixer, as long as the source itself (e.g., donation widget) is generating audio signals.
- Hard Refresh: Utilizes the refreshnocache function to completely clear the cache during a reload.
- Startup Protection: Features a built-in 10-second delay to prevent reloading while the page is still initialising after OBS starts.
- Logging: Displays operational status in the OBS "Script Log" for easy debugging.
Installation and Setup
- IMPORTANT: For the script to function correctly, the "Control audio via OBS" option must be checked in the properties of your Browser Source.
- Download the file: Save the code as refresherEN.py.
- Add to OBS:* Go to Tools -> Scripts.
- Click the + button and select your file.
- Configure Python: * Ensure that the "Python Settings" tab points to your installed Python path (usually 3.10 or higher).
- Select Source: In the script settings, choose your browser source and set the timing (e.g., check every 5 sec, timeout 10 sec(recomended 2 and 300)).