mirror of
https://github.com/aler9/gortsplib
synced 2025-10-03 14:26:42 +08:00
server: change OnSetup() to allow users to set SSRC (#33)
This commit is contained in:
@@ -93,12 +93,12 @@ func (sh *serverHandler) OnAnnounce(ctx *gortsplib.ServerHandlerOnAnnounceCtx) (
|
||||
}
|
||||
|
||||
// called after receiving a SETUP request.
|
||||
func (sh *serverHandler) OnSetup(ctx *gortsplib.ServerHandlerOnSetupCtx) (*base.Response, error) {
|
||||
func (sh *serverHandler) OnSetup(ctx *gortsplib.ServerHandlerOnSetupCtx) (*base.Response, *uint32, error) {
|
||||
log.Printf("setup request")
|
||||
|
||||
return &base.Response{
|
||||
StatusCode: base.StatusOK,
|
||||
}, nil
|
||||
}, nil, nil
|
||||
}
|
||||
|
||||
// called after receiving a PLAY request.
|
||||
|
Reference in New Issue
Block a user