server: change OnSetup() to allow users to set SSRC (#33)

This commit is contained in:
aler9
2021-05-16 15:09:08 +02:00
parent 39c544e09f
commit 4b385ec04b
7 changed files with 106 additions and 97 deletions

View File

@@ -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.