merge WriteFrameTCP and WriteFrameUDP

This commit is contained in:
aler9
2020-11-08 20:01:50 +01:00
parent 7c91f02459
commit 2deddcffab
4 changed files with 21 additions and 17 deletions

View File

@@ -57,7 +57,7 @@ func main() {
}
// write frames to the server
err = conn.WriteFrameTCP(track.Id, gortsplib.StreamTypeRtp, buf[:n])
err = conn.WriteFrame(track.Id, gortsplib.StreamTypeRtp, buf[:n])
if err != nil {
fmt.Println("connection is closed (%s)", err)
break