mirror of
https://github.com/langhuihui/monibuca.git
synced 2025-12-24 13:48:04 +08:00
feat: speed up first sysInfo call
This commit is contained in:
@@ -165,6 +165,11 @@ func (r *Receiver) Receive() (err error) {
|
||||
},
|
||||
}
|
||||
return r.NetConnection.Receive(false, func(channelID byte, buf []byte) error {
|
||||
if r.Publisher.Paused != nil {
|
||||
r.Stream.Pause()
|
||||
r.Publisher.Paused.Await()
|
||||
r.Stream.Play()
|
||||
}
|
||||
if time.Since(rtcpTS) > 5*time.Second {
|
||||
rtcpTS = time.Now()
|
||||
// Serialize RTCP packets
|
||||
|
||||
Reference in New Issue
Block a user