error.go 1.0 KB

123456789101112131415161718192021
  1. package rtp
  2. import (
  3. "errors"
  4. )
  5. var (
  6. errHeaderSizeInsufficient = errors.New("RTP header size insufficient")
  7. errHeaderSizeInsufficientForExtension = errors.New("RTP header size insufficient for extension")
  8. errTooSmall = errors.New("buffer too small")
  9. errHeaderExtensionsNotEnabled = errors.New("h.Extension not enabled")
  10. errHeaderExtensionNotFound = errors.New("extension not found")
  11. errRFC8285OneByteHeaderIDRange = errors.New("header extension id must be between 1 and 14 for RFC 5285 one byte extensions")
  12. errRFC8285OneByteHeaderSize = errors.New("header extension payload must be 16bytes or less for RFC 5285 one byte extensions")
  13. errRFC8285TwoByteHeaderIDRange = errors.New("header extension id must be between 1 and 255 for RFC 5285 two byte extensions")
  14. errRFC8285TwoByteHeaderSize = errors.New("header extension payload must be 255bytes or less for RFC 5285 two byte extensions")
  15. errRFC3550HeaderIDRange = errors.New("header extension id must be 0 for non-RFC 5285 extensions")
  16. )