endpoint

package
v0.0.0-...-d9d33aa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

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 NewEndpoint(participantId string) *Endpoint

func (*Endpoint) AcceptSDPOfferAnswer

func (e *Endpoint) AcceptSDPOfferAnswer(sdpOfferAnswer string) error

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL