Commit Graph

9 Commits

Author SHA1 Message Date
Max Hawkins
0ef6602adb Add Header() method to Packet
Simplifies the API. Unmarshal can now return one Packet value instead
of both a packet and a header.

Relates to #119
2018-12-04 14:46:33 -05:00
Woodrow Douglass
d18e2ec4bd Fix incorrect serialization of RTCP headers
The header length field for RTCP messages should be
the length of the packet in 32 bit words, -1
Relates to #245
2018-11-29 12:30:34 -08:00
Sean DuBois
ed267f1cdb RTCP: Add util/GetPadding
Simple helper function to do 32bit padding calculation

Relates to #119
2018-09-20 21:19:15 -07:00
Max Hawkins
29e1b66215 RTCP: add more packet layout documentation
Relates to #119
2018-09-20 21:19:15 -07:00
Max Hawkins
dc3383ed31 RTCP: remove Header version
Version must always equal 2, per the spec

Relates to #119
2018-09-20 21:19:15 -07:00
Max Hawkins
426b2a1fbc RTCP: Add BYE packet type
Relates to #119
2018-09-20 21:19:15 -07:00
Max Hawkins
178fb16977 RTCP: parse whole packet in Unmarshal
Previously we parsed the header separately

Relates to #119
2018-09-20 21:19:15 -07:00
Max Hawkins
10e59e7ab8 Add String() to SDES item type
Relates to #119
2018-09-20 21:19:15 -07:00
Max Hawkins
485b4776b5 RTCP: add SDES packet type
Relates to #119
2018-09-20 21:19:15 -07:00