summaryrefslogtreecommitdiff
path: root/vendor/github.com/pion/rtp/depacketizer.go
blob: c66d2e30cba7efc7f19c0781491d2a4683ead725 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package rtp

// Depacketizer depacketizes a RTP payload, removing any RTP specific data from the payload
type Depacketizer interface {
	Unmarshal(packet []byte) ([]byte, error)
	// Checks if the packet is at the beginning of a partition.  This
	// should return false if the result could not be determined, in
	// which case the caller will detect timestamp discontinuities.
	IsPartitionHead(payload []byte) bool
	// Checks if the packet is at the end of a partition.  This should
	// return false if the result could not be determined.
	IsPartitionTail(marker bool, payload []byte) bool
}