mirror of
https://github.com/gowvp/gb28181.git
synced 2026-04-22 23:17:19 +08:00
显示播放状态
This commit is contained in:
@@ -54,6 +54,10 @@ func (g *GB28181API) StopPlay(in *StopPlayInput) error {
|
||||
|
||||
ch.device.playMutex.Lock()
|
||||
defer ch.device.playMutex.Unlock()
|
||||
|
||||
defer func() {
|
||||
g.svr.gb.core.EditPlaying(in.Channel.DeviceID, in.Channel.ChannelID, false)
|
||||
}()
|
||||
return g.stopPlay(ch, in)
|
||||
}
|
||||
|
||||
@@ -102,6 +106,8 @@ func (g *GB28181API) Play(in *PlayInput) error {
|
||||
return err
|
||||
}
|
||||
|
||||
g.svr.gb.core.EditPlaying(in.Channel.DeviceID, in.Channel.ChannelID, true)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user