diff --git a/pkg/peer.go b/pkg/peer.go index 81ae1f3cf..9dab0f6af 100644 --- a/pkg/peer.go +++ b/pkg/peer.go @@ -123,6 +123,12 @@ func (p *Peer) Join(sid string, sdp webrtc.SessionDescription) (*webrtc.SessionD } }) + pc.OnICEConnectionStateChange(func(s webrtc.ICEConnectionState) { + if p.OnICEConnectionStateChange != nil { + p.OnICEConnectionStateChange(s) + } + }) + return &answer, nil }