Fix zero packets from webrtc
This commit is contained in:
@@ -98,6 +98,10 @@ func NewConn(pc *webrtc.PeerConnection) *Conn {
|
||||
return
|
||||
}
|
||||
|
||||
if len(packet.Payload) == 0 {
|
||||
continue
|
||||
}
|
||||
|
||||
track.WriteRTP(packet)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user