Rewrite magic client

This commit is contained in:
Alexey Khit
2023-08-16 20:13:42 +03:00
parent c3ba8db660
commit 4a82eb3503
4 changed files with 10 additions and 53 deletions
-9
View File
@@ -9,7 +9,6 @@ import (
"github.com/AlexxIT/go2rtc/internal/streams"
"github.com/AlexxIT/go2rtc/pkg/core"
"github.com/AlexxIT/go2rtc/pkg/flv"
"github.com/AlexxIT/go2rtc/pkg/magic"
"github.com/AlexxIT/go2rtc/pkg/mjpeg"
"github.com/AlexxIT/go2rtc/pkg/multipart"
@@ -52,14 +51,6 @@ func handleHTTP(url string) (core.Producer, error) {
case "multipart/x-mixed-replace":
return multipart.NewClient(res)
case "video/x-flv":
client, err := flv.Open(res.Body)
if err != nil {
return nil, err
}
client.URL = url
return client, nil
default: // "video/mpeg":
}