Close published tracks on participant close (#2446)

This commit is contained in:
Raja Subramanian
2024-02-05 13:41:41 +05:30
committed by GitHub
parent 7c16ca6a0c
commit b7147efb87
5 changed files with 52 additions and 76 deletions
+1 -1
View File
@@ -264,7 +264,7 @@ func (b *Buffer) Bind(params webrtc.RTPParameters, codec webrtc.RTPCodecCapabili
b.bound = true
}
// Write adds an RTP Packet, out of order, new packet may be arrived later
// Write adds an RTP Packet, ordering is not guaranteed, newer packets may arrive later
func (b *Buffer) Write(pkt []byte) (n int, err error) {
b.Lock()
defer b.Unlock()