mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 07:06:58 +08:00
detect when the connection with the server is closed when publishing with udp (#6)
This commit is contained in:
@@ -59,6 +59,7 @@ func main() {
|
||||
// write frames to the server
|
||||
err = conn.WriteFrameTCP(track.Id, gortsplib.StreamTypeRtp, buf[:n])
|
||||
if err != nil {
|
||||
fmt.Println("connection is closed (%s)", err)
|
||||
break
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user