-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement audio watchdog for RTSP source monitoring
- Added audioWatchdog struct to track the last time data was received from the RTSP source. - Introduced a goroutine that checks for data reception every 5 seconds and triggers a restart if no data is received for 60 seconds. - Updated processAudio method to integrate the watchdog, ensuring it updates the last data time upon receiving audio data. - Enhanced error handling to wait for the watchdog to finish before returning errors related to data reception.
- Loading branch information
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters