client: split WriteFrame into WritePacketRTP and WritePacketRTCP

This commit is contained in:
aler9
2021-10-30 16:43:46 +02:00
committed by Alessandro Ros
parent e8e2059b0d
commit 7ebbdbf093
8 changed files with 58 additions and 34 deletions

View File

@@ -68,7 +68,7 @@ func main() {
}
// route RTP packets to the server
err = conn.WriteFrame(0, gortsplib.StreamTypeRTP, buf[:n])
err = conn.WritePacketRTP(0, buf[:n])
if err != nil {
panic(err)
}