Compare commits

...

2 Commits

Author SHA1 Message Date
junleea 700f9a474d Merge branch 'refs/heads/fearture-realvp' 2024-08-08 20:57:48 +08:00
junleea 25e5ba0d21 修复查看实时视频问题 2024-08-08 20:57:23 +08:00
1 changed files with 1 additions and 0 deletions

View File

@ -261,6 +261,7 @@ func GetRealTimeImage(c *gin.Context) {
res3, _ = json.Marshal(msg)
}
err2 := ws.WriteMessage(websocket.TextMessage, res3)
worker.SetRedisWithExpire(strconv.Itoa(int(device.ID))+"_is_play", "1", time.Minute*5) //设置播放状态
if err2 != nil {
clientsMux.Lock()
clients[ws] = false