| Top |
| enum | GstRTSPTransMode |
| enum | GstRTSPProfile |
| struct | GstRTSPRange |
| enum | GstRTSPLowerTrans |
| struct | GstRTSPTransport |
Provides helper functions to deal with RTSP transport strings.
Last reviewed on 2007-07-25 (0.10.14)
GstRTSPResult
gst_rtsp_transport_new (GstRTSPTransport **transport);
Allocate a new initialized GstRTSPTransport. Use gst_rtsp_transport_free()
after usage.
GstRTSPResult
gst_rtsp_transport_init (GstRTSPTransport *transport);
Initialize transport
so that it can be used.
GstRTSPResult gst_rtsp_transport_parse (const gchar *str,GstRTSPTransport *transport);
Parse the RTSP transport string str
into transport
.
gchar *
gst_rtsp_transport_as_text (GstRTSPTransport *transport);
Convert transport
into a string that can be used to signal the transport in
an RTSP SETUP response.
GstRTSPResult gst_rtsp_transport_get_mime (GstRTSPTransMode trans,const gchar **mime);
Get the mime type of the transport mode trans
. This mime type is typically
used to generate GstCaps on buffers.
GstRTSPResult gst_rtsp_transport_get_manager (GstRTSPTransMode trans,const gchar **manager,guint option);
Get the GstElement that can handle the buffers transported over trans
.
It is possible that there are several managers available, use option
to
selected one.
manager
will contain an element name or NULL when no manager is
needed/available for trans
.
GstRTSPResult
gst_rtsp_transport_free (GstRTSPTransport *transport);
Free the memory used by transport
.
The different transport methods.
struct GstRTSPTransport {
GstRTSPTransMode trans;
GstRTSPProfile profile;
GstRTSPLowerTrans lower_transport;
gchar *destination;
gchar *source;
guint layers;
gboolean mode_play;
gboolean mode_record;
gboolean append;
GstRTSPRange interleaved;
/* multicast specific */
guint ttl;
/* UDP specific */
GstRTSPRange port;
GstRTSPRange client_port;
GstRTSPRange server_port;
/* RTP specific */
guint ssrc;
};
A structure holding the RTSP transport values.
GstRTSPTransMode |
the transport mode |
|
GstRTSPProfile |
the tansport profile |
|
GstRTSPLowerTrans |
the lower transport |
|
gchar * |
the destination ip/hostname |
|
gchar * |
the source ip/hostname |
|
guint |
the number of layers |
|
gboolean |
if play mode was selected |
|
gboolean |
if record mode was selected |
|
gboolean |
is append mode was selected |
|
GstRTSPRange |
the interleave range |
|
guint |
the time to live for multicast UDP |
|
GstRTSPRange |
the port pair for multicast sessions |
|
GstRTSPRange |
the client port pair for receiving data |
|
GstRTSPRange |
the server port pair for receiving data |
|
guint |
the ssrc that the sender/receiver will use |