RTP Payload Types
[RTP Layer]

Collaboration diagram for RTP Payload Types:

Functions

int rtp_announce_pt (rtp_session *rtp_sess, unsigned pt, rtp_media_type media_type)
int rtp_dynpt_reg (rtp_session *rtp_sess, unsigned pt, char *mime)
rtp_pt * rtp_get_pt_info (rtp_session *rtp_sess, unsigned pt)

Detailed Description

RTP Payload Types

Function Documentation

int rtp_announce_pt ( rtp_session *  rtp_sess,
unsigned  pt,
rtp_media_type  media_type 
)

Creates and registers a new payload type for a session and appends it to the announced formats list.

Parameters:
rtp_sess The session owning the payload type array where to register the new payload type.
pt The id to assign to the payload type
media_type The type of media for the given payload type.
Returns:
RTP_OK if everything was ok, RTP_ERROR otherwise

Definition at line 402 of file rtp_payload_type.c.

int rtp_dynpt_reg ( rtp_session *  rtp_sess,
unsigned  pt,
char *  mime 
)

Registers a MIME type for the given payload type id (a payload type must already be registered at the given ID)

Parameters:
rtp_sess The session owning the payload type array where to look up the given ID.
pt The id to look up
mime The MIME type to register
Returns:
RTP_OK if everything was ok, RTP_ERROR otherwise

Definition at line 377 of file rtp_payload_type.c.

rtp_pt* rtp_get_pt_info ( rtp_session *  rtp_sess,
unsigned  pt 
)

Returns the payload type informations for the given ID

Parameters:
rtp_sess The session owning the payload type array where to look up the given ID.
pt The id to look up
Returns:
The requested payload type informations or NULL if no payload type is registered at the given ID.

Definition at line 361 of file rtp_payload_type.c.


Generated on Tue Feb 3 03:10:03 2009 for libnemesi by  doxygen 1.5.4