sfu

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	config.Common
	isfu.Config
}

Config for sfu node

func (*Config) Load

func (c *Config) Load(file string) error

type PubIRFBuilder

type PubIRFBuilder struct{}

PubIRFBuilder is a factory to create ion_sfu.InterceptorRegistryFactoryBuilder

func (PubIRFBuilder) Build

type SFU

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

SFU represents a sfu node

func NewSFU

func NewSFU(id string) *SFU

NewSFU create a sfu node instance

func (*SFU) Close

func (s *SFU) Close()

Close all

func (*SFU) Start

func (s *SFU) Start(conf config.Common, ss *SFUService) error

Start sfu node

type SFUService

type SFUService struct {
	rtc.UnimplementedRTCServer
	// contains filtered or unexported fields
}

func NewSFUService

func NewSFUService(sfu *ion_sfu.SFU) *SFUService

func (*SFUService) BroadcastTrackEvent

func (s *SFUService) BroadcastTrackEvent(uid string, tracks []*rtc.TrackInfo, state rtc.TrackEvent_State)

func (*SFUService) Close

func (s *SFUService) Close()

func (*SFUService) RegisterService

func (s *SFUService) RegisterService(registrar grpc.ServiceRegistrar)

func (*SFUService) Signal

func (s *SFUService) Signal(sig rtc.RTC_SignalServer) error

Jump to

Keyboard shortcuts

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