rtmp

package
v0.0.0-...-ad8d7c7 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: AGPL-3.0 Imports: 21 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

View Source
const (
	FTL_MTU      uint16 = 1392
	FTL_VIDEO_PT uint8  = 96
	FTL_AUDIO_PT uint8  = 97

	BANDWIDTH_LIMIT int = 8000 * 1000
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Source

type Source struct {

	// Listen address of the RTMP server in the ip:port format
	Address string
	// contains filtered or unexported fields
}

func New

func New(address string) *Source

func (*Source) Listen

func (s *Source) Listen(ctx context.Context)

func (*Source) SetControl

func (s *Source) SetControl(ctrl *control.Control)

func (*Source) SetLogger

func (s *Source) SetLogger(log logrus.FieldLogger)

Jump to

Keyboard shortcuts

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