Closed lizhongjie9999 closed 1 week ago
LiveSource is designed for scheduled cleanup, which differs from the cleanup method used by SrtSource. In the future, it will be modified for consistency.
TRANS_BY_GPT4
LiveSource use a timer to cleanup, because we need to dispose HLS files while disposing source. So SRTSource should follow the same rule to LiveSource.
Call the SrsLiveSource::on_consumer_destroy(), both the consumer and publisher are gone, stream_dieat needs to be set, or the timer will not clean up the SrsLiveSource
Release v6.0-d5
The original code:
Code that should be changed, Similar to SrsSrtSource::on_consumer_destroy():