Fix webrtc ontrack panic
This commit is contained in:
+3
-1
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user