mirror of
https://github.com/aler9/gortsplib
synced 2025-10-01 05:22:22 +08:00
server: provide path to OnSetup()
This commit is contained in:
@@ -71,7 +71,7 @@ func handleConn(conn *gortsplib.ServerConn) {
|
||||
}
|
||||
|
||||
// called after receiving a SETUP request.
|
||||
onSetup := func(req *base.Request, th *headers.Transport, trackID int) (*base.Response, error) {
|
||||
onSetup := func(req *base.Request, th *headers.Transport, path string, trackID int) (*base.Response, error) {
|
||||
return &base.Response{
|
||||
StatusCode: base.StatusOK,
|
||||
Header: base.Header{
|
||||
|
Reference in New Issue
Block a user