improve performance when publishing to the server or receiving streams in proxy mode

This commit is contained in:
aler9
2020-09-18 22:43:39 +02:00
parent 05140a5cd5
commit bb66a03f3d
4 changed files with 35 additions and 23 deletions

View File

@@ -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: