split webrtc ConnectPeer function.

This commit is contained in:
Miroslav Šedivý
2021-02-02 19:21:48 +01:00
parent 91f1727723
commit ace7b254a3
4 changed files with 98 additions and 66 deletions

View File

@ -1,5 +1,7 @@
package types
import "github.com/pion/webrtc/v3"
type WebRTCPeer interface {
SignalAnswer(sdp string) error
Destroy() error
@ -8,5 +10,9 @@ type WebRTCPeer interface {
type WebRTCManager interface {
Start()
Shutdown() error
CreatePeer(session Session) (string, bool, []string, error)
ICELite() bool
ICEServers() []string
CreatePeer(session Session) (*webrtc.SessionDescription, error)
}