2023-03-10 11:44:59 +00:00
|
|
|
package formatprocessor
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
|
|
|
|
"github.com/pion/rtp"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Unit is the elementary data unit routed across the server.
|
|
|
|
type Unit interface {
|
2023-05-14 12:18:03 +00:00
|
|
|
// returns RTP packets contained into the unit.
|
2023-03-10 11:44:59 +00:00
|
|
|
GetRTPPackets() []*rtp.Packet
|
2023-05-14 12:18:03 +00:00
|
|
|
|
|
|
|
// returns the NTP timestamp of the unit.
|
2023-03-10 11:44:59 +00:00
|
|
|
GetNTP() time.Time
|
|
|
|
}
|