mirror of
https://github.com/bluenviron/mediamtx.git
synced 2026-01-26 05:19:15 -08:00
rename Data into Unit (#1556)
This commit is contained in:
parent
25dc252342
commit
e8bdad8a1e
23 changed files with 240 additions and 237 deletions
13
internal/formatprocessor/unit.go
Normal file
13
internal/formatprocessor/unit.go
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
package formatprocessor
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/pion/rtp"
|
||||
)
|
||||
|
||||
// Unit is the elementary data unit routed across the server.
|
||||
type Unit interface {
|
||||
GetRTPPackets() []*rtp.Packet
|
||||
GetNTP() time.Time
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue