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

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