Skip to content

Commit

Permalink
fix: m3u8 data path
Browse files Browse the repository at this point in the history
  • Loading branch information
zijiren233 committed Oct 13, 2024
1 parent 676c4f8 commit 16569ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/handlers/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ func initMovie(movie *gin.RouterGroup, needAuthMovie *gin.RouterGroup) {
needAuthMovie.GET("/proxy/:movieId", ProxyMovie)

{
live := movie.Group("/live")
needAuthLive := needAuthMovie.Group("/live")

needAuthLive.POST("/publishKey", NewPublishKey)
Expand All @@ -248,7 +249,7 @@ func initMovie(movie *gin.RouterGroup, needAuthMovie *gin.RouterGroup) {

needAuthLive.GET("/hls/list/:movieId", JoinHlsLive)

movie.GET("/hls/data/:roomId/:movieId/:dataId", ServeHlsLive)
live.GET("/hls/data/:roomId/:movieId/:dataId", ServeHlsLive)
}
}

Expand Down

0 comments on commit 16569ea

Please sign in to comment.