session GetWebRTCPeer.

This commit is contained in:
Miroslav Šedivý
2021-02-05 18:14:45 +01:00
parent 761f6d8a8f
commit c81bca9b2f
3 changed files with 18 additions and 24 deletions

View File

@ -1,10 +1,6 @@
package types
import (
"net/http"
"github.com/pion/webrtc/v3"
)
import "net/http"
type MemberProfile struct {
Secret string `json:"secret,omitempty"`
@ -61,8 +57,7 @@ type Session interface {
// webrtc
SetWebRTCPeer(webrtc_peer WebRTCPeer)
SetWebRTCConnected(connected bool)
SignalAnswer(sdp string) error
SignalCandidate(candidate webrtc.ICECandidateInit) error
GetWebRTCPeer() WebRTCPeer
}
type SessionManager interface {