sfu

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2021 License: MIT Imports: 25 Imported by: 2 modules, 1 package

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 Config added in v1.5.0

type Config struct {
	Global global   `mapstructure:"global"`
	Log    logConf  `mapstructure:"log"`
	Nats   natsConf `mapstructure:"nats"`
	isfu.Config
}

Config for sfu node

func (*Config) Load added in v1.10.0

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

type SFU added in v1.9.0

type SFU struct {
	ion.Node

	runner.Service
	// contains filtered or unexported fields
}

SFU represents a sfu node

func New added in v1.10.0

func New() *SFU

New create a sfu node instance

func NewSFU added in v1.9.0

func NewSFU() *SFU

NewSFU create a sfu node instance

func (*SFU) Close added in v1.9.0

func (s *SFU) Close()

Close all

func (*SFU) ConfigBase added in v1.10.0

func (s *SFU) ConfigBase() runner.ConfigBase

func (*SFU) Load added in v1.10.0

func (s *SFU) Load(confFile string) error

Load load config file

func (*SFU) Start added in v1.9.0

func (s *SFU) Start(conf Config) error

Start sfu node

func (*SFU) StartGRPC added in v1.10.0

func (s *SFU) StartGRPC(registrar grpc.ServiceRegistrar) error

StartGRPC start with grpc.ServiceRegistrar

type SFUService added in v1.10.0

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

func NewSFUService added in v1.10.0

func NewSFUService(conf ion_sfu.Config) *SFUService

func (*SFUService) BroadcastTrackEvent added in v1.10.0

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

func (*SFUService) Close added in v1.10.0

func (s *SFUService) Close()

func (*SFUService) RegisterService added in v1.10.0

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

func (*SFUService) Signal added in v1.10.0

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