mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-20 02:00:05 -08:00
parent
6ea299fc56
commit
1688e5d2e5
39 changed files with 1928 additions and 951 deletions
|
|
@ -5,6 +5,7 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/bluenviron/gortsplib/v3/pkg/formats"
|
||||
"github.com/pion/rtp"
|
||||
|
||||
"github.com/aler9/mediamtx/internal/logger"
|
||||
)
|
||||
|
|
@ -17,6 +18,9 @@ const (
|
|||
type Processor interface {
|
||||
// cleans and normalizes a data unit.
|
||||
Process(Unit, bool) error
|
||||
|
||||
// returns an unit for the given RTP packet.
|
||||
UnitForRTPPacket(pkt *rtp.Packet, ntp time.Time) Unit
|
||||
}
|
||||
|
||||
// New allocates a Processor.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue