From c7128897b8227ab243091ed200c0d82e12c4b8a4 Mon Sep 17 00:00:00 2001 From: Alexey Khit Date: Sun, 21 Aug 2022 09:27:33 +0300 Subject: [PATCH] Fix webrtc ontrack panic --- pkg/webrtc/conn.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/webrtc/conn.go b/pkg/webrtc/conn.go index 5446ec44..0bae50d7 100644 --- a/pkg/webrtc/conn.go +++ b/pkg/webrtc/conn.go @@ -1,6 +1,7 @@ package webrtc import ( + "fmt" "github.com/AlexxIT/go2rtc/pkg/streamer" "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) {