update m3u8 ts name

This commit is contained in:
kenneth
2023-12-13 17:31:48 +08:00
parent 16326daf66
commit 17d3d8540d
4 changed files with 91 additions and 6 deletions

View File

@@ -89,7 +89,7 @@ func (server *Server) setupRouter() {
router.HandleFunc("/play/{xid}", server.videoView).Methods(http.MethodGet)
router.HandleFunc("/media/{xid}/stream/", server.stream).Methods(http.MethodGet)
router.HandleFunc("/media/{xid}/stream/{segName:index[0-9]+.ts}", server.stream).Methods(http.MethodGet)
router.HandleFunc("/media/{xid}/stream/{segName:[a-z0-9]+.ts}", server.stream).Methods(http.MethodGet)
subRouter := router.PathPrefix("/").Subrouter()
subRouter.Use(server.authorize)