Rewrite exec backchannel

This commit is contained in:
Alex X
2025-04-21 20:08:16 +03:00
parent 5666943559
commit d0c3cb066c
5 changed files with 104 additions and 94 deletions

View File

@@ -19,9 +19,9 @@ import (
"github.com/AlexxIT/go2rtc/internal/streams"
"github.com/AlexxIT/go2rtc/pkg/core"
"github.com/AlexxIT/go2rtc/pkg/magic"
"github.com/AlexxIT/go2rtc/pkg/pcm"
pkg "github.com/AlexxIT/go2rtc/pkg/rtsp"
"github.com/AlexxIT/go2rtc/pkg/shell"
"github.com/AlexxIT/go2rtc/pkg/stdin"
"github.com/rs/zerolog"
)
@@ -86,7 +86,7 @@ func execHandle(rawURL string) (prod core.Producer, err error) {
}
if query.Get("backchannel") == "1" {
return stdin.NewClient(cmd)
return pcm.NewBackchannel(cmd, query.Get("audio"))
}
if path == "" {