How do calculate the SDP size in message body?
Posted: 26 Aug 2011 07:37
It is a example from http://tools.ietf.org/html/rfc2326#page-5:
bla.length() have returned 350. Why is? What is a byte i can't see?
Content-Length of this message is 376, but ...RTSP/1.0 200 OK
CSeq: 312
Date: 23 Jan 1997 15:35:06 GMT
Content-Type: application/sdp
Content-Length: 376
v=0
o=mhandley 2890844526 2890842807 IN IP4 126.16.64.4
s=SDP Seminar
i=A Seminar on the session description protocol
u=http://www.cs.ucl.ac.uk/staff/M.Handley/sdp.03.ps
e=mjh@isi.edu (Mark Handley)
c=IN IP4 224.2.17.12/127
t=2873397496 2873404696
a=recvonly
m=audio 3456 RTP/AVP 0
m=video 2232 RTP/AVP 31
m=whiteboard 32416 UDP WB
a=orient:portrait
Code: Select all
String bla = "v=0\no=mhandley 2890844526 2890842807 IN IP4 126.16.64.4\n" +
"s=SDP Seminar\ni=A Seminar on the session description protocol\nu=http://www.cs.ucl.ac.uk/staff/M.Handley/sdp.03.ps\n"+
"e=mjh@isi.edu (Mark Handley)\nc=IN IP4 224.2.17.12/127\nt=2873397496 2873404696\na=recvonly\nm=audio 3456 RTP/AVP 0\n"+
"m=video 2232 RTP/AVP 31\nm=whiteboard 32416 UDP WB\na=orient:portrait\n"