Fix: proxy live

This commit is contained in:
zijiren233 2024-06-17 01:41:32 +08:00
parent 3cfe19adcb
commit 8899c64a53
3 changed files with 8 additions and 4 deletions

2
go.mod
View File

@ -38,7 +38,7 @@ require (
github.com/zijiren233/gencontainer v0.0.0-20240507135401-7a9c8355bb2c
github.com/zijiren233/go-colorable v0.0.0-20230930131441-997304c961cb
github.com/zijiren233/go-uhc v0.2.4
github.com/zijiren233/livelib v0.3.2
github.com/zijiren233/livelib v0.3.3
github.com/zijiren233/stream v0.5.2
github.com/zijiren233/yaml-comment v0.2.2
go.etcd.io/etcd/client/v3 v3.5.14

4
go.sum
View File

@ -385,8 +385,8 @@ github.com/zijiren233/go-colorable v0.0.0-20230930131441-997304c961cb h1:0DyOxf/
github.com/zijiren233/go-colorable v0.0.0-20230930131441-997304c961cb/go.mod h1:6TCzjDiQ8+5gWZiwsC3pnA5M0vUy2jV2Y7ciHJh729g=
github.com/zijiren233/go-uhc v0.2.4 h1:CrdLbnDXcqNaifiVBVbtMYwMGm9h4POwPfpBgKjyAPc=
github.com/zijiren233/go-uhc v0.2.4/go.mod h1:3c/6Vu2LoUFlyrKWkZgNEGCd04OjbehTIIkzg5KW4EE=
github.com/zijiren233/livelib v0.3.2 h1:+wTQ4s2j3uN52svutGAAiB/fUoEvSDTNCT9iHbQBXzA=
github.com/zijiren233/livelib v0.3.2/go.mod h1:vEjPSCaZ9RAen2efc1lmjCoFV/3zpPtjVV5ngS2q/nE=
github.com/zijiren233/livelib v0.3.3 h1:0hbOK9RJzdduOp2GE4MWi/pqHy7ifxGQeZh4x9zxXGo=
github.com/zijiren233/livelib v0.3.3/go.mod h1:vEjPSCaZ9RAen2efc1lmjCoFV/3zpPtjVV5ngS2q/nE=
github.com/zijiren233/stream v0.5.2 h1:K8xPvXtETH7qo9P99xdvi7q0MXALfxb1XBtzpz/Zn0A=
github.com/zijiren233/stream v0.5.2/go.mod h1:iIrOm3qgIepQFmptD/HDY+YzamSSzQOtPjpVcK7FCOw=
github.com/zijiren233/yaml-comment v0.2.2 h1:5ghs8huXFVb/kWCi66P+xbXq0GnOE2XVCnhaWd7mTs8=

View File

@ -934,7 +934,11 @@ func JoinFlvLive(ctx *gin.Context) {
ctx.AbortWithStatusJSON(http.StatusNotFound, model.NewApiErrorResp(err))
return
}
_ = w.SendPacket()
err = w.SendPacket()
if err != nil {
log.Errorf("join flv live error: %v", err)
return
}
}
func JoinHlsLive(ctx *gin.Context) {