Rewrite multipart source

This commit is contained in:
Alexey Khit
2023-08-19 15:47:46 +03:00
parent 4509198eef
commit 1f447ef73c
3 changed files with 230 additions and 289 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ func handleHTTP(url string) (core.Producer, error) {
return mjpeg.NewClient(res), nil
case ct == "multipart/x-mixed-replace":
return multipart.NewClient(res)
return multipart.Open(res.Body)
case ct == "application/vnd.apple.mpegurl" || ext == "m3u8":
return hls.OpenURL(req.URL, res.Body)