depacketizer.go 692 B

12345678910111213141516
  1. // SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
  2. // SPDX-License-Identifier: MIT
  3. package rtp
  4. // Depacketizer depacketizes a RTP payload, removing any RTP specific data from the payload
  5. type Depacketizer interface {
  6. Unmarshal(packet []byte) ([]byte, error)
  7. // Checks if the packet is at the beginning of a partition. This
  8. // should return false if the result could not be determined, in
  9. // which case the caller will detect timestamp discontinuities.
  10. IsPartitionHead(payload []byte) bool
  11. // Checks if the packet is at the end of a partition. This should
  12. // return false if the result could not be determined.
  13. IsPartitionTail(marker bool, payload []byte) bool
  14. }