BIG rewrite stream info

This commit is contained in:
Alex X
2024-06-15 16:46:03 +03:00
parent ecfe802065
commit 96504e2fb0
88 changed files with 1043 additions and 854 deletions
@@ -49,10 +49,12 @@ func (c *Client) Stop() (err error) {
}
func (c *Client) MarshalJSON() ([]byte, error) {
info := &core.Info{
Type: "Exec active consumer",
Medias: c.medias,
Send: c.send,
info := &core.Connection{
ID: core.ID(c),
FormatName: "exec",
Protocol: "pipe",
Medias: c.medias,
Send: c.send,
}
if c.sender != nil {
info.Senders = []*core.Sender{c.sender}
+1
View File
@@ -6,6 +6,7 @@ import (
"github.com/AlexxIT/go2rtc/pkg/core"
)
// Deprecated: should be rewritten to core.Connection
type Client struct {
cmd *exec.Cmd