mirror of
https://github.com/aler9/gortsplib
synced 2025-11-03 11:11:01 +08:00
client: remove OnPlay
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user