neko/internal/types/webrtc.go

22 lines
406 B
Go
Raw Normal View History

package types
2021-02-02 19:21:48 +01:00
import "github.com/pion/webrtc/v3"
2020-11-25 18:41:40 +01:00
type WebRTCPeer interface {
SignalAnswer(sdp string) error
2021-02-02 20:43:33 +01:00
SignalCandidate(candidate webrtc.ICECandidateInit) error
2021-02-05 17:57:33 +01:00
SetVideoID(videoID string) error
2021-02-02 20:43:33 +01:00
2020-11-25 18:41:40 +01:00
Destroy() error
}
type WebRTCManager interface {
Start()
Shutdown() error
2021-02-02 19:21:48 +01:00
ICELite() bool
ICEServers() []string
2021-02-07 17:07:55 +01:00
CreatePeer(session Session, videoID string) (*webrtc.SessionDescription, error)
}