Fix zero packets from webrtc

This commit is contained in:
Alexey Khit
2023-03-20 07:25:11 +03:00
parent 2d5a0e4822
commit b087be9c56
+4
View File
@@ -98,6 +98,10 @@ func NewConn(pc *webrtc.PeerConnection) *Conn {
return
}
if len(packet.Payload) == 0 {
continue
}
track.WriteRTP(packet)
}
})