mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 15:16:51 +08:00
merge WriteFrameTCP and WriteFrameUDP
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user