Initial release including wifi display based on gst-rtsp-server-1.4.1
[platform/upstream/gstreamer.git] / docs / libs / html / GstRTSPStream.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <title>GStreamer RTSP Server Reference Manual: GstRTSPStream</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7 <link rel="home" href="index.html" title="GStreamer RTSP Server Reference Manual">
8 <link rel="up" href="ch01.html" title="">
9 <link rel="prev" href="GstRTSPMedia.html" title="GstRTSPMedia">
10 <link rel="next" href="GstRTSPSessionPool.html" title="GstRTSPSessionPool">
11 <meta name="generator" content="GTK-Doc V1.21 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
13 </head>
14 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
16 <td width="100%" align="left" class="shortcuts">
17 <a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
18                   <a href="#GstRTSPStream.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
19                   <a href="#GstRTSPStream.object-hierarchy" class="shortcut">Object Hierarchy</a></span>
20 </td>
21 <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
22 <td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
23 <td><a accesskey="p" href="GstRTSPMedia.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
24 <td><a accesskey="n" href="GstRTSPSessionPool.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
25 </tr></table>
26 <div class="refentry">
27 <a name="GstRTSPStream"></a><div class="titlepage"></div>
28 <div class="refnamediv"><table width="100%"><tr>
29 <td valign="top">
30 <h2><span class="refentrytitle"><a name="GstRTSPStream.top_of_page"></a>GstRTSPStream</span></h2>
31 <p>GstRTSPStream — A media stream</p>
32 </td>
33 <td class="gallery_image" valign="top" align="right"></td>
34 </tr></table></div>
35 <div class="refsect1">
36 <a name="GstRTSPStream.functions"></a><h2>Functions</h2>
37 <div class="informaltable"><table width="100%" border="0">
38 <colgroup>
39 <col width="150px" class="functions_return">
40 <col class="functions_name">
41 </colgroup>
42 <tbody>
43 <tr>
44 <td class="function_type">
45 <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="returnvalue">GstRTSPStream</span></a> *
46 </td>
47 <td class="function_name">
48 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-new" title="gst_rtsp_stream_new ()">gst_rtsp_stream_new</a> <span class="c_punctuation">()</span>
49 </td>
50 </tr>
51 <tr>
52 <td class="function_type">
53 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
54 </td>
55 <td class="function_name">
56 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-get-index" title="gst_rtsp_stream_get_index ()">gst_rtsp_stream_get_index</a> <span class="c_punctuation">()</span>
57 </td>
58 </tr>
59 <tr>
60 <td class="function_type">
61 <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstPad.html"><span class="returnvalue">GstPad</span></a> *
62 </td>
63 <td class="function_name">
64 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-get-srcpad" title="gst_rtsp_stream_get_srcpad ()">gst_rtsp_stream_get_srcpad</a> <span class="c_punctuation">()</span>
65 </td>
66 </tr>
67 <tr>
68 <td class="function_type">
69 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
70 </td>
71 <td class="function_name">
72 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-get-control" title="gst_rtsp_stream_get_control ()">gst_rtsp_stream_get_control</a> <span class="c_punctuation">()</span>
73 </td>
74 </tr>
75 <tr>
76 <td class="function_type">
77 <span class="returnvalue">void</span>
78 </td>
79 <td class="function_name">
80 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-set-control" title="gst_rtsp_stream_set_control ()">gst_rtsp_stream_set_control</a> <span class="c_punctuation">()</span>
81 </td>
82 </tr>
83 <tr>
84 <td class="function_type">
85 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
86 </td>
87 <td class="function_name">
88 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-has-control" title="gst_rtsp_stream_has_control ()">gst_rtsp_stream_has_control</a> <span class="c_punctuation">()</span>
89 </td>
90 </tr>
91 <tr>
92 <td class="function_type">
93 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
94 </td>
95 <td class="function_name">
96 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-get-mtu" title="gst_rtsp_stream_get_mtu ()">gst_rtsp_stream_get_mtu</a> <span class="c_punctuation">()</span>
97 </td>
98 </tr>
99 <tr>
100 <td class="function_type">
101 <span class="returnvalue">void</span>
102 </td>
103 <td class="function_name">
104 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-set-mtu" title="gst_rtsp_stream_set_mtu ()">gst_rtsp_stream_set_mtu</a> <span class="c_punctuation">()</span>
105 </td>
106 </tr>
107 <tr>
108 <td class="function_type">
109 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
110 </td>
111 <td class="function_name">
112 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-get-dscp-qos" title="gst_rtsp_stream_get_dscp_qos ()">gst_rtsp_stream_get_dscp_qos</a> <span class="c_punctuation">()</span>
113 </td>
114 </tr>
115 <tr>
116 <td class="function_type">
117 <span class="returnvalue">void</span>
118 </td>
119 <td class="function_name">
120 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-set-dscp-qos" title="gst_rtsp_stream_set_dscp_qos ()">gst_rtsp_stream_set_dscp_qos</a> <span class="c_punctuation">()</span>
121 </td>
122 </tr>
123 <tr>
124 <td class="function_type">
125 <span class="returnvalue">void</span>
126 </td>
127 <td class="function_name">
128 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-set-profiles" title="gst_rtsp_stream_set_profiles ()">gst_rtsp_stream_set_profiles</a> <span class="c_punctuation">()</span>
129 </td>
130 </tr>
131 <tr>
132 <td class="function_type">
133 <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstrtsptransport.html#GstRTSPProfile"><span class="returnvalue">GstRTSPProfile</span></a>
134 </td>
135 <td class="function_name">
136 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-get-profiles" title="gst_rtsp_stream_get_profiles ()">gst_rtsp_stream_get_profiles</a> <span class="c_punctuation">()</span>
137 </td>
138 </tr>
139 <tr>
140 <td class="function_type">
141 <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstrtsptransport.html#GstRTSPLowerTrans"><span class="returnvalue">GstRTSPLowerTrans</span></a>
142 </td>
143 <td class="function_name">
144 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-get-protocols" title="gst_rtsp_stream_get_protocols ()">gst_rtsp_stream_get_protocols</a> <span class="c_punctuation">()</span>
145 </td>
146 </tr>
147 <tr>
148 <td class="function_type">
149 <span class="returnvalue">void</span>
150 </td>
151 <td class="function_name">
152 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-set-protocols" title="gst_rtsp_stream_set_protocols ()">gst_rtsp_stream_set_protocols</a> <span class="c_punctuation">()</span>
153 </td>
154 </tr>
155 <tr>
156 <td class="function_type">
157 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
158 </td>
159 <td class="function_name">
160 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-is-transport-supported" title="gst_rtsp_stream_is_transport_supported ()">gst_rtsp_stream_is_transport_supported</a> <span class="c_punctuation">()</span>
161 </td>
162 </tr>
163 <tr>
164 <td class="function_type">
165 <a class="link" href="gst-rtsp-server-GstRTSPAddressPool.html#GstRTSPAddressPool" title="struct GstRTSPAddressPool"><span class="returnvalue">GstRTSPAddressPool</span></a> *
166 </td>
167 <td class="function_name">
168 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-get-address-pool" title="gst_rtsp_stream_get_address_pool ()">gst_rtsp_stream_get_address_pool</a> <span class="c_punctuation">()</span>
169 </td>
170 </tr>
171 <tr>
172 <td class="function_type">
173 <span class="returnvalue">void</span>
174 </td>
175 <td class="function_name">
176 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-set-address-pool" title="gst_rtsp_stream_set_address_pool ()">gst_rtsp_stream_set_address_pool</a> <span class="c_punctuation">()</span>
177 </td>
178 </tr>
179 <tr>
180 <td class="function_type">
181 <a class="link" href="gst-rtsp-server-GstRTSPAddressPool.html#GstRTSPAddress" title="struct GstRTSPAddress"><span class="returnvalue">GstRTSPAddress</span></a> *
182 </td>
183 <td class="function_name">
184 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-reserve-address" title="gst_rtsp_stream_reserve_address ()">gst_rtsp_stream_reserve_address</a> <span class="c_punctuation">()</span>
185 </td>
186 </tr>
187 <tr>
188 <td class="function_type">
189 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
190 </td>
191 <td class="function_name">
192 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-join-bin" title="gst_rtsp_stream_join_bin ()">gst_rtsp_stream_join_bin</a> <span class="c_punctuation">()</span>
193 </td>
194 </tr>
195 <tr>
196 <td class="function_type">
197 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
198 </td>
199 <td class="function_name">
200 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-leave-bin" title="gst_rtsp_stream_leave_bin ()">gst_rtsp_stream_leave_bin</a> <span class="c_punctuation">()</span>
201 </td>
202 </tr>
203 <tr>
204 <td class="function_type">
205 <span class="returnvalue">void</span>
206 </td>
207 <td class="function_name">
208 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-get-server-port" title="gst_rtsp_stream_get_server_port ()">gst_rtsp_stream_get_server_port</a> <span class="c_punctuation">()</span>
209 </td>
210 </tr>
211 <tr>
212 <td class="function_type">
213 <a class="link" href="gst-rtsp-server-GstRTSPAddressPool.html#GstRTSPAddress" title="struct GstRTSPAddress"><span class="returnvalue">GstRTSPAddress</span></a> *
214 </td>
215 <td class="function_name">
216 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-get-multicast-address" title="gst_rtsp_stream_get_multicast_address ()">gst_rtsp_stream_get_multicast_address</a> <span class="c_punctuation">()</span>
217 </td>
218 </tr>
219 <tr>
220 <td class="function_type">
221 <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="returnvalue">GObject</span></a> *
222 </td>
223 <td class="function_name">
224 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-get-rtpsession" title="gst_rtsp_stream_get_rtpsession ()">gst_rtsp_stream_get_rtpsession</a> <span class="c_punctuation">()</span>
225 </td>
226 </tr>
227 <tr>
228 <td class="function_type">
229 <span class="returnvalue">void</span>
230 </td>
231 <td class="function_name">
232 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-get-ssrc" title="gst_rtsp_stream_get_ssrc ()">gst_rtsp_stream_get_ssrc</a> <span class="c_punctuation">()</span>
233 </td>
234 </tr>
235 <tr>
236 <td class="function_type">
237 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
238 </td>
239 <td class="function_name">
240 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-get-rtpinfo" title="gst_rtsp_stream_get_rtpinfo ()">gst_rtsp_stream_get_rtpinfo</a> <span class="c_punctuation">()</span>
241 </td>
242 </tr>
243 <tr>
244 <td class="function_type">
245 <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstCaps.html"><span class="returnvalue">GstCaps</span></a> *
246 </td>
247 <td class="function_name">
248 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-get-caps" title="gst_rtsp_stream_get_caps ()">gst_rtsp_stream_get_caps</a> <span class="c_punctuation">()</span>
249 </td>
250 </tr>
251 <tr>
252 <td class="function_type">
253 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
254 </td>
255 <td class="function_name">
256 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-get-pt" title="gst_rtsp_stream_get_pt ()">gst_rtsp_stream_get_pt</a> <span class="c_punctuation">()</span>
257 </td>
258 </tr>
259 <tr>
260 <td class="function_type">
261 <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstPad.html#GstFlowReturn"><span class="returnvalue">GstFlowReturn</span></a>
262 </td>
263 <td class="function_name">
264 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-recv-rtcp" title="gst_rtsp_stream_recv_rtcp ()">gst_rtsp_stream_recv_rtcp</a> <span class="c_punctuation">()</span>
265 </td>
266 </tr>
267 <tr>
268 <td class="function_type">
269 <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstPad.html#GstFlowReturn"><span class="returnvalue">GstFlowReturn</span></a>
270 </td>
271 <td class="function_name">
272 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-recv-rtp" title="gst_rtsp_stream_recv_rtp ()">gst_rtsp_stream_recv_rtp</a> <span class="c_punctuation">()</span>
273 </td>
274 </tr>
275 <tr>
276 <td class="function_type">
277 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
278 </td>
279 <td class="function_name">
280 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-add-transport" title="gst_rtsp_stream_add_transport ()">gst_rtsp_stream_add_transport</a> <span class="c_punctuation">()</span>
281 </td>
282 </tr>
283 <tr>
284 <td class="function_type">
285 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
286 </td>
287 <td class="function_name">
288 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-remove-transport" title="gst_rtsp_stream_remove_transport ()">gst_rtsp_stream_remove_transport</a> <span class="c_punctuation">()</span>
289 </td>
290 </tr>
291 <tr>
292 <td class="function_type">
293 <a href="http://library.gnome.org/devel/gio/unstable/GSocket.html"><span class="returnvalue">GSocket</span></a> *
294 </td>
295 <td class="function_name">
296 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-get-rtp-socket" title="gst_rtsp_stream_get_rtp_socket ()">gst_rtsp_stream_get_rtp_socket</a> <span class="c_punctuation">()</span>
297 </td>
298 </tr>
299 <tr>
300 <td class="function_type">
301 <a href="http://library.gnome.org/devel/gio/unstable/GSocket.html"><span class="returnvalue">GSocket</span></a> *
302 </td>
303 <td class="function_name">
304 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-get-rtcp-socket" title="gst_rtsp_stream_get_rtcp_socket ()">gst_rtsp_stream_get_rtcp_socket</a> <span class="c_punctuation">()</span>
305 </td>
306 </tr>
307 <tr>
308 <td class="function_type">
309 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
310 </td>
311 <td class="function_name">
312 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-set-blocked" title="gst_rtsp_stream_set_blocked ()">gst_rtsp_stream_set_blocked</a> <span class="c_punctuation">()</span>
313 </td>
314 </tr>
315 <tr>
316 <td class="function_type">
317 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
318 </td>
319 <td class="function_name">
320 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-is-blocking" title="gst_rtsp_stream_is_blocking ()">gst_rtsp_stream_is_blocking</a> <span class="c_punctuation">()</span>
321 </td>
322 </tr>
323 <tr>
324 <td class="function_type">
325 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
326 </td>
327 <td class="function_name">
328 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-update-crypto" title="gst_rtsp_stream_update_crypto ()">gst_rtsp_stream_update_crypto</a> <span class="c_punctuation">()</span>
329 </td>
330 </tr>
331 <tr>
332 <td class="function_type">
333 <a class="link" href="GstRTSPSession.html#GstRTSPFilterResult" title="enum GstRTSPFilterResult"><span class="returnvalue">GstRTSPFilterResult</span></a>
334 </td>
335 <td class="function_name">
336 <span class="c_punctuation">(</span><a class="link" href="GstRTSPStream.html#GstRTSPStreamTransportFilterFunc" title="GstRTSPStreamTransportFilterFunc ()">*GstRTSPStreamTransportFilterFunc</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
337 </td>
338 </tr>
339 <tr>
340 <td class="function_type">
341 <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
342 </td>
343 <td class="function_name">
344 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-transport-filter" title="gst_rtsp_stream_transport_filter ()">gst_rtsp_stream_transport_filter</a> <span class="c_punctuation">()</span>
345 </td>
346 </tr>
347 </tbody>
348 </table></div>
349 </div>
350 <div class="refsect1">
351 <a name="GstRTSPStream.other"></a><h2>Types and Values</h2>
352 <div class="informaltable"><table width="100%" border="0">
353 <colgroup>
354 <col width="150px" class="name">
355 <col class="description">
356 </colgroup>
357 <tbody>
358 <tr>
359 <td class="datatype_keyword">struct</td>
360 <td class="function_name"><a class="link" href="GstRTSPStream.html#GstRTSPStream-struct" title="struct GstRTSPStream">GstRTSPStream</a></td>
361 </tr>
362 <tr>
363 <td class="datatype_keyword"> </td>
364 <td class="function_name"><a class="link" href="GstRTSPStream.html#GstRTSPStreamClass" title="GstRTSPStreamClass">GstRTSPStreamClass</a></td>
365 </tr>
366 </tbody>
367 </table></div>
368 </div>
369 <div class="refsect1">
370 <a name="GstRTSPStream.object-hierarchy"></a><h2>Object Hierarchy</h2>
371 <pre class="screen">    <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
372     <span class="lineart">╰──</span> GstRTSPStream
373 </pre>
374 </div>
375 <div class="refsect1">
376 <a name="GstRTSPStream.description"></a><h2>Description</h2>
377 <p>The <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> object manages the data transport for one stream. It
378 is created from a payloader element and a source pad that produce the RTP
379 packets for the stream.</p>
380 <p>With <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-join-bin" title="gst_rtsp_stream_join_bin ()"><code class="function">gst_rtsp_stream_join_bin()</code></a> the streaming elements are added to the bin
381 and rtpbin. <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-leave-bin" title="gst_rtsp_stream_leave_bin ()"><code class="function">gst_rtsp_stream_leave_bin()</code></a> removes the elements again.</p>
382 <p>The <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> will use the configured addresspool, as set with
383 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-set-address-pool" title="gst_rtsp_stream_set_address_pool ()"><code class="function">gst_rtsp_stream_set_address_pool()</code></a>, to allocate multicast addresses for the
384 stream. With <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-get-multicast-address" title="gst_rtsp_stream_get_multicast_address ()"><code class="function">gst_rtsp_stream_get_multicast_address()</code></a> you can get the
385 configured address.</p>
386 <p>With <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-get-server-port" title="gst_rtsp_stream_get_server_port ()"><code class="function">gst_rtsp_stream_get_server_port()</code></a> you can get the port that the server
387 will use to receive RTCP. This is the part that the clients will use to send
388 RTCP to.</p>
389 <p>With <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-add-transport" title="gst_rtsp_stream_add_transport ()"><code class="function">gst_rtsp_stream_add_transport()</code></a> destinations can be added where the
390 stream should be sent to. Use <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-remove-transport" title="gst_rtsp_stream_remove_transport ()"><code class="function">gst_rtsp_stream_remove_transport()</code></a> to remove
391 the destination again.</p>
392 <p>Last reviewed on 2013-07-16 (1.0.0)</p>
393 </div>
394 <div class="refsect1">
395 <a name="GstRTSPStream.functions_details"></a><h2>Functions</h2>
396 <div class="refsect2">
397 <a name="gst-rtsp-stream-new"></a><h3>gst_rtsp_stream_new ()</h3>
398 <pre class="programlisting"><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="returnvalue">GstRTSPStream</span></a> *
399 gst_rtsp_stream_new (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> idx</code></em>,
400                      <em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstElement.html"><span class="type">GstElement</span></a> *payloader</code></em>,
401                      <em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstPad.html"><span class="type">GstPad</span></a> *srcpad</code></em>);</pre>
402 <p>Create a new media stream with index <em class="parameter"><code>idx</code></em>
403  that handles RTP data on
404 <em class="parameter"><code>srcpad</code></em>
405  and has a payloader element <em class="parameter"><code>payloader</code></em>
406 .</p>
407 <div class="refsect3">
408 <a name="id-1.2.8.7.2.5"></a><h4>Parameters</h4>
409 <div class="informaltable"><table width="100%" border="0">
410 <colgroup>
411 <col width="150px" class="parameters_name">
412 <col class="parameters_description">
413 <col width="200px" class="parameters_annotations">
414 </colgroup>
415 <tbody>
416 <tr>
417 <td class="parameter_name"><p>idx</p></td>
418 <td class="parameter_description"><p>an index</p></td>
419 <td class="parameter_annotations"> </td>
420 </tr>
421 <tr>
422 <td class="parameter_name"><p>srcpad</p></td>
423 <td class="parameter_description"><p>a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstPad.html"><span class="type">GstPad</span></a></p></td>
424 <td class="parameter_annotations"> </td>
425 </tr>
426 <tr>
427 <td class="parameter_name"><p>payloader</p></td>
428 <td class="parameter_description"><p>a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstElement.html"><span class="type">GstElement</span></a></p></td>
429 <td class="parameter_annotations"> </td>
430 </tr>
431 </tbody>
432 </table></div>
433 </div>
434 <div class="refsect3">
435 <a name="id-1.2.8.7.2.6"></a><h4>Returns</h4>
436 <p> a new <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a>. </p>
437 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
438 </div>
439 </div>
440 <hr>
441 <div class="refsect2">
442 <a name="gst-rtsp-stream-get-index"></a><h3>gst_rtsp_stream_get_index ()</h3>
443 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
444 gst_rtsp_stream_get_index (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>);</pre>
445 <p>Get the stream index.</p>
446 <p>Return: the stream index.</p>
447 <div class="refsect3">
448 <a name="id-1.2.8.7.3.6"></a><h4>Parameters</h4>
449 <div class="informaltable"><table width="100%" border="0">
450 <colgroup>
451 <col width="150px" class="parameters_name">
452 <col class="parameters_description">
453 <col width="200px" class="parameters_annotations">
454 </colgroup>
455 <tbody><tr>
456 <td class="parameter_name"><p>stream</p></td>
457 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
458 <td class="parameter_annotations"> </td>
459 </tr></tbody>
460 </table></div>
461 </div>
462 </div>
463 <hr>
464 <div class="refsect2">
465 <a name="gst-rtsp-stream-get-srcpad"></a><h3>gst_rtsp_stream_get_srcpad ()</h3>
466 <pre class="programlisting"><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstPad.html"><span class="returnvalue">GstPad</span></a> *
467 gst_rtsp_stream_get_srcpad (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>);</pre>
468 <p>Get the srcpad associated with <em class="parameter"><code>stream</code></em>
469 .</p>
470 <div class="refsect3">
471 <a name="id-1.2.8.7.4.5"></a><h4>Parameters</h4>
472 <div class="informaltable"><table width="100%" border="0">
473 <colgroup>
474 <col width="150px" class="parameters_name">
475 <col class="parameters_description">
476 <col width="200px" class="parameters_annotations">
477 </colgroup>
478 <tbody><tr>
479 <td class="parameter_name"><p>stream</p></td>
480 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
481 <td class="parameter_annotations"> </td>
482 </tr></tbody>
483 </table></div>
484 </div>
485 <div class="refsect3">
486 <a name="id-1.2.8.7.4.6"></a><h4>Returns</h4>
487 <p> the srcpad. Unref after usage. </p>
488 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
489 </div>
490 </div>
491 <hr>
492 <div class="refsect2">
493 <a name="gst-rtsp-stream-get-control"></a><h3>gst_rtsp_stream_get_control ()</h3>
494 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
495 gst_rtsp_stream_get_control (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>);</pre>
496 <p>Get the control string to identify this stream.</p>
497 <div class="refsect3">
498 <a name="id-1.2.8.7.5.5"></a><h4>Parameters</h4>
499 <div class="informaltable"><table width="100%" border="0">
500 <colgroup>
501 <col width="150px" class="parameters_name">
502 <col class="parameters_description">
503 <col width="200px" class="parameters_annotations">
504 </colgroup>
505 <tbody><tr>
506 <td class="parameter_name"><p>stream</p></td>
507 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
508 <td class="parameter_annotations"> </td>
509 </tr></tbody>
510 </table></div>
511 </div>
512 <div class="refsect3">
513 <a name="id-1.2.8.7.5.6"></a><h4>Returns</h4>
514 <p> the control string. <a href="http://library.gnome.org/devel/glib/unstable/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a> after usage. </p>
515 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
516 </div>
517 </div>
518 <hr>
519 <div class="refsect2">
520 <a name="gst-rtsp-stream-set-control"></a><h3>gst_rtsp_stream_set_control ()</h3>
521 <pre class="programlisting"><span class="returnvalue">void</span>
522 gst_rtsp_stream_set_control (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
523                              <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *control</code></em>);</pre>
524 <p>Set the control string in <em class="parameter"><code>stream</code></em>
525 .</p>
526 <div class="refsect3">
527 <a name="id-1.2.8.7.6.5"></a><h4>Parameters</h4>
528 <div class="informaltable"><table width="100%" border="0">
529 <colgroup>
530 <col width="150px" class="parameters_name">
531 <col class="parameters_description">
532 <col width="200px" class="parameters_annotations">
533 </colgroup>
534 <tbody>
535 <tr>
536 <td class="parameter_name"><p>stream</p></td>
537 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
538 <td class="parameter_annotations"> </td>
539 </tr>
540 <tr>
541 <td class="parameter_name"><p>control</p></td>
542 <td class="parameter_description"><p>a control string</p></td>
543 <td class="parameter_annotations"> </td>
544 </tr>
545 </tbody>
546 </table></div>
547 </div>
548 </div>
549 <hr>
550 <div class="refsect2">
551 <a name="gst-rtsp-stream-has-control"></a><h3>gst_rtsp_stream_has_control ()</h3>
552 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
553 gst_rtsp_stream_has_control (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
554                              <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *control</code></em>);</pre>
555 <p>Check if <em class="parameter"><code>stream</code></em>
556  has the control string <em class="parameter"><code>control</code></em>
557 .</p>
558 <div class="refsect3">
559 <a name="id-1.2.8.7.7.5"></a><h4>Parameters</h4>
560 <div class="informaltable"><table width="100%" border="0">
561 <colgroup>
562 <col width="150px" class="parameters_name">
563 <col class="parameters_description">
564 <col width="200px" class="parameters_annotations">
565 </colgroup>
566 <tbody>
567 <tr>
568 <td class="parameter_name"><p>stream</p></td>
569 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
570 <td class="parameter_annotations"> </td>
571 </tr>
572 <tr>
573 <td class="parameter_name"><p>control</p></td>
574 <td class="parameter_description"><p>a control string</p></td>
575 <td class="parameter_annotations"> </td>
576 </tr>
577 </tbody>
578 </table></div>
579 </div>
580 <div class="refsect3">
581 <a name="id-1.2.8.7.7.6"></a><h4>Returns</h4>
582 <p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> is <em class="parameter"><code>stream</code></em>
583 has <em class="parameter"><code>control</code></em>
584 as the control string</p>
585 <p></p>
586 </div>
587 </div>
588 <hr>
589 <div class="refsect2">
590 <a name="gst-rtsp-stream-get-mtu"></a><h3>gst_rtsp_stream_get_mtu ()</h3>
591 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
592 gst_rtsp_stream_get_mtu (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>);</pre>
593 <p>Get the configured MTU in the payloader of <em class="parameter"><code>stream</code></em>
594 .</p>
595 <div class="refsect3">
596 <a name="id-1.2.8.7.8.5"></a><h4>Parameters</h4>
597 <div class="informaltable"><table width="100%" border="0">
598 <colgroup>
599 <col width="150px" class="parameters_name">
600 <col class="parameters_description">
601 <col width="200px" class="parameters_annotations">
602 </colgroup>
603 <tbody><tr>
604 <td class="parameter_name"><p>stream</p></td>
605 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
606 <td class="parameter_annotations"> </td>
607 </tr></tbody>
608 </table></div>
609 </div>
610 <div class="refsect3">
611 <a name="id-1.2.8.7.8.6"></a><h4>Returns</h4>
612 <p> the MTU of the payloader.</p>
613 <p></p>
614 </div>
615 </div>
616 <hr>
617 <div class="refsect2">
618 <a name="gst-rtsp-stream-set-mtu"></a><h3>gst_rtsp_stream_set_mtu ()</h3>
619 <pre class="programlisting"><span class="returnvalue">void</span>
620 gst_rtsp_stream_set_mtu (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
621                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> mtu</code></em>);</pre>
622 <p>Configure the mtu in the payloader of <em class="parameter"><code>stream</code></em>
623  to <em class="parameter"><code>mtu</code></em>
624 .</p>
625 <div class="refsect3">
626 <a name="id-1.2.8.7.9.5"></a><h4>Parameters</h4>
627 <div class="informaltable"><table width="100%" border="0">
628 <colgroup>
629 <col width="150px" class="parameters_name">
630 <col class="parameters_description">
631 <col width="200px" class="parameters_annotations">
632 </colgroup>
633 <tbody>
634 <tr>
635 <td class="parameter_name"><p>stream</p></td>
636 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
637 <td class="parameter_annotations"> </td>
638 </tr>
639 <tr>
640 <td class="parameter_name"><p>mtu</p></td>
641 <td class="parameter_description"><p>a new MTU</p></td>
642 <td class="parameter_annotations"> </td>
643 </tr>
644 </tbody>
645 </table></div>
646 </div>
647 </div>
648 <hr>
649 <div class="refsect2">
650 <a name="gst-rtsp-stream-get-dscp-qos"></a><h3>gst_rtsp_stream_get_dscp_qos ()</h3>
651 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
652 gst_rtsp_stream_get_dscp_qos (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>);</pre>
653 <p>Get the configured DSCP QoS in of the outgoing sockets.</p>
654 <div class="refsect3">
655 <a name="id-1.2.8.7.10.5"></a><h4>Parameters</h4>
656 <div class="informaltable"><table width="100%" border="0">
657 <colgroup>
658 <col width="150px" class="parameters_name">
659 <col class="parameters_description">
660 <col width="200px" class="parameters_annotations">
661 </colgroup>
662 <tbody><tr>
663 <td class="parameter_name"><p>stream</p></td>
664 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
665 <td class="parameter_annotations"> </td>
666 </tr></tbody>
667 </table></div>
668 </div>
669 <div class="refsect3">
670 <a name="id-1.2.8.7.10.6"></a><h4>Returns</h4>
671 <p> the DSCP QoS value of the outgoing sockets, or -1 if disbled.</p>
672 <p></p>
673 </div>
674 </div>
675 <hr>
676 <div class="refsect2">
677 <a name="gst-rtsp-stream-set-dscp-qos"></a><h3>gst_rtsp_stream_set_dscp_qos ()</h3>
678 <pre class="programlisting"><span class="returnvalue">void</span>
679 gst_rtsp_stream_set_dscp_qos (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
680                               <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> dscp_qos</code></em>);</pre>
681 <p>Configure the dscp qos of the outgoing sockets to <em class="parameter"><code>dscp_qos</code></em>
682 .</p>
683 <div class="refsect3">
684 <a name="id-1.2.8.7.11.5"></a><h4>Parameters</h4>
685 <div class="informaltable"><table width="100%" border="0">
686 <colgroup>
687 <col width="150px" class="parameters_name">
688 <col class="parameters_description">
689 <col width="200px" class="parameters_annotations">
690 </colgroup>
691 <tbody>
692 <tr>
693 <td class="parameter_name"><p>stream</p></td>
694 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
695 <td class="parameter_annotations"> </td>
696 </tr>
697 <tr>
698 <td class="parameter_name"><p>dscp_qos</p></td>
699 <td class="parameter_description"><p>a new dscp qos value (0-63, or -1 to disable)</p></td>
700 <td class="parameter_annotations"> </td>
701 </tr>
702 </tbody>
703 </table></div>
704 </div>
705 </div>
706 <hr>
707 <div class="refsect2">
708 <a name="gst-rtsp-stream-set-profiles"></a><h3>gst_rtsp_stream_set_profiles ()</h3>
709 <pre class="programlisting"><span class="returnvalue">void</span>
710 gst_rtsp_stream_set_profiles (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
711                               <em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstrtsptransport.html#GstRTSPProfile"><span class="type">GstRTSPProfile</span></a> profiles</code></em>);</pre>
712 <p>Configure the allowed profiles for <em class="parameter"><code>stream</code></em>
713 .</p>
714 <div class="refsect3">
715 <a name="id-1.2.8.7.12.5"></a><h4>Parameters</h4>
716 <div class="informaltable"><table width="100%" border="0">
717 <colgroup>
718 <col width="150px" class="parameters_name">
719 <col class="parameters_description">
720 <col width="200px" class="parameters_annotations">
721 </colgroup>
722 <tbody>
723 <tr>
724 <td class="parameter_name"><p>stream</p></td>
725 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
726 <td class="parameter_annotations"> </td>
727 </tr>
728 <tr>
729 <td class="parameter_name"><p>profiles</p></td>
730 <td class="parameter_description"><p>the new profiles</p></td>
731 <td class="parameter_annotations"> </td>
732 </tr>
733 </tbody>
734 </table></div>
735 </div>
736 </div>
737 <hr>
738 <div class="refsect2">
739 <a name="gst-rtsp-stream-get-profiles"></a><h3>gst_rtsp_stream_get_profiles ()</h3>
740 <pre class="programlisting"><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstrtsptransport.html#GstRTSPProfile"><span class="returnvalue">GstRTSPProfile</span></a>
741 gst_rtsp_stream_get_profiles (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>);</pre>
742 <p>Get the allowed profiles of <em class="parameter"><code>stream</code></em>
743 .</p>
744 <div class="refsect3">
745 <a name="id-1.2.8.7.13.5"></a><h4>Parameters</h4>
746 <div class="informaltable"><table width="100%" border="0">
747 <colgroup>
748 <col width="150px" class="parameters_name">
749 <col class="parameters_description">
750 <col width="200px" class="parameters_annotations">
751 </colgroup>
752 <tbody><tr>
753 <td class="parameter_name"><p>stream</p></td>
754 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
755 <td class="parameter_annotations"> </td>
756 </tr></tbody>
757 </table></div>
758 </div>
759 <div class="refsect3">
760 <a name="id-1.2.8.7.13.6"></a><h4>Returns</h4>
761 <p> a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstrtsptransport.html#GstRTSPProfile"><span class="type">GstRTSPProfile</span></a></p>
762 <p></p>
763 </div>
764 </div>
765 <hr>
766 <div class="refsect2">
767 <a name="gst-rtsp-stream-get-protocols"></a><h3>gst_rtsp_stream_get_protocols ()</h3>
768 <pre class="programlisting"><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstrtsptransport.html#GstRTSPLowerTrans"><span class="returnvalue">GstRTSPLowerTrans</span></a>
769 gst_rtsp_stream_get_protocols (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>);</pre>
770 <p>Get the allowed protocols of <em class="parameter"><code>stream</code></em>
771 .</p>
772 <div class="refsect3">
773 <a name="id-1.2.8.7.14.5"></a><h4>Parameters</h4>
774 <div class="informaltable"><table width="100%" border="0">
775 <colgroup>
776 <col width="150px" class="parameters_name">
777 <col class="parameters_description">
778 <col width="200px" class="parameters_annotations">
779 </colgroup>
780 <tbody><tr>
781 <td class="parameter_name"><p>stream</p></td>
782 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
783 <td class="parameter_annotations"> </td>
784 </tr></tbody>
785 </table></div>
786 </div>
787 <div class="refsect3">
788 <a name="id-1.2.8.7.14.6"></a><h4>Returns</h4>
789 <p> a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstrtsptransport.html#GstRTSPLowerTrans"><span class="type">GstRTSPLowerTrans</span></a></p>
790 <p></p>
791 </div>
792 </div>
793 <hr>
794 <div class="refsect2">
795 <a name="gst-rtsp-stream-set-protocols"></a><h3>gst_rtsp_stream_set_protocols ()</h3>
796 <pre class="programlisting"><span class="returnvalue">void</span>
797 gst_rtsp_stream_set_protocols (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
798                                <em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstrtsptransport.html#GstRTSPLowerTrans"><span class="type">GstRTSPLowerTrans</span></a> protocols</code></em>);</pre>
799 <p>Configure the allowed lower transport for <em class="parameter"><code>stream</code></em>
800 .</p>
801 <div class="refsect3">
802 <a name="id-1.2.8.7.15.5"></a><h4>Parameters</h4>
803 <div class="informaltable"><table width="100%" border="0">
804 <colgroup>
805 <col width="150px" class="parameters_name">
806 <col class="parameters_description">
807 <col width="200px" class="parameters_annotations">
808 </colgroup>
809 <tbody>
810 <tr>
811 <td class="parameter_name"><p>stream</p></td>
812 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
813 <td class="parameter_annotations"> </td>
814 </tr>
815 <tr>
816 <td class="parameter_name"><p>protocols</p></td>
817 <td class="parameter_description"><p>the new flags</p></td>
818 <td class="parameter_annotations"> </td>
819 </tr>
820 </tbody>
821 </table></div>
822 </div>
823 </div>
824 <hr>
825 <div class="refsect2">
826 <a name="gst-rtsp-stream-is-transport-supported"></a><h3>gst_rtsp_stream_is_transport_supported ()</h3>
827 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
828 gst_rtsp_stream_is_transport_supported
829                                (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
830                                 <em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstrtsptransport.html#GstRTSPTransport"><span class="type">GstRTSPTransport</span></a> *transport</code></em>);</pre>
831 <p>Check if <em class="parameter"><code>transport</code></em>
832  can be handled by stream</p>
833 <div class="refsect3">
834 <a name="id-1.2.8.7.16.5"></a><h4>Parameters</h4>
835 <div class="informaltable"><table width="100%" border="0">
836 <colgroup>
837 <col width="150px" class="parameters_name">
838 <col class="parameters_description">
839 <col width="200px" class="parameters_annotations">
840 </colgroup>
841 <tbody>
842 <tr>
843 <td class="parameter_name"><p>stream</p></td>
844 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
845 <td class="parameter_annotations"> </td>
846 </tr>
847 <tr>
848 <td class="parameter_name"><p>transport</p></td>
849 <td class="parameter_description"><p> a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstrtsptransport.html#GstRTSPTransport"><span class="type">GstRTSPTransport</span></a>. </p></td>
850 <td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
851 </tr>
852 </tbody>
853 </table></div>
854 </div>
855 <div class="refsect3">
856 <a name="id-1.2.8.7.16.6"></a><h4>Returns</h4>
857 <p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>transport</code></em>
858 can be handled by <em class="parameter"><code>stream</code></em>
859 .</p>
860 <p></p>
861 </div>
862 </div>
863 <hr>
864 <div class="refsect2">
865 <a name="gst-rtsp-stream-get-address-pool"></a><h3>gst_rtsp_stream_get_address_pool ()</h3>
866 <pre class="programlisting"><a class="link" href="gst-rtsp-server-GstRTSPAddressPool.html#GstRTSPAddressPool" title="struct GstRTSPAddressPool"><span class="returnvalue">GstRTSPAddressPool</span></a> *
867 gst_rtsp_stream_get_address_pool (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>);</pre>
868 <p>Get the <a class="link" href="gst-rtsp-server-GstRTSPAddressPool.html#GstRTSPAddressPool" title="struct GstRTSPAddressPool"><span class="type">GstRTSPAddressPool</span></a> used as the address pool of <em class="parameter"><code>stream</code></em>
869 .</p>
870 <div class="refsect3">
871 <a name="id-1.2.8.7.17.5"></a><h4>Parameters</h4>
872 <div class="informaltable"><table width="100%" border="0">
873 <colgroup>
874 <col width="150px" class="parameters_name">
875 <col class="parameters_description">
876 <col width="200px" class="parameters_annotations">
877 </colgroup>
878 <tbody><tr>
879 <td class="parameter_name"><p>stream</p></td>
880 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
881 <td class="parameter_annotations"> </td>
882 </tr></tbody>
883 </table></div>
884 </div>
885 <div class="refsect3">
886 <a name="id-1.2.8.7.17.6"></a><h4>Returns</h4>
887 <p> the <a class="link" href="gst-rtsp-server-GstRTSPAddressPool.html#GstRTSPAddressPool" title="struct GstRTSPAddressPool"><span class="type">GstRTSPAddressPool</span></a> of <em class="parameter"><code>stream</code></em>
888 . <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> after
889 usage. </p>
890 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
891 </div>
892 </div>
893 <hr>
894 <div class="refsect2">
895 <a name="gst-rtsp-stream-set-address-pool"></a><h3>gst_rtsp_stream_set_address_pool ()</h3>
896 <pre class="programlisting"><span class="returnvalue">void</span>
897 gst_rtsp_stream_set_address_pool (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
898                                   <em class="parameter"><code><a class="link" href="gst-rtsp-server-GstRTSPAddressPool.html#GstRTSPAddressPool" title="struct GstRTSPAddressPool"><span class="type">GstRTSPAddressPool</span></a> *pool</code></em>);</pre>
899 <p>configure <em class="parameter"><code>pool</code></em>
900  to be used as the address pool of <em class="parameter"><code>stream</code></em>
901 .</p>
902 <div class="refsect3">
903 <a name="id-1.2.8.7.18.5"></a><h4>Parameters</h4>
904 <div class="informaltable"><table width="100%" border="0">
905 <colgroup>
906 <col width="150px" class="parameters_name">
907 <col class="parameters_description">
908 <col width="200px" class="parameters_annotations">
909 </colgroup>
910 <tbody>
911 <tr>
912 <td class="parameter_name"><p>stream</p></td>
913 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
914 <td class="parameter_annotations"> </td>
915 </tr>
916 <tr>
917 <td class="parameter_name"><p>pool</p></td>
918 <td class="parameter_description"><p> a <a class="link" href="gst-rtsp-server-GstRTSPAddressPool.html#GstRTSPAddressPool" title="struct GstRTSPAddressPool"><span class="type">GstRTSPAddressPool</span></a>. </p></td>
919 <td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
920 </tr>
921 </tbody>
922 </table></div>
923 </div>
924 </div>
925 <hr>
926 <div class="refsect2">
927 <a name="gst-rtsp-stream-reserve-address"></a><h3>gst_rtsp_stream_reserve_address ()</h3>
928 <pre class="programlisting"><a class="link" href="gst-rtsp-server-GstRTSPAddressPool.html#GstRTSPAddress" title="struct GstRTSPAddress"><span class="returnvalue">GstRTSPAddress</span></a> *
929 gst_rtsp_stream_reserve_address (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
930                                  <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *address</code></em>,
931                                  <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> port</code></em>,
932                                  <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> n_ports</code></em>,
933                                  <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> ttl</code></em>);</pre>
934 <p>Reserve <em class="parameter"><code>address</code></em>
935  and <em class="parameter"><code>port</code></em>
936  as the address and port of <em class="parameter"><code>stream</code></em>
937 .</p>
938 <div class="refsect3">
939 <a name="id-1.2.8.7.19.5"></a><h4>Parameters</h4>
940 <div class="informaltable"><table width="100%" border="0">
941 <colgroup>
942 <col width="150px" class="parameters_name">
943 <col class="parameters_description">
944 <col width="200px" class="parameters_annotations">
945 </colgroup>
946 <tbody>
947 <tr>
948 <td class="parameter_name"><p>stream</p></td>
949 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
950 <td class="parameter_annotations"> </td>
951 </tr>
952 <tr>
953 <td class="parameter_name"><p>address</p></td>
954 <td class="parameter_description"><p>an address</p></td>
955 <td class="parameter_annotations"> </td>
956 </tr>
957 <tr>
958 <td class="parameter_name"><p>port</p></td>
959 <td class="parameter_description"><p>a port</p></td>
960 <td class="parameter_annotations"> </td>
961 </tr>
962 <tr>
963 <td class="parameter_name"><p>n_ports</p></td>
964 <td class="parameter_description"><p>n_ports</p></td>
965 <td class="parameter_annotations"> </td>
966 </tr>
967 <tr>
968 <td class="parameter_name"><p>ttl</p></td>
969 <td class="parameter_description"><p>a TTL</p></td>
970 <td class="parameter_annotations"> </td>
971 </tr>
972 </tbody>
973 </table></div>
974 </div>
975 <div class="refsect3">
976 <a name="id-1.2.8.7.19.6"></a><h4>Returns</h4>
977 <p> the <a class="link" href="gst-rtsp-server-GstRTSPAddressPool.html#GstRTSPAddress" title="struct GstRTSPAddress"><span class="type">GstRTSPAddress</span></a> of <em class="parameter"><code>stream</code></em>
978 or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> when
979 the address could be reserved. <a class="link" href="gst-rtsp-server-GstRTSPAddressPool.html#gst-rtsp-address-free" title="gst_rtsp_address_free ()"><code class="function">gst_rtsp_address_free()</code></a> after usage. </p>
980 <p><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p>
981 </div>
982 </div>
983 <hr>
984 <div class="refsect2">
985 <a name="gst-rtsp-stream-join-bin"></a><h3>gst_rtsp_stream_join_bin ()</h3>
986 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
987 gst_rtsp_stream_join_bin (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
988                           <em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstBin.html"><span class="type">GstBin</span></a> *bin</code></em>,
989                           <em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstElement.html"><span class="type">GstElement</span></a> *rtpbin</code></em>,
990                           <em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstElement.html#GstState"><span class="type">GstState</span></a> state</code></em>);</pre>
991 <p>Join the <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstBin.html"><span class="type">GstBin</span></a> <em class="parameter"><code>bin</code></em>
992  that contains the element <em class="parameter"><code>rtpbin</code></em>
993 .</p>
994 <p><em class="parameter"><code>stream</code></em>
995  will link to <em class="parameter"><code>rtpbin</code></em>
996 , which must be inside <em class="parameter"><code>bin</code></em>
997 . The elements
998 added to <em class="parameter"><code>bin</code></em>
999  will be set to the state given in <em class="parameter"><code>state</code></em>
1000 .</p>
1001 <div class="refsect3">
1002 <a name="id-1.2.8.7.20.6"></a><h4>Parameters</h4>
1003 <div class="informaltable"><table width="100%" border="0">
1004 <colgroup>
1005 <col width="150px" class="parameters_name">
1006 <col class="parameters_description">
1007 <col width="200px" class="parameters_annotations">
1008 </colgroup>
1009 <tbody>
1010 <tr>
1011 <td class="parameter_name"><p>stream</p></td>
1012 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
1013 <td class="parameter_annotations"> </td>
1014 </tr>
1015 <tr>
1016 <td class="parameter_name"><p>bin</p></td>
1017 <td class="parameter_description"><p> a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstBin.html"><span class="type">GstBin</span></a> to join. </p></td>
1018 <td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
1019 </tr>
1020 <tr>
1021 <td class="parameter_name"><p>rtpbin</p></td>
1022 <td class="parameter_description"><p> a rtpbin element in <em class="parameter"><code>bin</code></em>
1023 . </p></td>
1024 <td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
1025 </tr>
1026 <tr>
1027 <td class="parameter_name"><p>state</p></td>
1028 <td class="parameter_description"><p>the target state of the new elements</p></td>
1029 <td class="parameter_annotations"> </td>
1030 </tr>
1031 </tbody>
1032 </table></div>
1033 </div>
1034 <div class="refsect3">
1035 <a name="id-1.2.8.7.20.7"></a><h4>Returns</h4>
1036 <p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success.</p>
1037 <p></p>
1038 </div>
1039 </div>
1040 <hr>
1041 <div class="refsect2">
1042 <a name="gst-rtsp-stream-leave-bin"></a><h3>gst_rtsp_stream_leave_bin ()</h3>
1043 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
1044 gst_rtsp_stream_leave_bin (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
1045                            <em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstBin.html"><span class="type">GstBin</span></a> *bin</code></em>,
1046                            <em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstElement.html"><span class="type">GstElement</span></a> *rtpbin</code></em>);</pre>
1047 <p>Remove the elements of <em class="parameter"><code>stream</code></em>
1048  from <em class="parameter"><code>bin</code></em>
1049 .</p>
1050 <p>Return: <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success.</p>
1051 <div class="refsect3">
1052 <a name="id-1.2.8.7.21.6"></a><h4>Parameters</h4>
1053 <div class="informaltable"><table width="100%" border="0">
1054 <colgroup>
1055 <col width="150px" class="parameters_name">
1056 <col class="parameters_description">
1057 <col width="200px" class="parameters_annotations">
1058 </colgroup>
1059 <tbody>
1060 <tr>
1061 <td class="parameter_name"><p>stream</p></td>
1062 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
1063 <td class="parameter_annotations"> </td>
1064 </tr>
1065 <tr>
1066 <td class="parameter_name"><p>bin</p></td>
1067 <td class="parameter_description"><p> a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstBin.html"><span class="type">GstBin</span></a>. </p></td>
1068 <td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
1069 </tr>
1070 <tr>
1071 <td class="parameter_name"><p>rtpbin</p></td>
1072 <td class="parameter_description"><p> a rtpbin <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstElement.html"><span class="type">GstElement</span></a>. </p></td>
1073 <td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
1074 </tr>
1075 </tbody>
1076 </table></div>
1077 </div>
1078 </div>
1079 <hr>
1080 <div class="refsect2">
1081 <a name="gst-rtsp-stream-get-server-port"></a><h3>gst_rtsp_stream_get_server_port ()</h3>
1082 <pre class="programlisting"><span class="returnvalue">void</span>
1083 gst_rtsp_stream_get_server_port (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
1084                                  <em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstrtsptransport.html#GstRTSPRange"><span class="type">GstRTSPRange</span></a> *server_port</code></em>,
1085                                  <em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GSocketAddress.html#GSocketFamily"><span class="type">GSocketFamily</span></a> family</code></em>);</pre>
1086 <p>Fill <em class="parameter"><code>server_port</code></em>
1087  with the port pair used by the server. This function can
1088 only be called when <em class="parameter"><code>stream</code></em>
1089  has been joined.</p>
1090 <div class="refsect3">
1091 <a name="id-1.2.8.7.22.5"></a><h4>Parameters</h4>
1092 <div class="informaltable"><table width="100%" border="0">
1093 <colgroup>
1094 <col width="150px" class="parameters_name">
1095 <col class="parameters_description">
1096 <col width="200px" class="parameters_annotations">
1097 </colgroup>
1098 <tbody>
1099 <tr>
1100 <td class="parameter_name"><p>stream</p></td>
1101 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
1102 <td class="parameter_annotations"> </td>
1103 </tr>
1104 <tr>
1105 <td class="parameter_name"><p>server_port</p></td>
1106 <td class="parameter_description"><p> result server port. </p></td>
1107 <td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
1108 </tr>
1109 <tr>
1110 <td class="parameter_name"><p>family</p></td>
1111 <td class="parameter_description"><p>the port family to get</p></td>
1112 <td class="parameter_annotations"> </td>
1113 </tr>
1114 </tbody>
1115 </table></div>
1116 </div>
1117 </div>
1118 <hr>
1119 <div class="refsect2">
1120 <a name="gst-rtsp-stream-get-multicast-address"></a><h3>gst_rtsp_stream_get_multicast_address ()</h3>
1121 <pre class="programlisting"><a class="link" href="gst-rtsp-server-GstRTSPAddressPool.html#GstRTSPAddress" title="struct GstRTSPAddress"><span class="returnvalue">GstRTSPAddress</span></a> *
1122 gst_rtsp_stream_get_multicast_address (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
1123                                        <em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GSocketAddress.html#GSocketFamily"><span class="type">GSocketFamily</span></a> family</code></em>);</pre>
1124 <p>Get the multicast address of <em class="parameter"><code>stream</code></em>
1125  for <em class="parameter"><code>family</code></em>
1126 .</p>
1127 <div class="refsect3">
1128 <a name="id-1.2.8.7.23.5"></a><h4>Parameters</h4>
1129 <div class="informaltable"><table width="100%" border="0">
1130 <colgroup>
1131 <col width="150px" class="parameters_name">
1132 <col class="parameters_description">
1133 <col width="200px" class="parameters_annotations">
1134 </colgroup>
1135 <tbody>
1136 <tr>
1137 <td class="parameter_name"><p>stream</p></td>
1138 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
1139 <td class="parameter_annotations"> </td>
1140 </tr>
1141 <tr>
1142 <td class="parameter_name"><p>family</p></td>
1143 <td class="parameter_description"><p>the <a href="http://library.gnome.org/devel/gio/unstable/GSocketAddress.html#GSocketFamily"><span class="type">GSocketFamily</span></a></p></td>
1144 <td class="parameter_annotations"> </td>
1145 </tr>
1146 </tbody>
1147 </table></div>
1148 </div>
1149 <div class="refsect3">
1150 <a name="id-1.2.8.7.23.6"></a><h4>Returns</h4>
1151 <p> the <a class="link" href="gst-rtsp-server-GstRTSPAddressPool.html#GstRTSPAddress" title="struct GstRTSPAddress"><span class="type">GstRTSPAddress</span></a> of <em class="parameter"><code>stream</code></em>
1152 or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> when no address could be allocated. <a class="link" href="gst-rtsp-server-GstRTSPAddressPool.html#gst-rtsp-address-free" title="gst_rtsp_address_free ()"><code class="function">gst_rtsp_address_free()</code></a>
1153 after usage. </p>
1154 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p>
1155 </div>
1156 </div>
1157 <hr>
1158 <div class="refsect2">
1159 <a name="gst-rtsp-stream-get-rtpsession"></a><h3>gst_rtsp_stream_get_rtpsession ()</h3>
1160 <pre class="programlisting"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="returnvalue">GObject</span></a> *
1161 gst_rtsp_stream_get_rtpsession (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>);</pre>
1162 <p>Get the RTP session of this stream.</p>
1163 <div class="refsect3">
1164 <a name="id-1.2.8.7.24.5"></a><h4>Parameters</h4>
1165 <div class="informaltable"><table width="100%" border="0">
1166 <colgroup>
1167 <col width="150px" class="parameters_name">
1168 <col class="parameters_description">
1169 <col width="200px" class="parameters_annotations">
1170 </colgroup>
1171 <tbody><tr>
1172 <td class="parameter_name"><p>stream</p></td>
1173 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
1174 <td class="parameter_annotations"> </td>
1175 </tr></tbody>
1176 </table></div>
1177 </div>
1178 <div class="refsect3">
1179 <a name="id-1.2.8.7.24.6"></a><h4>Returns</h4>
1180 <p> The RTP session of this stream. Unref after usage. </p>
1181 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
1182 </div>
1183 </div>
1184 <hr>
1185 <div class="refsect2">
1186 <a name="gst-rtsp-stream-get-ssrc"></a><h3>gst_rtsp_stream_get_ssrc ()</h3>
1187 <pre class="programlisting"><span class="returnvalue">void</span>
1188 gst_rtsp_stream_get_ssrc (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
1189                           <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *ssrc</code></em>);</pre>
1190 <p>Get the SSRC used by the RTP session of this stream. This function can only
1191 be called when <em class="parameter"><code>stream</code></em>
1192  has been joined.</p>
1193 <div class="refsect3">
1194 <a name="id-1.2.8.7.25.5"></a><h4>Parameters</h4>
1195 <div class="informaltable"><table width="100%" border="0">
1196 <colgroup>
1197 <col width="150px" class="parameters_name">
1198 <col class="parameters_description">
1199 <col width="200px" class="parameters_annotations">
1200 </colgroup>
1201 <tbody>
1202 <tr>
1203 <td class="parameter_name"><p>stream</p></td>
1204 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
1205 <td class="parameter_annotations"> </td>
1206 </tr>
1207 <tr>
1208 <td class="parameter_name"><p>ssrc</p></td>
1209 <td class="parameter_description"><p> result ssrc. </p></td>
1210 <td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
1211 </tr>
1212 </tbody>
1213 </table></div>
1214 </div>
1215 </div>
1216 <hr>
1217 <div class="refsect2">
1218 <a name="gst-rtsp-stream-get-rtpinfo"></a><h3>gst_rtsp_stream_get_rtpinfo ()</h3>
1219 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
1220 gst_rtsp_stream_get_rtpinfo (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
1221                              <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *rtptime</code></em>,
1222                              <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *seq</code></em>,
1223                              <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *clock_rate</code></em>,
1224                              <em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstClock.html#GstClockTime"><span class="type">GstClockTime</span></a> *running_time</code></em>);</pre>
1225 <p>Retrieve the current rtptime, seq and running-time. This is used to
1226 construct a RTPInfo reply header.</p>
1227 <div class="refsect3">
1228 <a name="id-1.2.8.7.26.5"></a><h4>Parameters</h4>
1229 <div class="informaltable"><table width="100%" border="0">
1230 <colgroup>
1231 <col width="150px" class="parameters_name">
1232 <col class="parameters_description">
1233 <col width="200px" class="parameters_annotations">
1234 </colgroup>
1235 <tbody>
1236 <tr>
1237 <td class="parameter_name"><p>stream</p></td>
1238 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
1239 <td class="parameter_annotations"> </td>
1240 </tr>
1241 <tr>
1242 <td class="parameter_name"><p>rtptime</p></td>
1243 <td class="parameter_description"><p> result RTP timestamp. </p></td>
1244 <td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
1245 </tr>
1246 <tr>
1247 <td class="parameter_name"><p>seq</p></td>
1248 <td class="parameter_description"><p> result RTP seqnum. </p></td>
1249 <td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
1250 </tr>
1251 <tr>
1252 <td class="parameter_name"><p>clock_rate</p></td>
1253 <td class="parameter_description"><p> the clock rate. </p></td>
1254 <td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
1255 </tr>
1256 <tr>
1257 <td class="parameter_name"><p>running_time</p></td>
1258 <td class="parameter_description"><p> result running-time. </p></td>
1259 <td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
1260 </tr>
1261 </tbody>
1262 </table></div>
1263 </div>
1264 <div class="refsect3">
1265 <a name="id-1.2.8.7.26.6"></a><h4>Returns</h4>
1266 <p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> when rtptime, seq and running-time could be determined.</p>
1267 <p></p>
1268 </div>
1269 </div>
1270 <hr>
1271 <div class="refsect2">
1272 <a name="gst-rtsp-stream-get-caps"></a><h3>gst_rtsp_stream_get_caps ()</h3>
1273 <pre class="programlisting"><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstCaps.html"><span class="returnvalue">GstCaps</span></a> *
1274 gst_rtsp_stream_get_caps (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>);</pre>
1275 <p>Retrieve the current caps of <em class="parameter"><code>stream</code></em>
1276 .</p>
1277 <div class="refsect3">
1278 <a name="id-1.2.8.7.27.5"></a><h4>Parameters</h4>
1279 <div class="informaltable"><table width="100%" border="0">
1280 <colgroup>
1281 <col width="150px" class="parameters_name">
1282 <col class="parameters_description">
1283 <col width="200px" class="parameters_annotations">
1284 </colgroup>
1285 <tbody><tr>
1286 <td class="parameter_name"><p>stream</p></td>
1287 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
1288 <td class="parameter_annotations"> </td>
1289 </tr></tbody>
1290 </table></div>
1291 </div>
1292 <div class="refsect3">
1293 <a name="id-1.2.8.7.27.6"></a><h4>Returns</h4>
1294 <p> the <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstCaps.html"><span class="type">GstCaps</span></a> of <em class="parameter"><code>stream</code></em>
1295 . use <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstCaps.html#gst-caps-unref"><code class="function">gst_caps_unref()</code></a>
1296 after usage. </p>
1297 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
1298 </div>
1299 </div>
1300 <hr>
1301 <div class="refsect2">
1302 <a name="gst-rtsp-stream-get-pt"></a><h3>gst_rtsp_stream_get_pt ()</h3>
1303 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
1304 gst_rtsp_stream_get_pt (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>);</pre>
1305 <p>Get the stream payload type.</p>
1306 <p>Return: the stream payload type.</p>
1307 <div class="refsect3">
1308 <a name="id-1.2.8.7.28.6"></a><h4>Parameters</h4>
1309 <div class="informaltable"><table width="100%" border="0">
1310 <colgroup>
1311 <col width="150px" class="parameters_name">
1312 <col class="parameters_description">
1313 <col width="200px" class="parameters_annotations">
1314 </colgroup>
1315 <tbody><tr>
1316 <td class="parameter_name"><p>stream</p></td>
1317 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
1318 <td class="parameter_annotations"> </td>
1319 </tr></tbody>
1320 </table></div>
1321 </div>
1322 </div>
1323 <hr>
1324 <div class="refsect2">
1325 <a name="gst-rtsp-stream-recv-rtcp"></a><h3>gst_rtsp_stream_recv_rtcp ()</h3>
1326 <pre class="programlisting"><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstPad.html#GstFlowReturn"><span class="returnvalue">GstFlowReturn</span></a>
1327 gst_rtsp_stream_recv_rtcp (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
1328                            <em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstBuffer.html"><span class="type">GstBuffer</span></a> *buffer</code></em>);</pre>
1329 <p>Handle an RTCP buffer for the stream. This method is usually called when a
1330 message has been received from a client using the TCP transport.</p>
1331 <p>This function takes ownership of <em class="parameter"><code>buffer</code></em>
1332 .</p>
1333 <div class="refsect3">
1334 <a name="id-1.2.8.7.29.6"></a><h4>Parameters</h4>
1335 <div class="informaltable"><table width="100%" border="0">
1336 <colgroup>
1337 <col width="150px" class="parameters_name">
1338 <col class="parameters_description">
1339 <col width="200px" class="parameters_annotations">
1340 </colgroup>
1341 <tbody>
1342 <tr>
1343 <td class="parameter_name"><p>stream</p></td>
1344 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
1345 <td class="parameter_annotations"> </td>
1346 </tr>
1347 <tr>
1348 <td class="parameter_name"><p>buffer</p></td>
1349 <td class="parameter_description"><p> a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstBuffer.html"><span class="type">GstBuffer</span></a>. </p></td>
1350 <td class="parameter_annotations"><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></td>
1351 </tr>
1352 </tbody>
1353 </table></div>
1354 </div>
1355 <div class="refsect3">
1356 <a name="id-1.2.8.7.29.7"></a><h4>Returns</h4>
1357 <p> a GstFlowReturn.</p>
1358 <p></p>
1359 </div>
1360 </div>
1361 <hr>
1362 <div class="refsect2">
1363 <a name="gst-rtsp-stream-recv-rtp"></a><h3>gst_rtsp_stream_recv_rtp ()</h3>
1364 <pre class="programlisting"><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstPad.html#GstFlowReturn"><span class="returnvalue">GstFlowReturn</span></a>
1365 gst_rtsp_stream_recv_rtp (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
1366                           <em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstBuffer.html"><span class="type">GstBuffer</span></a> *buffer</code></em>);</pre>
1367 <p>Handle an RTP buffer for the stream. This method is usually called when a
1368 message has been received from a client using the TCP transport.</p>
1369 <p>This function takes ownership of <em class="parameter"><code>buffer</code></em>
1370 .</p>
1371 <div class="refsect3">
1372 <a name="id-1.2.8.7.30.6"></a><h4>Parameters</h4>
1373 <div class="informaltable"><table width="100%" border="0">
1374 <colgroup>
1375 <col width="150px" class="parameters_name">
1376 <col class="parameters_description">
1377 <col width="200px" class="parameters_annotations">
1378 </colgroup>
1379 <tbody>
1380 <tr>
1381 <td class="parameter_name"><p>stream</p></td>
1382 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
1383 <td class="parameter_annotations"> </td>
1384 </tr>
1385 <tr>
1386 <td class="parameter_name"><p>buffer</p></td>
1387 <td class="parameter_description"><p> a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstBuffer.html"><span class="type">GstBuffer</span></a>. </p></td>
1388 <td class="parameter_annotations"><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></td>
1389 </tr>
1390 </tbody>
1391 </table></div>
1392 </div>
1393 <div class="refsect3">
1394 <a name="id-1.2.8.7.30.7"></a><h4>Returns</h4>
1395 <p> a GstFlowReturn.</p>
1396 <p></p>
1397 </div>
1398 </div>
1399 <hr>
1400 <div class="refsect2">
1401 <a name="gst-rtsp-stream-add-transport"></a><h3>gst_rtsp_stream_add_transport ()</h3>
1402 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
1403 gst_rtsp_stream_add_transport (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
1404                                <em class="parameter"><code><a class="link" href="gst-rtsp-server-GstRTSPStreamTransport.html#GstRTSPStreamTransport" title="struct GstRTSPStreamTransport"><span class="type">GstRTSPStreamTransport</span></a> *trans</code></em>);</pre>
1405 <p>Add the transport in <em class="parameter"><code>trans</code></em>
1406  to <em class="parameter"><code>stream</code></em>
1407 . The media of <em class="parameter"><code>stream</code></em>
1408  will
1409 then also be send to the values configured in <em class="parameter"><code>trans</code></em>
1410 .</p>
1411 <p><em class="parameter"><code>stream</code></em>
1412  must be joined to a bin.</p>
1413 <p><em class="parameter"><code>trans</code></em>
1414  must contain a valid <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstrtsptransport.html#GstRTSPTransport"><span class="type">GstRTSPTransport</span></a>.</p>
1415 <div class="refsect3">
1416 <a name="id-1.2.8.7.31.7"></a><h4>Parameters</h4>
1417 <div class="informaltable"><table width="100%" border="0">
1418 <colgroup>
1419 <col width="150px" class="parameters_name">
1420 <col class="parameters_description">
1421 <col width="200px" class="parameters_annotations">
1422 </colgroup>
1423 <tbody>
1424 <tr>
1425 <td class="parameter_name"><p>stream</p></td>
1426 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
1427 <td class="parameter_annotations"> </td>
1428 </tr>
1429 <tr>
1430 <td class="parameter_name"><p>trans</p></td>
1431 <td class="parameter_description"><p> a <a class="link" href="gst-rtsp-server-GstRTSPStreamTransport.html#GstRTSPStreamTransport" title="struct GstRTSPStreamTransport"><span class="type">GstRTSPStreamTransport</span></a>. </p></td>
1432 <td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
1433 </tr>
1434 </tbody>
1435 </table></div>
1436 </div>
1437 <div class="refsect3">
1438 <a name="id-1.2.8.7.31.8"></a><h4>Returns</h4>
1439 <p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>trans</code></em>
1440 was added</p>
1441 <p></p>
1442 </div>
1443 </div>
1444 <hr>
1445 <div class="refsect2">
1446 <a name="gst-rtsp-stream-remove-transport"></a><h3>gst_rtsp_stream_remove_transport ()</h3>
1447 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
1448 gst_rtsp_stream_remove_transport (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
1449                                   <em class="parameter"><code><a class="link" href="gst-rtsp-server-GstRTSPStreamTransport.html#GstRTSPStreamTransport" title="struct GstRTSPStreamTransport"><span class="type">GstRTSPStreamTransport</span></a> *trans</code></em>);</pre>
1450 <p>Remove the transport in <em class="parameter"><code>trans</code></em>
1451  from <em class="parameter"><code>stream</code></em>
1452 . The media of <em class="parameter"><code>stream</code></em>
1453  will
1454 not be sent to the values configured in <em class="parameter"><code>trans</code></em>
1455 .</p>
1456 <p><em class="parameter"><code>stream</code></em>
1457  must be joined to a bin.</p>
1458 <p><em class="parameter"><code>trans</code></em>
1459  must contain a valid <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstrtsptransport.html#GstRTSPTransport"><span class="type">GstRTSPTransport</span></a>.</p>
1460 <div class="refsect3">
1461 <a name="id-1.2.8.7.32.7"></a><h4>Parameters</h4>
1462 <div class="informaltable"><table width="100%" border="0">
1463 <colgroup>
1464 <col width="150px" class="parameters_name">
1465 <col class="parameters_description">
1466 <col width="200px" class="parameters_annotations">
1467 </colgroup>
1468 <tbody>
1469 <tr>
1470 <td class="parameter_name"><p>stream</p></td>
1471 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
1472 <td class="parameter_annotations"> </td>
1473 </tr>
1474 <tr>
1475 <td class="parameter_name"><p>trans</p></td>
1476 <td class="parameter_description"><p> a <a class="link" href="gst-rtsp-server-GstRTSPStreamTransport.html#GstRTSPStreamTransport" title="struct GstRTSPStreamTransport"><span class="type">GstRTSPStreamTransport</span></a>. </p></td>
1477 <td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
1478 </tr>
1479 </tbody>
1480 </table></div>
1481 </div>
1482 <div class="refsect3">
1483 <a name="id-1.2.8.7.32.8"></a><h4>Returns</h4>
1484 <p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>trans</code></em>
1485 was removed</p>
1486 <p></p>
1487 </div>
1488 </div>
1489 <hr>
1490 <div class="refsect2">
1491 <a name="gst-rtsp-stream-get-rtp-socket"></a><h3>gst_rtsp_stream_get_rtp_socket ()</h3>
1492 <pre class="programlisting"><a href="http://library.gnome.org/devel/gio/unstable/GSocket.html"><span class="returnvalue">GSocket</span></a> *
1493 gst_rtsp_stream_get_rtp_socket (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
1494                                 <em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GSocketAddress.html#GSocketFamily"><span class="type">GSocketFamily</span></a> family</code></em>);</pre>
1495 <p>Get the RTP socket from <em class="parameter"><code>stream</code></em>
1496  for a <em class="parameter"><code>family</code></em>
1497 .</p>
1498 <p><em class="parameter"><code>stream</code></em>
1499  must be joined to a bin.</p>
1500 <div class="refsect3">
1501 <a name="id-1.2.8.7.33.6"></a><h4>Parameters</h4>
1502 <div class="informaltable"><table width="100%" border="0">
1503 <colgroup>
1504 <col width="150px" class="parameters_name">
1505 <col class="parameters_description">
1506 <col width="200px" class="parameters_annotations">
1507 </colgroup>
1508 <tbody>
1509 <tr>
1510 <td class="parameter_name"><p>stream</p></td>
1511 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
1512 <td class="parameter_annotations"> </td>
1513 </tr>
1514 <tr>
1515 <td class="parameter_name"><p>family</p></td>
1516 <td class="parameter_description"><p>the socket family</p></td>
1517 <td class="parameter_annotations"> </td>
1518 </tr>
1519 </tbody>
1520 </table></div>
1521 </div>
1522 <div class="refsect3">
1523 <a name="id-1.2.8.7.33.7"></a><h4>Returns</h4>
1524 <p> the RTP socket or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if no
1525 socket could be allocated for <em class="parameter"><code>family</code></em>
1526 . Unref after usage. </p>
1527 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p>
1528 </div>
1529 </div>
1530 <hr>
1531 <div class="refsect2">
1532 <a name="gst-rtsp-stream-get-rtcp-socket"></a><h3>gst_rtsp_stream_get_rtcp_socket ()</h3>
1533 <pre class="programlisting"><a href="http://library.gnome.org/devel/gio/unstable/GSocket.html"><span class="returnvalue">GSocket</span></a> *
1534 gst_rtsp_stream_get_rtcp_socket (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
1535                                  <em class="parameter"><code><a href="http://library.gnome.org/devel/gio/unstable/GSocketAddress.html#GSocketFamily"><span class="type">GSocketFamily</span></a> family</code></em>);</pre>
1536 <p>Get the RTCP socket from <em class="parameter"><code>stream</code></em>
1537  for a <em class="parameter"><code>family</code></em>
1538 .</p>
1539 <p><em class="parameter"><code>stream</code></em>
1540  must be joined to a bin.</p>
1541 <div class="refsect3">
1542 <a name="id-1.2.8.7.34.6"></a><h4>Parameters</h4>
1543 <div class="informaltable"><table width="100%" border="0">
1544 <colgroup>
1545 <col width="150px" class="parameters_name">
1546 <col class="parameters_description">
1547 <col width="200px" class="parameters_annotations">
1548 </colgroup>
1549 <tbody>
1550 <tr>
1551 <td class="parameter_name"><p>stream</p></td>
1552 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
1553 <td class="parameter_annotations"> </td>
1554 </tr>
1555 <tr>
1556 <td class="parameter_name"><p>family</p></td>
1557 <td class="parameter_description"><p>the socket family</p></td>
1558 <td class="parameter_annotations"> </td>
1559 </tr>
1560 </tbody>
1561 </table></div>
1562 </div>
1563 <div class="refsect3">
1564 <a name="id-1.2.8.7.34.7"></a><h4>Returns</h4>
1565 <p> the RTCP socket or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if no
1566 socket could be allocated for <em class="parameter"><code>family</code></em>
1567 . Unref after usage. </p>
1568 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p>
1569 </div>
1570 </div>
1571 <hr>
1572 <div class="refsect2">
1573 <a name="gst-rtsp-stream-set-blocked"></a><h3>gst_rtsp_stream_set_blocked ()</h3>
1574 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
1575 gst_rtsp_stream_set_blocked (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
1576                              <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> blocked</code></em>);</pre>
1577 <p>Blocks or unblocks the dataflow on <em class="parameter"><code>stream</code></em>
1578 .</p>
1579 <div class="refsect3">
1580 <a name="id-1.2.8.7.35.5"></a><h4>Parameters</h4>
1581 <div class="informaltable"><table width="100%" border="0">
1582 <colgroup>
1583 <col width="150px" class="parameters_name">
1584 <col class="parameters_description">
1585 <col width="200px" class="parameters_annotations">
1586 </colgroup>
1587 <tbody>
1588 <tr>
1589 <td class="parameter_name"><p>stream</p></td>
1590 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
1591 <td class="parameter_annotations"> </td>
1592 </tr>
1593 <tr>
1594 <td class="parameter_name"><p>blocked</p></td>
1595 <td class="parameter_description"><p>boolean indicating we should block or unblock</p></td>
1596 <td class="parameter_annotations"> </td>
1597 </tr>
1598 </tbody>
1599 </table></div>
1600 </div>
1601 <div class="refsect3">
1602 <a name="id-1.2.8.7.35.6"></a><h4>Returns</h4>
1603 <p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success</p>
1604 <p></p>
1605 </div>
1606 </div>
1607 <hr>
1608 <div class="refsect2">
1609 <a name="gst-rtsp-stream-is-blocking"></a><h3>gst_rtsp_stream_is_blocking ()</h3>
1610 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
1611 gst_rtsp_stream_is_blocking (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>);</pre>
1612 <p>Check if <em class="parameter"><code>stream</code></em>
1613  is blocking on a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstBuffer.html"><span class="type">GstBuffer</span></a>.</p>
1614 <div class="refsect3">
1615 <a name="id-1.2.8.7.36.5"></a><h4>Parameters</h4>
1616 <div class="informaltable"><table width="100%" border="0">
1617 <colgroup>
1618 <col width="150px" class="parameters_name">
1619 <col class="parameters_description">
1620 <col width="200px" class="parameters_annotations">
1621 </colgroup>
1622 <tbody><tr>
1623 <td class="parameter_name"><p>stream</p></td>
1624 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
1625 <td class="parameter_annotations"> </td>
1626 </tr></tbody>
1627 </table></div>
1628 </div>
1629 <div class="refsect3">
1630 <a name="id-1.2.8.7.36.6"></a><h4>Returns</h4>
1631 <p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>stream</code></em>
1632 is blocking</p>
1633 <p></p>
1634 </div>
1635 </div>
1636 <hr>
1637 <div class="refsect2">
1638 <a name="gst-rtsp-stream-update-crypto"></a><h3>gst_rtsp_stream_update_crypto ()</h3>
1639 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
1640 gst_rtsp_stream_update_crypto (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
1641                                <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> ssrc</code></em>,
1642                                <em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstCaps.html"><span class="type">GstCaps</span></a> *crypto</code></em>);</pre>
1643 <p>Update the new crypto information for <em class="parameter"><code>ssrc</code></em>
1644  in <em class="parameter"><code>stream</code></em>
1645 . If information
1646 for <em class="parameter"><code>ssrc</code></em>
1647  did not exist, it will be added. If information
1648 for <em class="parameter"><code>ssrc</code></em>
1649  existed, it will be replaced. If <em class="parameter"><code>crypto</code></em>
1650  is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, it will
1651 be removed from <em class="parameter"><code>stream</code></em>
1652 .</p>
1653 <div class="refsect3">
1654 <a name="id-1.2.8.7.37.5"></a><h4>Parameters</h4>
1655 <div class="informaltable"><table width="100%" border="0">
1656 <colgroup>
1657 <col width="150px" class="parameters_name">
1658 <col class="parameters_description">
1659 <col width="200px" class="parameters_annotations">
1660 </colgroup>
1661 <tbody>
1662 <tr>
1663 <td class="parameter_name"><p>stream</p></td>
1664 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
1665 <td class="parameter_annotations"> </td>
1666 </tr>
1667 <tr>
1668 <td class="parameter_name"><p>ssrc</p></td>
1669 <td class="parameter_description"><p>the SSRC</p></td>
1670 <td class="parameter_annotations"> </td>
1671 </tr>
1672 <tr>
1673 <td class="parameter_name"><p>crypto</p></td>
1674 <td class="parameter_description"><p> a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstCaps.html"><span class="type">GstCaps</span></a> with crypto info. </p></td>
1675 <td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
1676 </tr>
1677 </tbody>
1678 </table></div>
1679 </div>
1680 <div class="refsect3">
1681 <a name="id-1.2.8.7.37.6"></a><h4>Returns</h4>
1682 <p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>crypto</code></em>
1683 could be updated</p>
1684 <p></p>
1685 </div>
1686 </div>
1687 <hr>
1688 <div class="refsect2">
1689 <a name="GstRTSPStreamTransportFilterFunc"></a><h3>GstRTSPStreamTransportFilterFunc ()</h3>
1690 <pre class="programlisting"><a class="link" href="GstRTSPSession.html#GstRTSPFilterResult" title="enum GstRTSPFilterResult"><span class="returnvalue">GstRTSPFilterResult</span></a>
1691 <span class="c_punctuation">(</span>*GstRTSPStreamTransportFilterFunc<span class="c_punctuation">)</span> (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
1692                                      <em class="parameter"><code><a class="link" href="gst-rtsp-server-GstRTSPStreamTransport.html#GstRTSPStreamTransport" title="struct GstRTSPStreamTransport"><span class="type">GstRTSPStreamTransport</span></a> *trans</code></em>,
1693                                      <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
1694 <p>This function will be called by the <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-transport-filter" title="gst_rtsp_stream_transport_filter ()"><code class="function">gst_rtsp_stream_transport_filter()</code></a>. An
1695 implementation should return a value of <a class="link" href="GstRTSPSession.html#GstRTSPFilterResult" title="enum GstRTSPFilterResult"><span class="type">GstRTSPFilterResult</span></a>.</p>
1696 <p>When this function returns <a class="link" href="GstRTSPSession.html#GST-RTSP-FILTER-REMOVE:CAPS"><span class="type">GST_RTSP_FILTER_REMOVE</span></a>, <em class="parameter"><code>trans</code></em>
1697  will be removed
1698 from <em class="parameter"><code>stream</code></em>
1699 .</p>
1700 <p>A return value of <a class="link" href="GstRTSPSession.html#GST-RTSP-FILTER-KEEP:CAPS"><span class="type">GST_RTSP_FILTER_KEEP</span></a> will leave <em class="parameter"><code>trans</code></em>
1701  untouched in
1702 <em class="parameter"><code>stream</code></em>
1703 .</p>
1704 <p>A value of <a class="link" href="GstRTSPSession.html#GST-RTSP-FILTER-REF:CAPS"><span class="type">GST_RTSP_FILTER_REF</span></a> will add <em class="parameter"><code>trans</code></em>
1705  to the result <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> of
1706 <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-transport-filter" title="gst_rtsp_stream_transport_filter ()"><code class="function">gst_rtsp_stream_transport_filter()</code></a>.</p>
1707 <div class="refsect3">
1708 <a name="id-1.2.8.7.38.8"></a><h4>Parameters</h4>
1709 <div class="informaltable"><table width="100%" border="0">
1710 <colgroup>
1711 <col width="150px" class="parameters_name">
1712 <col class="parameters_description">
1713 <col width="200px" class="parameters_annotations">
1714 </colgroup>
1715 <tbody>
1716 <tr>
1717 <td class="parameter_name"><p>stream</p></td>
1718 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> object</p></td>
1719 <td class="parameter_annotations"> </td>
1720 </tr>
1721 <tr>
1722 <td class="parameter_name"><p>trans</p></td>
1723 <td class="parameter_description"><p>a <a class="link" href="gst-rtsp-server-GstRTSPStreamTransport.html#GstRTSPStreamTransport" title="struct GstRTSPStreamTransport"><span class="type">GstRTSPStreamTransport</span></a> in <em class="parameter"><code>stream</code></em>
1724 </p></td>
1725 <td class="parameter_annotations"> </td>
1726 </tr>
1727 <tr>
1728 <td class="parameter_name"><p>user_data</p></td>
1729 <td class="parameter_description"><p>user data that has been given to <a class="link" href="GstRTSPStream.html#gst-rtsp-stream-transport-filter" title="gst_rtsp_stream_transport_filter ()"><code class="function">gst_rtsp_stream_transport_filter()</code></a></p></td>
1730 <td class="parameter_annotations"> </td>
1731 </tr>
1732 </tbody>
1733 </table></div>
1734 </div>
1735 <div class="refsect3">
1736 <a name="id-1.2.8.7.38.9"></a><h4>Returns</h4>
1737 <p> a <a class="link" href="GstRTSPSession.html#GstRTSPFilterResult" title="enum GstRTSPFilterResult"><span class="type">GstRTSPFilterResult</span></a>.</p>
1738 <p></p>
1739 </div>
1740 </div>
1741 <hr>
1742 <div class="refsect2">
1743 <a name="gst-rtsp-stream-transport-filter"></a><h3>gst_rtsp_stream_transport_filter ()</h3>
1744 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *
1745 gst_rtsp_stream_transport_filter (<em class="parameter"><code><a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a> *stream</code></em>,
1746                                   <em class="parameter"><code><a class="link" href="GstRTSPStream.html#GstRTSPStreamTransportFilterFunc" title="GstRTSPStreamTransportFilterFunc ()"><span class="type">GstRTSPStreamTransportFilterFunc</span></a> func</code></em>,
1747                                   <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
1748 <p>Call <em class="parameter"><code>func</code></em>
1749  for each transport managed by <em class="parameter"><code>stream</code></em>
1750 . The result value of <em class="parameter"><code>func</code></em>
1751
1752 determines what happens to the transport. <em class="parameter"><code>func</code></em>
1753  will be called with <em class="parameter"><code>stream</code></em>
1754
1755 locked so no further actions on <em class="parameter"><code>stream</code></em>
1756  can be performed from <em class="parameter"><code>func</code></em>
1757 .</p>
1758 <p>If <em class="parameter"><code>func</code></em>
1759  returns <a class="link" href="GstRTSPSession.html#GST-RTSP-FILTER-REMOVE:CAPS"><span class="type">GST_RTSP_FILTER_REMOVE</span></a>, the transport will be removed from
1760 <em class="parameter"><code>stream</code></em>
1761 .</p>
1762 <p>If <em class="parameter"><code>func</code></em>
1763  returns <a class="link" href="GstRTSPSession.html#GST-RTSP-FILTER-KEEP:CAPS"><span class="type">GST_RTSP_FILTER_KEEP</span></a>, the transport will remain in <em class="parameter"><code>stream</code></em>
1764 .</p>
1765 <p>If <em class="parameter"><code>func</code></em>
1766  returns <a class="link" href="GstRTSPSession.html#GST-RTSP-FILTER-REF:CAPS"><span class="type">GST_RTSP_FILTER_REF</span></a>, the transport will remain in <em class="parameter"><code>stream</code></em>
1767  but
1768 will also be added with an additional ref to the result <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> of this
1769 function..</p>
1770 <p>When <em class="parameter"><code>func</code></em>
1771  is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, <a class="link" href="GstRTSPSession.html#GST-RTSP-FILTER-REF:CAPS"><span class="type">GST_RTSP_FILTER_REF</span></a> will be assumed for each transport.</p>
1772 <div class="refsect3">
1773 <a name="id-1.2.8.7.39.9"></a><h4>Parameters</h4>
1774 <div class="informaltable"><table width="100%" border="0">
1775 <colgroup>
1776 <col width="150px" class="parameters_name">
1777 <col class="parameters_description">
1778 <col width="200px" class="parameters_annotations">
1779 </colgroup>
1780 <tbody>
1781 <tr>
1782 <td class="parameter_name"><p>stream</p></td>
1783 <td class="parameter_description"><p>a <a class="link" href="GstRTSPStream.html" title="GstRTSPStream"><span class="type">GstRTSPStream</span></a></p></td>
1784 <td class="parameter_annotations"> </td>
1785 </tr>
1786 <tr>
1787 <td class="parameter_name"><p>func</p></td>
1788 <td class="parameter_description"><p> a callback. </p></td>
1789 <td class="parameter_annotations"><span class="annotation">[<acronym title="The callback is valid only during the call to the method."><span class="acronym">scope call</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
1790 </tr>
1791 <tr>
1792 <td class="parameter_name"><p>user_data</p></td>
1793 <td class="parameter_description"><p> user data passed to <em class="parameter"><code>func</code></em>
1794 . </p></td>
1795 <td class="parameter_annotations"><span class="annotation">[<acronym title="This parameter is a 'user_data', for callbacks; many bindings can pass NULL here."><span class="acronym">closure</span></acronym>]</span></td>
1796 </tr>
1797 </tbody>
1798 </table></div>
1799 </div>
1800 <div class="refsect3">
1801 <a name="id-1.2.8.7.39.10"></a><h4>Returns</h4>
1802 <p> a <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> with all
1803 transports for which <em class="parameter"><code>func</code></em>
1804 returned <a class="link" href="GstRTSPSession.html#GST-RTSP-FILTER-REF:CAPS"><span class="type">GST_RTSP_FILTER_REF</span></a>. After usage, each
1805 element in the <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> should be unreffed before the list is freed. </p>
1806 <p><span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> GstRTSPStreamTransport][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
1807 </div>
1808 </div>
1809 </div>
1810 <div class="refsect1">
1811 <a name="GstRTSPStream.other_details"></a><h2>Types and Values</h2>
1812 <div class="refsect2">
1813 <a name="GstRTSPStream-struct"></a><h3>struct GstRTSPStream</h3>
1814 <pre class="programlisting">struct GstRTSPStream;</pre>
1815 <p>The definition of a media stream.</p>
1816 </div>
1817 <hr>
1818 <div class="refsect2">
1819 <a name="GstRTSPStreamClass"></a><h3>GstRTSPStreamClass</h3>
1820 <pre class="programlisting">typedef struct _GstRTSPStreamClass GstRTSPStreamClass;</pre>
1821 </div>
1822 </div>
1823 <div class="refsect1">
1824 <a name="GstRTSPStream.see-also"></a><h2>See Also</h2>
1825 <p><a class="link" href="GstRTSPMedia.html" title="GstRTSPMedia"><span class="type">GstRTSPMedia</span></a></p>
1826 </div>
1827 </div>
1828 <div class="footer">
1829 <hr>
1830           Generated by GTK-Doc V1.21</div>
1831 </body>
1832 </html>