Browse Source

fix PAUSE with UDP (#157)"

pull/169/head
aler9 5 years ago
parent
commit
b3e9249158
  1. 2
      internal/client/client.go

2
internal/client/client.go

@ -778,6 +778,7 @@ func (c *Client) run() { @@ -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() { @@ -786,6 +787,7 @@ func (c *Client) run() {
}
c.stopRecord()
c.state = statePreRecord
c.path.OnClientPause(c)
}
return &base.Response{

Loading…
Cancel
Save