Documentation
¶
Index ¶
Constants ¶
View Source
const (
STREAM_IMAGES = "images"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Endpoint ¶
type Endpoint struct { ParticipantId string PeerConnection *webrtc.PeerConnection ICEConnectionState string OnICEConnectionStateChange func(newConnectionState string, oldConnectionState string) }
func NewEndpoint ¶
func (*Endpoint) AcceptSDPOfferAnswer ¶
func (*Endpoint) DoSignaling ¶
func (e *Endpoint) DoSignaling(endpointManager *EndpointManager) (*SignalingResult, error)
type EndpointManager ¶
type EndpointManager struct { Endpoints map[string]*Endpoint //key: ParticipantId WebrtcApi *webrtc.API Inventa *inventa.Inventa // contains filtered or unexported fields }
func NewEndpointManager ¶
func NewEndpointManager(dockerHostIp string, udpPort int, inventaObj *inventa.Inventa) *EndpointManager
func (*EndpointManager) EnsureEndpoint ¶
func (m *EndpointManager) EnsureEndpoint(participantId string) *Endpoint
func (*EndpointManager) Run ¶
func (m *EndpointManager) Run(waitGroup *sync.WaitGroup)
type SignalingResult ¶
type SignalingResult struct {
SDP string `json:"sdp"`
}
Click to show internal directories.
Click to hide internal directories.