mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 07:06:58 +08:00
server: change OnSetup() to allow users to set SSRC (#33)
This commit is contained in:
@@ -103,7 +103,9 @@ type ServerHandlerOnSetupCtx struct {
|
||||
|
||||
// ServerHandlerOnSetup can be implemented by a ServerHandler.
|
||||
type ServerHandlerOnSetup interface {
|
||||
OnSetup(*ServerHandlerOnSetupCtx) (*base.Response, error)
|
||||
// returns a Response and an optional SSRC that is
|
||||
// inserted into the Transport header.
|
||||
OnSetup(*ServerHandlerOnSetupCtx) (*base.Response, *uint32, error)
|
||||
}
|
||||
|
||||
// ServerHandlerOnPlayCtx is the context of a PLAY request.
|
||||
|
Reference in New Issue
Block a user