client: remove OnPlay

This commit is contained in:
aler9
2021-11-12 16:44:16 +01:00
committed by Alessandro Ros
parent 3ba7c373b9
commit 029ebd5dea
4 changed files with 133 additions and 65 deletions

View File

@@ -137,8 +137,6 @@ type Client struct {
OnRequest func(*base.Request)
// called after every response.
OnResponse func(*base.Response)
// called before sending a PLAY request.
OnPlay func(*Client)
// called when a RTP packet arrives.
OnPacketRTP func(*Client, int, []byte)
// called when a RTCP packet arrives.
@@ -1528,10 +1526,6 @@ func (c *Client) doPlay(ra *headers.Range, isSwitchingProtocol bool) (*base.Resp
return nil, err
}
if c.OnPlay != nil {
c.OnPlay(c)
}
c.state = clientStatePlay
// setup UDP communication before sending the request.