RTP:Real-time Transport Protocol.

1.相关spec?
  ---RFC1889,RFC3550,RFC3551.3550代替1889.
2.RTP Header Fields
 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 |
 | .... |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
前12字节在所有的RTP packet中都有。各个字段的含义:
version(V):2 bit,这个字段定义RTP的版本。在RFC1889和RFC3550的值都定义为2。(The value 1 is used by the first draft version of RTP and the value 0 is used by the protocol
initially implemented in the "vat" audio tool.)
padding(P):1 bit,填充。如果被设置,则RTP包包含一个或多个填充字段。最后一个字节记录填充字段的长度。
extension(X):1 bit.扩展
CSRC count(CC):4 bit.
marker(M):1 bit.
payload type(PT):7 bit.确定RTP payload的类型。RFC3551定义了payload type和payload format的对应关系。接收方必须忽略payload type不被识别的包。payload type分为static payload type和dynamic payload type.
sequence number:16 bit.RFC3551的tables 4和5定义了static payload type的值和用途,其中96-127为dynamic 所用.
timestamp:32 bit.
SSRC:32 bit.