mirror of
https://github.com/aler9/gortsplib
synced 2025-10-09 00:50:24 +08:00
merge WriteFrameTCP and WriteFrameUDP
This commit is contained in:
@@ -69,7 +69,7 @@ func main() {
|
||||
}
|
||||
|
||||
// write frames to the server
|
||||
err = conn.WriteFrameUDP(track.Id, gortsplib.StreamTypeRtp, buf[:n])
|
||||
err = conn.WriteFrame(track.Id, gortsplib.StreamTypeRtp, buf[:n])
|
||||
if err != nil {
|
||||
break
|
||||
}
|
||||
|
Reference in New Issue
Block a user