显示播放状态

This commit is contained in:
xugo
2025-08-22 02:28:30 +08:00
parent 5e09474fd5
commit 92a2d3554a
10 changed files with 41 additions and 15 deletions
+6
View File
@@ -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
}