HP-UX Multimedia Streaming Protocols (MSP) Programmer's Guide
Range Header.....................................................................................................53
RTP-Info Header.................................................................................................55
Transport Header................................................................................................57
RTSP URL APIs........................................................................................................60
RTSP Connection Option APIs................................................................................61
RTSP Call Order Sequence.................................................................................................63
SDP Library.........................................................................................................................67
SDP APIs.......................................................................................................................69
Parsing the Buffer and Filling Up the SDP Structure....................................................69
Return Values...........................................................................................................69
Generating an SDP Packet from the SDP Structure......................................................69
Return Values...........................................................................................................70
Obtaining or Setting SDP Structure Members..............................................................70
Return Values...........................................................................................................73
Obtaining or Adding the Structure Members for Media Descriptions.........................74
Return Values...........................................................................................................75
Initializing the SDP Structure and Allocating Space....................................................75
Return Values...........................................................................................................76
Freeing the Space Allocated for the SDP Structure.......................................................76
SDP Call Order Sequence...................................................................................................76
Creating an SDP Packet.................................................................................................76
Parsing an SDP Packet...................................................................................................78
3 Troubleshooting MSP................................................................................................................81
Troubleshooting RTP..........................................................................................................81
Troubleshooting RTSP........................................................................................................82
Troubleshooting SDP..........................................................................................................83
The sdp_create_buf API................................................................................................83
The sdp_get API............................................................................................................84
4 Sample Programs.....................................................................................................................85
RTP Sample Program..........................................................................................................85
The sender.c Program....................................................................................................85
The recver.c Program.....................................................................................................88
Make File.......................................................................................................................92
Compiling the Sample RTP Program............................................................................92
RTSP Sample Program........................................................................................................92
Compiling the Sample RTSP Program........................................................................104
SDP Sample Program........................................................................................................104
Sample Output.............................................................................................................106
A The librtsp Summary...............................................................................................................107
4 Table of Contents