mqtt加入认证,优化视频播放与浏览器

This commit is contained in:
2025-03-07 16:04:19 +08:00
parent c71e8bc13d
commit febcdfdbf7
13 changed files with 60 additions and 82 deletions

View File

@@ -16,11 +16,11 @@ func OnlyVideo(c *leaf.Context) {
defer utils.BlankClose()
if url, ok := payload.Game["video"]; ok {
local, err := utils.LinkVideo(url.(string))
path, local, err := utils.LinkVideo(url.(string))
if err != nil {
zap.S().Errorln("视频文件获取异常: ", err)
return
}
_ = video.Play(c, local)
_ = video.Play(c, path, local)
}
}