sourcertmp

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parent

type Parent interface {
	Log(logger.Level, string, ...interface{})
	OnExtSourceSetReady(gortsplib.Tracks, []*client.TrackStartingPoint)
	OnExtSourceSetNotReady()
	OnFrame(int, gortsplib.StreamType, []byte)
}

Parent is implemeneted by path.Path.

type Source

type Source struct {
	// contains filtered or unexported fields
}

Source is a RTMP source.

func New

func New(ur string,
	readTimeout time.Duration,
	wg *sync.WaitGroup,
	stats *stats.Stats,
	parent Parent) *Source

New allocates a Source.

func (*Source) Close

func (s *Source) Close()

Close closes a Source.

func (*Source) IsExtSource

func (s *Source) IsExtSource()

IsExtSource implements path.extSource.

func (*Source) IsSource

func (s *Source) IsSource()

IsSource implements path.source.

Jump to

Keyboard shortcuts

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