neko/internal/types/webrtc.go
2021-02-12 22:13:55 +01:00

25 lines
484 B
Go

package types
import "github.com/pion/webrtc/v3"
type WebRTCPeer interface {
SignalAnswer(sdp string) error
SignalCandidate(candidate webrtc.ICECandidateInit) error
SetVideoID(videoID string) error
SendCursorPosition(x, y int) error
SendCursorImage(cur *CursorImage) error
Destroy() error
}
type WebRTCManager interface {
Start()
Shutdown() error
ICELite() bool
ICEServers() []string
CreatePeer(session Session, videoID string) (*webrtc.SessionDescription, error)
}