Top | ![]() |
![]() |
![]() |
![]() |
FsRtpHeaderExtension * fs_rtp_header_extension_new (guint id
,FsStreamDirection direction
,const gchar *uri
);
Creates a new FsRtpHeaderExtension
FsRtpHeaderExtension *
fs_rtp_header_extension_copy (FsRtpHeaderExtension *extension
);
Copies a FsRtpHeaderExtension
[skip]
void
fs_rtp_header_extension_destroy (FsRtpHeaderExtension *extension
);
Frees the passed FsRtpHeaderExtension
[skip]
gboolean fs_rtp_header_extension_are_equal (FsRtpHeaderExtension *extension1
,FsRtpHeaderExtension *extension2
);
Compares two FsRtpHeaderExtension structures
GList *
fs_rtp_header_extension_list_copy (GList *extensions
);
Does a deep copy of a GList of FsRtpHeaderExtension
extensions |
a GList of FsRtpHeaderExtension. |
[element-type FsRtpHeaderExtension][transfer none] |
void
fs_rtp_header_extension_list_destroy (GList *extensions
);
Frees the passed GList of FsRtpHeaderExtension
[skip]
GList * fs_rtp_header_extension_list_from_keyfile (const gchar *filename
,FsMediaType media_type
,GError **error
);
Reads the content of a GKeyFile of the following format into a GList of FsRtpHeaderExtension structures.
The groups have a format "rtp-hdrext:audio:XXX" or "rtp-hdrext:video:XXX" where XXX is a unique string (per media type).
The valid keys are:
Example:
1 2 3 4 5 6 7 8 |
[rtp-hdrext:audio:a] id=1 uri=urn:ietf:params:rtp-hdrext:toffset [rtp-hdrext:audio:abc] id=3 uri=urn:ietf:params:rtp-hdrext:ntp-64 direction=receive |
a
GList of FsRtpHeaderExtension that must be freed with
fs_rtp_header_extension_list_destroy()
.
[element-type FsRtpHeaderExtension][transfer full]
typedef struct { guint id; FsStreamDirection direction; gchar *uri; } FsRtpHeaderExtension;
Defines a RTP header extension with its negotiated identifier, direction
and URI. They should only be created with fs_rtp_header_extension_new()
.
guint |
The identifier of the RTP header extension |
|
FsStreamDirection |
the direction in which this extension can be used |
|
gchar * |
The URI that defines this extension |