add customized WebRTC send functions.

This commit is contained in:
Miroslav Šedivý
2021-02-12 22:13:55 +01:00
parent c54703d7d7
commit af3a28274d
4 changed files with 79 additions and 10 deletions

View File

@ -5,9 +5,11 @@ import "github.com/pion/webrtc/v3"
type WebRTCPeer interface {
SignalAnswer(sdp string) error
SignalCandidate(candidate webrtc.ICECandidateInit) error
SetVideoID(videoID string) error
Send(data []byte) error
SetVideoID(videoID string) error
SendCursorPosition(x, y int) error
SendCursorImage(cur *CursorImage) error
Destroy() error
}