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

View File

@@ -18,6 +18,7 @@ import (
pion "github.com/pion/webrtc/v3"
)
// Deprecated: should be rewritten to core.Connection
type Client struct {
core.Listener
@@ -110,8 +111,10 @@ func (c *Client) Connect() error {
var sendOffer sync.WaitGroup
c.conn = webrtc.NewConn(pc)
c.conn.Desc = "Roborock"
c.conn.FormatName = "roborock"
c.conn.Mode = core.ModeActiveProducer
c.conn.Protocol = "mqtt"
c.conn.URL = c.url
c.conn.Listen(func(msg any) {
switch msg := msg.(type) {
case *pion.ICECandidate: