mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
22 lines
406 B
Go
22 lines
406 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
|
|
|
|
Destroy() error
|
|
}
|
|
|
|
type WebRTCManager interface {
|
|
Start()
|
|
Shutdown() error
|
|
|
|
ICELite() bool
|
|
ICEServers() []string
|
|
|
|
CreatePeer(session Session, videoID string) (*webrtc.SessionDescription, error)
|
|
}
|