depacketizer.go 590 B

12345678910111213
  1. package rtp
  2. // Depacketizer depacketizes a RTP payload, removing any RTP specific data from the payload
  3. type Depacketizer interface {
  4. Unmarshal(packet []byte) ([]byte, error)
  5. // Checks if the packet is at the beginning of a partition. This
  6. // should return false if the result could not be determined, in
  7. // which case the caller will detect timestamp discontinuities.
  8. IsPartitionHead(payload []byte) bool
  9. // Checks if the packet is at the end of a partition. This should
  10. // return false if the result could not be determined.
  11. IsPartitionTail(marker bool, payload []byte) bool
  12. }