使用v3获取当前帧

This commit is contained in:
lijun 2025-01-20 18:56:42 +08:00
parent 6486b8328b
commit f1401e8a9b
1 changed files with 3 additions and 4 deletions

View File

@ -245,13 +245,12 @@ func subscribeAndHandleMessagesV3(ws *websocket.Conn, device_id int) {
} }
c = count c = count
t++ t++
if t%10 == 0 {
log.Printf("device:%d send frame count:%d,img is closed", device_id, c)
}
err5 := img.Close() err5 := img.Close()
if err5 != nil { if err5 != nil {
log.Printf("img close err:%v", err) log.Printf("img close err:%v", err)
} else {
if t%10 == 0 {
log.Printf("device:%d send frame count:%d,img is closed", device_id, c)
}
} }
} }
} else { } else {