downstream

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UpStreamerManager = &downStreamerManager{streams: sync.Map{}}

Functions

func Launch

func Launch(name string, downStreamer DownStreamer, duration time.Duration) error

func Stop

func Stop(name string) error

Types

type DownStreamer

type DownStreamer interface {
	Pull(context.Context) (bool, error)
}

type FlvDownStreamer

type FlvDownStreamer struct {
	Url    string
	Writer io.Writer
	// contains filtered or unexported fields
}

func NewFlvDownStreamer

func NewFlvDownStreamer(url string, writer io.Writer) *FlvDownStreamer

func (*FlvDownStreamer) AfterReadHeader

func (d *FlvDownStreamer) AfterReadHeader(data []av.CodecData) error

func (*FlvDownStreamer) LogStatistic

func (d *FlvDownStreamer) LogStatistic(done chan bool)

func (*FlvDownStreamer) Pull

func (d *FlvDownStreamer) Pull(ctx context.Context) (bool, error)

Jump to

Keyboard shortcuts

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