unit

package
v1.18.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package unit contains the unit definition.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Payload added in v1.15.2

type Payload interface {
	// contains filtered or unexported methods
}

Payload is a codec-dependent payload.

type PayloadAC3 added in v1.15.2

type PayloadAC3 [][]byte

PayloadAC3 is the payload of an AC3 track.

type PayloadAV1 added in v1.15.2

type PayloadAV1 [][]byte

PayloadAV1 is the payload of an AV1 track.

type PayloadG711 added in v1.15.2

type PayloadG711 []byte

PayloadG711 is the payload of a G711 track.

type PayloadH264 added in v1.15.2

type PayloadH264 [][]byte

PayloadH264 is the payload of a H264 track.

type PayloadH265 added in v1.15.2

type PayloadH265 [][]byte

PayloadH265 is the payload of a H265 track.

type PayloadKLV added in v1.15.2

type PayloadKLV []byte

PayloadKLV is the payload of a KLV track.

type PayloadLPCM added in v1.15.2

type PayloadLPCM []byte

PayloadLPCM is the payload of a LPCM track.

type PayloadMJPEG added in v1.15.2

type PayloadMJPEG []byte

PayloadMJPEG is the payload of a MJPEG track.

type PayloadMPEG1Audio added in v1.15.2

type PayloadMPEG1Audio [][]byte

PayloadMPEG1Audio is the payload of a MPEG-1/2 Audio track.

type PayloadMPEG1Video added in v1.15.2

type PayloadMPEG1Video []byte

PayloadMPEG1Video is the payload of a MPEG-1/2 Video track.

type PayloadMPEG4Audio added in v1.15.2

type PayloadMPEG4Audio [][]byte

PayloadMPEG4Audio is the payload of a MPEG-4 Audio track.

type PayloadMPEG4AudioLATM added in v1.15.2

type PayloadMPEG4AudioLATM []byte

PayloadMPEG4AudioLATM is the payload of a MPEG-4 Audio LATM track.

type PayloadMPEG4Video added in v1.15.2

type PayloadMPEG4Video []byte

PayloadMPEG4Video is the payload of a MPEG-4 Video track.

type PayloadOpus added in v1.15.2

type PayloadOpus [][]byte

PayloadOpus is the payload of a Opus track.

type PayloadVP8 added in v1.15.2

type PayloadVP8 []byte

PayloadVP8 is the payload of a VP8 track.

type PayloadVP9 added in v1.15.2

type PayloadVP9 []byte

PayloadVP9 is the payload of a VP9 track.

type Unit

type Unit struct {
	// relative time
	PTS int64

	// absolute time
	NTP time.Time

	// RTP packets
	RTPPackets []*rtp.Packet

	// codec-dependent payload
	Payload Payload
}

Unit is an atomic unit of a stream.

func (Unit) NilPayload added in v1.15.2

func (u Unit) NilPayload() bool

NilPayload checks whether the payload is nil.

Jump to

Keyboard shortcuts

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