mp4

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ESDS

func ESDS(conf []byte) *mp4f.FDummy

func FTYP

func FTYP() []byte

func MOOV

func MOOV() *mp4io.Movie

func TRAK

func TRAK(id int) *mp4io.Track

Types

type Consumer

type Consumer struct {
	streamer.Element

	Medias     []*streamer.Media
	UserAgent  string
	RemoteAddr string
	// contains filtered or unexported fields
}

func (*Consumer) AddTrack

func (c *Consumer) AddTrack(media *streamer.Media, track *streamer.Track) *streamer.Track

func (*Consumer) GetMedias

func (c *Consumer) GetMedias() []*streamer.Media

func (*Consumer) Init

func (c *Consumer) Init() ([]byte, error)

func (*Consumer) MarshalJSON

func (c *Consumer) MarshalJSON() ([]byte, error)

func (*Consumer) MimeType

func (c *Consumer) MimeType() string

func (*Consumer) Start

func (c *Consumer) Start()

type Muxer

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

func (*Muxer) GetInit

func (m *Muxer) GetInit(codecs []*streamer.Codec) ([]byte, error)

func (*Muxer) Marshal

func (m *Muxer) Marshal(trackID byte, packet *rtp.Packet) []byte

func (*Muxer) MimeType

func (m *Muxer) MimeType(codecs []*streamer.Codec) string

func (*Muxer) Reset

func (m *Muxer) Reset()

type Segment

type Segment struct {
	streamer.Element

	Medias     []*streamer.Media
	UserAgent  string
	RemoteAddr string

	MimeType     string
	OnlyKeyframe bool
	// contains filtered or unexported fields
}

func (*Segment) AddTrack

func (c *Segment) AddTrack(media *streamer.Media, track *streamer.Track) *streamer.Track

func (*Segment) GetMedias

func (c *Segment) GetMedias() []*streamer.Media

func (*Segment) MarshalJSON

func (c *Segment) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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