/*
* RFC3550.txt
* RTP: A Transport Protocol for Real-Time Applications
*
* The RTP header has the following format:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|V=2|P|X| CC |M| PT | sequence number |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| timestamp |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| synchronization source (SSRC) identifier |
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
| contributing source (CSRC) identifiers |
| .... |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
* version (V): 2 bits
* padding (P): 1 bit
* extension (X): 1 bit
* CSRC count (CC): 4 bits
* marker (M): 1 bit
* payload type (PT): 7 bits
* sequence number: 16 bits
* timestamp: 32 bits
* SSRC: 32 bits
* CSRC list: 0 to 15 items, 32 bits each
*/
RTP协议格式 备忘
最新推荐文章于 2023-08-19 12:07:39 发布