avp

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2021 License: MIT Imports: 20 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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