mirror of
https://github.com/aler9/rtsp-simple-server
synced 2025-11-01 03:22:50 +08:00
improve performance when publishing to the server or receiving streams in proxy mode
This commit is contained in:
3
main.go
3
main.go
@@ -316,7 +316,10 @@ outer:
|
||||
continue
|
||||
}
|
||||
|
||||
atomic.StoreInt64(pub.client.udpLastFrameTimes[pub.trackId], time.Now().Unix())
|
||||
|
||||
pub.client.rtcpReceivers[pub.trackId].OnFrame(req.streamType, req.buf)
|
||||
|
||||
p.forwardFrame(pub.client.path, pub.trackId, req.streamType, req.buf)
|
||||
|
||||
case req := <-p.clientFrameTCP:
|
||||
|
||||
Reference in New Issue
Block a user