streamproc

package
v0.15.5 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Path

type Path interface {
	OnSPFrame(int, gortsplib.StreamType, []byte)
}

Path is implemented by path.path.

type StreamProc

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

StreamProc is a stream processor, an intermediate layer between a source and a path.

func New

func New(path Path, tracksLen int) *StreamProc

New allocates a StreamProc.

func (*StreamProc) OnFrame

func (sp *StreamProc) OnFrame(trackID int, streamType gortsplib.StreamType, payload []byte)

OnFrame processes a frame.

func (*StreamProc) TrackInfos

func (sp *StreamProc) TrackInfos() []TrackInfo

TrackInfos returns infos about the tracks of the stream.

type TrackInfo

type TrackInfo struct {
	LastSequenceNumber uint16
	LastTimeRTP        uint32
	LastTimeNTP        int64
}

TrackInfo contains infos about a track.

Jump to

Keyboard shortcuts

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