flv

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

View Source
const (
	FlagsVideo = 0b001
	FlagsAudio = 0b100
)
View Source
const (
	Signature = "FLV"

	TagAudio = 8
	TagVideo = 9
	TagData  = 18

	CodecAAC = 10
	CodecAVC = 7
)

Variables

This section is empty.

Functions

func EncodeTag added in v1.8.0

func EncodeTag(tagType byte, timeMS uint32, payload []byte) []byte

func TimeToRTP

func TimeToRTP(timeMS uint32, clockRate uint32) uint32

Types

type Consumer added in v1.8.0

type Consumer struct {
	core.SuperConsumer
	// contains filtered or unexported fields
}

func NewConsumer added in v1.8.0

func NewConsumer() *Consumer

func (*Consumer) AddTrack added in v1.8.0

func (c *Consumer) AddTrack(media *core.Media, codec *core.Codec, track *core.Receiver) error

func (*Consumer) Stop added in v1.8.0

func (c *Consumer) Stop() error

func (*Consumer) WriteTo added in v1.8.0

func (c *Consumer) WriteTo(wr io.Writer) (int64, error)

type Muxer added in v1.8.0

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

func (*Muxer) GetInit added in v1.8.0

func (m *Muxer) GetInit() []byte

func (*Muxer) GetPayloader added in v1.8.0

func (m *Muxer) GetPayloader(codec *core.Codec) func(packet *rtp.Packet) []byte

type Producer

type Producer struct {
	core.SuperProducer
	// contains filtered or unexported fields
}

func Open

func Open(rd io.Reader) (*Producer, error)

func (*Producer) GetTrack

func (c *Producer) GetTrack(media *core.Media, codec *core.Codec) (*core.Receiver, error)

func (*Producer) Start

func (c *Producer) Start() error

func (*Producer) Stop

func (c *Producer) Stop() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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