feat(video): move from ts to fMP4 segments

This commit is contained in:
Gabe Kangas
2026-03-24 11:14:36 -07:00
parent 73206ddf27
commit 9c290fa0d7
22 changed files with 130 additions and 50 deletions
+2 -1
View File
@@ -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
}