Fix webrtc ontrack panic

This commit is contained in:
Alexey Khit
2022-08-21 09:27:33 +03:00
parent 07def5ba04
commit c7128897b8
+3 -1
View File
@@ -1,6 +1,7 @@
package webrtc package webrtc
import ( import (
"fmt"
"github.com/AlexxIT/go2rtc/pkg/streamer" "github.com/AlexxIT/go2rtc/pkg/streamer"
"github.com/pion/webrtc/v3" "github.com/pion/webrtc/v3"
) )
@@ -57,7 +58,8 @@ func (c *Conn) Init() {
} }
} }
panic("something wrong") fmt.Printf("TODO: webrtc ontrack %+v\n", remote)
fmt.Printf("TODO: webrtc ontrack %#v\n", remote)
}) })
c.Conn.OnConnectionStateChange(func(state webrtc.PeerConnectionState) { c.Conn.OnConnectionStateChange(func(state webrtc.PeerConnectionState) {