golanggohlsrtmpwebrtcmedia-serverobs-studiortcprtmp-proxyrtmp-serverrtprtsprtsp-proxyrtsp-relayrtsp-serversrtstreamingwebrtc-proxy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
392 B
20 lines
392 B
// Package unit contains the Unit definition. |
|
package unit |
|
|
|
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 |
|
|
|
// returns the PTS of the unit. |
|
GetPTS() time.Duration |
|
}
|
|
|