avp

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2021 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AVP added in v1.9.0

type AVP struct {
	ion.Node
	// contains filtered or unexported fields
}

AVP represents avp node

func NewAVP added in v1.9.0

func NewAVP(nid string) *AVP

NewAVP create a avp node instance

func (*AVP) Close added in v1.9.0

func (a *AVP) Close()

Close all

func (*AVP) Start added in v1.9.0

func (a *AVP) Start(conf Config) error

Start avp node

type AVPProcesser added in v1.9.0

type AVPProcesser struct {
	// contains filtered or unexported fields
}

AVPProcesser represents an avp instance

func NewAVPProcesser added in v1.9.0

func NewAVPProcesser(c avp.Config, elems map[string]avp.ElementFun) *AVPProcesser

NewAVPProcesser creates a new avp instance

func (*AVPProcesser) Process added in v1.9.0

func (a *AVPProcesser) Process(ctx context.Context, addr, pid, sid, tid, eid string, config []byte) error

Process starts a process for a track.

type Config added in v1.5.0

type Config struct {
	Global      global      `mapstructure:"global"`
	Nats        natsConf    `mapstructure:"nats"`
	Node        nodeConf    `mapstructure:"node"`
	Element     elementConf `mapstructure:"element"`
	iavp.Config `mapstructure:"avp"`
}

Config for avp node

type SFU added in v1.9.0

type SFU struct {
	// contains filtered or unexported fields
}

SFU client

func NewSFU added in v1.9.0

func NewSFU(addr string, config avp.Config) (*SFU, error)

NewSFU intializes a new SFU client

func (*SFU) GetTransport added in v1.9.0

func (s *SFU) GetTransport(sid string) (*avp.WebRTCTransport, error)

GetTransport returns a webrtc transport for a session

func (*SFU) OnClose added in v1.9.0

func (s *SFU) OnClose(f func())

OnClose handler called when sfu client is closed

Jump to

Keyboard shortcuts

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