mediamtx/internal/unit/unit.go

21 lines
392 B
Go
Raw Normal View History

// Package unit contains the Unit definition.
package unit
import (
"time"
"github.com/pion/rtp"
)
// Unit is the elementary data unit routed across the server.
type Unit interface {
// returns RTP packets contained into the unit.
GetRTPPackets() []*rtp.Packet
// returns the NTP timestamp of the unit.
GetNTP() time.Time
2023-08-26 16:54:28 +00:00
// returns the PTS of the unit.
GetPTS() time.Duration
}