Documentation ¶
Index ¶
- Constants
- func LogMediaStats(s *ipc.MediaStats, logger logger.Logger)
- type LocalMediaStatsGatherer
- type LocalStatsUpdater
- type MediaStatsReporter
- type MediaTrackStatGatherer
- type Monitor
- func (m *Monitor) AcceptIngress(info *livekit.IngressInfo) bool
- func (m *Monitor) CanAccept() bool
- func (m *Monitor) CanAcceptIngress(info *livekit.IngressInfo) bool
- func (m *Monitor) GetCPULoad() float64
- func (m *Monitor) IngressEnded(info *livekit.IngressInfo)
- func (m *Monitor) IngressStarted(info *livekit.IngressInfo)
- func (m *Monitor) Shutdown()
- func (m *Monitor) Start(conf *config.Config) error
- func (m *Monitor) Stop()
- func (m *Monitor) UpdateCostConfig(cpuCostConfig *config.CPUCostConfig) error
Constants ¶
View Source
const ( InputAudio = "input.audio" InputVideo = "input.video" OutputAudio = "output.audio" OutputVideo = "output.video" )
Variables ¶
This section is empty.
Functions ¶
func LogMediaStats ¶ added in v1.3.0
func LogMediaStats(s *ipc.MediaStats, logger logger.Logger)
Types ¶
type LocalMediaStatsGatherer ¶ added in v1.3.0
type LocalMediaStatsGatherer struct {
// contains filtered or unexported fields
}
func NewLocalMediaStatsGatherer ¶ added in v1.3.0
func NewLocalMediaStatsGatherer() *LocalMediaStatsGatherer
func (*LocalMediaStatsGatherer) GatherStats ¶ added in v1.3.0
func (l *LocalMediaStatsGatherer) GatherStats(ctx context.Context) (*ipc.MediaStats, error)
func (*LocalMediaStatsGatherer) RegisterTrackStats ¶ added in v1.3.0
func (l *LocalMediaStatsGatherer) RegisterTrackStats(path string) *MediaTrackStatGatherer
type LocalStatsUpdater ¶ added in v1.3.0
func (*LocalStatsUpdater) UpdateMediaStats ¶ added in v1.3.0
func (a *LocalStatsUpdater) UpdateMediaStats(ctx context.Context, s *ipc.MediaStats) error
type MediaStatsReporter ¶ added in v1.1.0
type MediaStatsReporter struct {
// contains filtered or unexported fields
}
func NewMediaStats ¶ added in v1.1.0
func NewMediaStats(statsUpdater types.MediaStatsUpdater) *MediaStatsReporter
func (*MediaStatsReporter) Close ¶ added in v1.1.0
func (m *MediaStatsReporter) Close()
func (*MediaStatsReporter) RegisterGatherer ¶ added in v1.3.0
func (m *MediaStatsReporter) RegisterGatherer(g types.MediaStatGatherer)
func (*MediaStatsReporter) UpdateStats ¶ added in v1.3.0
func (m *MediaStatsReporter) UpdateStats(ctx context.Context)
type MediaTrackStatGatherer ¶ added in v1.3.0
type MediaTrackStatGatherer struct {
// contains filtered or unexported fields
}
func NewMediaTrackStatGatherer ¶ added in v1.3.0
func NewMediaTrackStatGatherer(path string) *MediaTrackStatGatherer
func (*MediaTrackStatGatherer) MediaReceived ¶ added in v1.3.0
func (g *MediaTrackStatGatherer) MediaReceived(size int64)
func (*MediaTrackStatGatherer) PLI ¶ added in v1.4.0
func (g *MediaTrackStatGatherer) PLI()
func (*MediaTrackStatGatherer) PacketLost ¶ added in v1.3.0
func (g *MediaTrackStatGatherer) PacketLost(count int64)
func (*MediaTrackStatGatherer) Path ¶ added in v1.3.0
func (g *MediaTrackStatGatherer) Path() string
func (*MediaTrackStatGatherer) UpdateStats ¶ added in v1.3.0
func (g *MediaTrackStatGatherer) UpdateStats() *ipc.TrackStats
type Monitor ¶
type Monitor struct {
// contains filtered or unexported fields
}
func NewMonitor ¶
func NewMonitor() *Monitor
func (*Monitor) AcceptIngress ¶
func (m *Monitor) AcceptIngress(info *livekit.IngressInfo) bool
func (*Monitor) CanAcceptIngress ¶
func (m *Monitor) CanAcceptIngress(info *livekit.IngressInfo) bool
func (*Monitor) GetCPULoad ¶
func (*Monitor) IngressEnded ¶
func (m *Monitor) IngressEnded(info *livekit.IngressInfo)
func (*Monitor) IngressStarted ¶
func (m *Monitor) IngressStarted(info *livekit.IngressInfo)
func (*Monitor) Shutdown ¶ added in v1.1.0
func (m *Monitor) Shutdown()
Server is shutting down, but may stay up for some time for draining
func (*Monitor) UpdateCostConfig ¶ added in v1.2.2
func (m *Monitor) UpdateCostConfig(cpuCostConfig *config.CPUCostConfig) error
Click to show internal directories.
Click to hide internal directories.