mirror of
https://github.com/bluenviron/mediamtx
synced 2024-12-13 02:04:58 +00:00
17 lines
299 B
Go
17 lines
299 B
Go
package formatprocessor
|
|
|
|
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
|
|
}
|