mirror of
https://github.com/aler9/rtsp-simple-server
synced 2025-10-05 07:36:57 +08:00
rename Data into Unit (#1556)
This commit is contained in:
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
|
||||
}
|
Reference in New Issue
Block a user