2020-10-22 16:54:50 +02:00
|
|
|
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-12 22:13:55 +01:00
|
|
|
|
2021-02-05 17:57:33 +01:00
|
|
|
SetVideoID(videoID string) error
|
2021-02-12 22:13:55 +01:00
|
|
|
SendCursorPosition(x, y int) error
|
|
|
|
SendCursorImage(cur *CursorImage) error
|
2021-02-02 20:43:33 +01:00
|
|
|
|
2020-11-25 18:41:40 +01:00
|
|
|
Destroy() error
|
|
|
|
}
|
|
|
|
|
2020-10-22 16:54:50 +02:00
|
|
|
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)
|
2020-10-22 16:54:50 +02:00
|
|
|
}
|