fix PAUSE with UDP (#157)"

This commit is contained in:
aler9 2020-12-16 22:30:15 +01:00
parent 007cfb33ae
commit b3e9249158

View file

@ -778,6 +778,7 @@ func (c *Client) run() {
}
c.stopPlay()
c.state = statePrePlay
c.path.OnClientPause(c)
case stateRecord:
if c.streamProtocol == gortsplib.StreamProtocolTCP {
@ -786,6 +787,7 @@ func (c *Client) run() {
}
c.stopRecord()
c.state = statePreRecord
c.path.OnClientPause(c)
}
return &base.Response{