Skip to content
File

Blob: firmware/vendor/str0m/docs/packet.md

Markdown27 lines

Packetizers

This subcrate contains packetizers which is codec specific conversion to/from RTP packets. Each codec typically have a specific way it should be packaged into RTP, and such packaging is specified in an RFC.

The implementations are originally from webrtc-rs and copied under the MIT/APACHE 2.0 license (see license files). The copy was from git ref c30b5c1db4668bb1314f32e0121270e1bb1dac7a.

Changes made:

  1. Remove Bytes crate.
  2. Make tests inline to codec file.
  3. Remove Result type alias.
  4. Remove Box use.
  5. Make depacketize take a &mut Vec output to allow control of allocation.
  6. Rename Payloader -> Packetizer
  7. Rename XXXPacket -> XXXDepacketizer