server

package
v1.8.4 Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAVPServer added in v1.6.2

func NewAVPServer(conf avp.Config, elems map[string]avp.ElementFun) pb.AVPServer

Types

type AVP

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

AVP represents an avp instance

func NewAVP

func NewAVP(c avp.Config, elems map[string]avp.ElementFun) *AVP

NewAVP creates a new avp instance

func (*AVP) Process

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

Process starts a process for a track.

type SFU

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

SFU client

func NewSFU

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

NewSFU intializes a new SFU client

func (*SFU) GetTransport

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

GetTransport returns a webrtc transport for a session

func (*SFU) OnClose

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