Add rtsp_client for testing ghost exec process

This commit is contained in:
Alex X
2024-06-05 20:00:41 +03:00
parent 9bb36ebb6c
commit e0b1a50356
3 changed files with 59 additions and 2 deletions
+12 -2
View File
@@ -186,10 +186,20 @@ func (c *Conn) Announce() (err error) {
return err
}
res, err := c.Do(req)
_, err = c.Do(req)
return
}
_ = res
func (c *Conn) Record() (err error) {
req := &tcp.Request{
Method: MethodRecord,
URL: c.URL,
Header: map[string][]string{
"Range": {"npt=0.000-"},
},
}
_, err = c.Do(req)
return
}