feat(video): move from ts to fMP4 segments
This commit is contained in:
@@ -18,7 +18,8 @@ import (
|
||||
// HandleHLSRequest will manage all requests to HLS content.
|
||||
func HandleHLSRequest(w http.ResponseWriter, r *http.Request) {
|
||||
// Sanity check to limit requests to HLS file types.
|
||||
if filepath.Ext(r.URL.Path) != ".m3u8" && filepath.Ext(r.URL.Path) != ".ts" {
|
||||
ext := filepath.Ext(r.URL.Path)
|
||||
if ext != ".m3u8" && ext != ".m4s" && ext != ".mp4" {
|
||||
w.WriteHeader(http.StatusNotFound)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user