Top | ![]() |
![]() |
![]() |
![]() |
GstRTSPSessionMedia * | gst_rtsp_session_media_new () |
gboolean | gst_rtsp_session_media_matches () |
GstRTSPMedia * | gst_rtsp_session_media_get_media () |
GstClockTime | gst_rtsp_session_media_get_base_time () |
gchar * | gst_rtsp_session_media_get_rtpinfo () |
gboolean | gst_rtsp_session_media_set_state () |
GstRTSPState | gst_rtsp_session_media_get_rtsp_state () |
void | gst_rtsp_session_media_set_rtsp_state () |
GstRTSPStreamTransport * | gst_rtsp_session_media_get_transport () |
GstRTSPStreamTransport * | gst_rtsp_session_media_set_transport () |
gboolean | gst_rtsp_session_media_alloc_channels () |
The GstRTSPSessionMedia object manages a GstRTSPMedia with a given path.
With gst_rtsp_session_media_get_transport()
and
gst_rtsp_session_media_set_transport()
the transports of a GstRTSPStream of
the managed GstRTSPMedia can be retrieved and configured.
Use gst_rtsp_session_media_set_state()
to control the media state and
transports.
Last reviewed on 2013-07-16 (1.0.0)
GstRTSPSessionMedia * gst_rtsp_session_media_new (const gchar *path
,GstRTSPMedia *media
);
Create a new GstRTSPSessionMedia that manages the streams
in media
for path
. media
should be prepared.
Ownership is taken of media
.
gboolean gst_rtsp_session_media_matches (GstRTSPSessionMedia *media
,const gchar *path
,gint *matched
);
Check if the path of media
matches path
. It path
matches, the amount of
matched characters is returned in matched
.
GstRTSPMedia *
gst_rtsp_session_media_get_media (GstRTSPSessionMedia *media
);
Get the GstRTSPMedia that was used when constructing media
GstClockTime
gst_rtsp_session_media_get_base_time (GstRTSPSessionMedia *media
);
Get the base_time of the GstRTSPMedia in media
gchar *
gst_rtsp_session_media_get_rtpinfo (GstRTSPSessionMedia *media
);
Retrieve the RTP-Info header string for all streams in media
with configured transports.
The RTP-Info as a string or
NULL
when no RTP-Info could be generated, g_free()
after usage.
[transfer full][nullable]
gboolean gst_rtsp_session_media_set_state (GstRTSPSessionMedia *media
,GstState state
);
Tell the media object media
to change to state
.
GstRTSPState
gst_rtsp_session_media_get_rtsp_state (GstRTSPSessionMedia *media
);
Get the current RTSP state of media
.
void gst_rtsp_session_media_set_rtsp_state (GstRTSPSessionMedia *media
,GstRTSPState state
);
Set the RTSP state of media
to state
.
GstRTSPStreamTransport * gst_rtsp_session_media_get_transport (GstRTSPSessionMedia *media
,guint idx
);
Get a previously created GstRTSPStreamTransport for the stream at idx
.
a GstRTSPStreamTransport that is valid until the
session of media
is unreffed.
[transfer none]
GstRTSPStreamTransport * gst_rtsp_session_media_set_transport (GstRTSPSessionMedia *media
,GstRTSPStream *stream
,GstRTSPTransport *tr
);
Configure the transport for stream
to tr
in media
.
gboolean gst_rtsp_session_media_alloc_channels (GstRTSPSessionMedia *media
,GstRTSPRange *range
);
Fill range
with the next available min and max channels for
interleaved transport.