Compare commits

...

2 Commits

Author SHA1 Message Date
junleea 83282285cb Merge branch 'refs/heads/feat-video-stream' 2024-12-26 14:09:22 +08:00
junleea 54f8b03159 添加视频流接口 2024-12-26 14:09:18 +08:00
1 changed files with 1 additions and 1 deletions

View File

@ -412,7 +412,7 @@ func VideoFeed(c *gin.Context) {
// 启动一个协程来监测客户端连接是否关闭,关闭时向 clientClosed 通道发送信号
go func() {
<-c.Request.Context().Done()
close(clientClosed)
clientClosed <- struct{}{}
}()
// 查看是否还有其他连接,没有则设置 is_play 为 0