34
31
<p>appsrc — Easy way for applications to inject buffers into a
37
<td valign="top" align="right"></td>
34
<td class="gallery_image" valign="top" align="right"></td>
38
35
</tr></table></div>
39
<div class="refsynopsisdiv">
40
<a name="gst-plugins-base-libs-appsrc.synopsis"></a><h2>Synopsis</h2>
41
<pre class="synopsis">
42
#include <gst/app/gstappsrc.h>
44
enum <a class="link" href="gst-plugins-base-libs-appsrc.html#GstAppStreamType" title="enum GstAppStreamType">GstAppStreamType</a>;
45
<span class="returnvalue">void</span> <a class="link" href="gst-plugins-base-libs-appsrc.html#gst-app-src-set-caps" title="gst_app_src_set_caps ()">gst_app_src_set_caps</a> (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a> *appsrc</code></em>,
46
<em class="parameter"><code>const <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstCaps.html#GstCaps"><span class="type">GstCaps</span></a> *caps</code></em>);
47
<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstCaps.html#GstCaps"><span class="returnvalue">GstCaps</span></a> * <a class="link" href="gst-plugins-base-libs-appsrc.html#gst-app-src-get-caps" title="gst_app_src_get_caps ()">gst_app_src_get_caps</a> (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a> *appsrc</code></em>);
48
<span class="returnvalue">void</span> <a class="link" href="gst-plugins-base-libs-appsrc.html#gst-app-src-get-latency" title="gst_app_src_get_latency ()">gst_app_src_get_latency</a> (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a> *appsrc</code></em>,
49
<em class="parameter"><code><span class="type">guint64</span> *min</code></em>,
50
<em class="parameter"><code><span class="type">guint64</span> *max</code></em>);
51
<span class="returnvalue">void</span> <a class="link" href="gst-plugins-base-libs-appsrc.html#gst-app-src-set-latency" title="gst_app_src_set_latency ()">gst_app_src_set_latency</a> (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a> *appsrc</code></em>,
52
<em class="parameter"><code><span class="type">guint64</span> min</code></em>,
53
<em class="parameter"><code><span class="type">guint64</span> max</code></em>);
54
<span class="returnvalue">void</span> <a class="link" href="gst-plugins-base-libs-appsrc.html#gst-app-src-set-size" title="gst_app_src_set_size ()">gst_app_src_set_size</a> (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a> *appsrc</code></em>,
55
<em class="parameter"><code><span class="type">gint64</span> size</code></em>);
56
<span class="returnvalue">gint64</span> <a class="link" href="gst-plugins-base-libs-appsrc.html#gst-app-src-get-size" title="gst_app_src_get_size ()">gst_app_src_get_size</a> (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a> *appsrc</code></em>);
57
<span class="returnvalue">void</span> <a class="link" href="gst-plugins-base-libs-appsrc.html#gst-app-src-set-stream-type" title="gst_app_src_set_stream_type ()">gst_app_src_set_stream_type</a> (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a> *appsrc</code></em>,
58
<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-appsrc.html#GstAppStreamType" title="enum GstAppStreamType"><span class="type">GstAppStreamType</span></a> type</code></em>);
59
<a class="link" href="gst-plugins-base-libs-appsrc.html#GstAppStreamType" title="enum GstAppStreamType"><span class="returnvalue">GstAppStreamType</span></a> <a class="link" href="gst-plugins-base-libs-appsrc.html#gst-app-src-get-stream-type" title="gst_app_src_get_stream_type ()">gst_app_src_get_stream_type</a> (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a> *appsrc</code></em>);
60
<span class="returnvalue">void</span> <a class="link" href="gst-plugins-base-libs-appsrc.html#gst-app-src-set-max-bytes" title="gst_app_src_set_max_bytes ()">gst_app_src_set_max_bytes</a> (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a> *appsrc</code></em>,
61
<em class="parameter"><code><span class="type">guint64</span> max</code></em>);
62
<span class="returnvalue">guint64</span> <a class="link" href="gst-plugins-base-libs-appsrc.html#gst-app-src-get-max-bytes" title="gst_app_src_get_max_bytes ()">gst_app_src_get_max_bytes</a> (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a> *appsrc</code></em>);
63
<span class="returnvalue">guint64</span> <a class="link" href="gst-plugins-base-libs-appsrc.html#gst-app-src-get-current-level-bytes" title="gst_app_src_get_current_level_bytes ()">gst_app_src_get_current_level_bytes</a> (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a> *appsrc</code></em>);
64
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="gst-plugins-base-libs-appsrc.html#gst-app-src-get-emit-signals" title="gst_app_src_get_emit_signals ()">gst_app_src_get_emit_signals</a> (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a> *appsrc</code></em>);
65
<span class="returnvalue">void</span> <a class="link" href="gst-plugins-base-libs-appsrc.html#gst-app-src-set-emit-signals" title="gst_app_src_set_emit_signals ()">gst_app_src_set_emit_signals</a> (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a> *appsrc</code></em>,
66
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> emit</code></em>);
67
<a class="link" href="gst-plugins-base-libs-appsrc.html#GstAppSrcCallbacks" title="GstAppSrcCallbacks">GstAppSrcCallbacks</a>;
68
<span class="returnvalue">void</span> <a class="link" href="gst-plugins-base-libs-appsrc.html#gst-app-src-set-callbacks" title="gst_app_src_set_callbacks ()">gst_app_src_set_callbacks</a> (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a> *appsrc</code></em>,
69
<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-appsrc.html#GstAppSrcCallbacks" title="GstAppSrcCallbacks"><span class="type">GstAppSrcCallbacks</span></a> *callbacks</code></em>,
70
<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>,
71
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> notify</code></em>);
72
<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstPad.html#GstFlowReturn"><span class="returnvalue">GstFlowReturn</span></a> <a class="link" href="gst-plugins-base-libs-appsrc.html#gst-app-src-push-buffer" title="gst_app_src_push_buffer ()">gst_app_src_push_buffer</a> (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a> *appsrc</code></em>,
73
<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>);
74
<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstPad.html#GstFlowReturn"><span class="returnvalue">GstFlowReturn</span></a> <a class="link" href="gst-plugins-base-libs-appsrc.html#gst-app-src-end-of-stream" title="gst_app_src_end_of_stream ()">gst_app_src_end_of_stream</a> (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a> *appsrc</code></em>);
36
<div class="refsect1">
37
<a name="gst-plugins-base-libs-appsrc.functions"></a><h2>Functions</h2>
38
<div class="informaltable"><table width="100%" border="0">
40
<col width="150px" class="functions_return">
41
<col class="functions_name">
45
<td class="function_type">
46
<span class="returnvalue">void</span>
48
<td class="function_name">
49
<a class="link" href="gst-plugins-base-libs-appsrc.html#gst-app-src-set-caps" title="gst_app_src_set_caps ()">gst_app_src_set_caps</a> <span class="c_punctuation">()</span>
53
<td class="function_type">
54
<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstCaps.html#GstCaps"><span class="returnvalue">GstCaps</span></a> *
56
<td class="function_name">
57
<a class="link" href="gst-plugins-base-libs-appsrc.html#gst-app-src-get-caps" title="gst_app_src_get_caps ()">gst_app_src_get_caps</a> <span class="c_punctuation">()</span>
61
<td class="function_type">
62
<span class="returnvalue">void</span>
64
<td class="function_name">
65
<a class="link" href="gst-plugins-base-libs-appsrc.html#gst-app-src-get-latency" title="gst_app_src_get_latency ()">gst_app_src_get_latency</a> <span class="c_punctuation">()</span>
69
<td class="function_type">
70
<span class="returnvalue">void</span>
72
<td class="function_name">
73
<a class="link" href="gst-plugins-base-libs-appsrc.html#gst-app-src-set-latency" title="gst_app_src_set_latency ()">gst_app_src_set_latency</a> <span class="c_punctuation">()</span>
77
<td class="function_type">
78
<span class="returnvalue">void</span>
80
<td class="function_name">
81
<a class="link" href="gst-plugins-base-libs-appsrc.html#gst-app-src-set-size" title="gst_app_src_set_size ()">gst_app_src_set_size</a> <span class="c_punctuation">()</span>
85
<td class="function_type">
86
<span class="returnvalue">gint64</span>
88
<td class="function_name">
89
<a class="link" href="gst-plugins-base-libs-appsrc.html#gst-app-src-get-size" title="gst_app_src_get_size ()">gst_app_src_get_size</a> <span class="c_punctuation">()</span>
93
<td class="function_type">
94
<span class="returnvalue">void</span>
96
<td class="function_name">
97
<a class="link" href="gst-plugins-base-libs-appsrc.html#gst-app-src-set-stream-type" title="gst_app_src_set_stream_type ()">gst_app_src_set_stream_type</a> <span class="c_punctuation">()</span>
101
<td class="function_type">
102
<a class="link" href="gst-plugins-base-libs-appsrc.html#GstAppStreamType" title="enum GstAppStreamType"><span class="returnvalue">GstAppStreamType</span></a>
104
<td class="function_name">
105
<a class="link" href="gst-plugins-base-libs-appsrc.html#gst-app-src-get-stream-type" title="gst_app_src_get_stream_type ()">gst_app_src_get_stream_type</a> <span class="c_punctuation">()</span>
109
<td class="function_type">
110
<span class="returnvalue">void</span>
112
<td class="function_name">
113
<a class="link" href="gst-plugins-base-libs-appsrc.html#gst-app-src-set-max-bytes" title="gst_app_src_set_max_bytes ()">gst_app_src_set_max_bytes</a> <span class="c_punctuation">()</span>
117
<td class="function_type">
118
<span class="returnvalue">guint64</span>
120
<td class="function_name">
121
<a class="link" href="gst-plugins-base-libs-appsrc.html#gst-app-src-get-max-bytes" title="gst_app_src_get_max_bytes ()">gst_app_src_get_max_bytes</a> <span class="c_punctuation">()</span>
125
<td class="function_type">
126
<span class="returnvalue">guint64</span>
128
<td class="function_name">
129
<a class="link" href="gst-plugins-base-libs-appsrc.html#gst-app-src-get-current-level-bytes" title="gst_app_src_get_current_level_bytes ()">gst_app_src_get_current_level_bytes</a> <span class="c_punctuation">()</span>
133
<td class="function_type">
134
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
136
<td class="function_name">
137
<a class="link" href="gst-plugins-base-libs-appsrc.html#gst-app-src-get-emit-signals" title="gst_app_src_get_emit_signals ()">gst_app_src_get_emit_signals</a> <span class="c_punctuation">()</span>
141
<td class="function_type">
142
<span class="returnvalue">void</span>
144
<td class="function_name">
145
<a class="link" href="gst-plugins-base-libs-appsrc.html#gst-app-src-set-emit-signals" title="gst_app_src_set_emit_signals ()">gst_app_src_set_emit_signals</a> <span class="c_punctuation">()</span>
149
<td class="function_type">
150
<span class="returnvalue">void</span>
152
<td class="function_name">
153
<a class="link" href="gst-plugins-base-libs-appsrc.html#gst-app-src-set-callbacks" title="gst_app_src_set_callbacks ()">gst_app_src_set_callbacks</a> <span class="c_punctuation">()</span>
157
<td class="function_type">
158
<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstPad.html#GstFlowReturn"><span class="returnvalue">GstFlowReturn</span></a>
160
<td class="function_name">
161
<a class="link" href="gst-plugins-base-libs-appsrc.html#gst-app-src-push-buffer" title="gst_app_src_push_buffer ()">gst_app_src_push_buffer</a> <span class="c_punctuation">()</span>
165
<td class="function_type">
166
<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstPad.html#GstFlowReturn"><span class="returnvalue">GstFlowReturn</span></a>
168
<td class="function_name">
169
<a class="link" href="gst-plugins-base-libs-appsrc.html#gst-app-src-end-of-stream" title="gst_app_src_end_of_stream ()">gst_app_src_end_of_stream</a> <span class="c_punctuation">()</span>
175
<div class="refsect1">
176
<a name="gst-plugins-base-libs-appsrc.other"></a><h2>Types and Values</h2>
177
<div class="informaltable"><table width="100%" border="0">
179
<col width="150px" class="name">
180
<col class="description">
184
<td class="datatype_keyword">enum</td>
185
<td class="function_name"><a class="link" href="gst-plugins-base-libs-appsrc.html#GstAppStreamType" title="enum GstAppStreamType">GstAppStreamType</a></td>
188
<td class="datatype_keyword"> </td>
189
<td class="function_name"><a class="link" href="gst-plugins-base-libs-appsrc.html#GstAppSrcCallbacks" title="GstAppSrcCallbacks">GstAppSrcCallbacks</a></td>
194
<div class="refsect1">
195
<a name="gst-plugins-base-libs-appsrc.object-hierarchy"></a><h2>Object Hierarchy</h2>
199
<div class="refsect1">
200
<a name="gst-plugins-base-libs-appsrc.includes"></a><h2>Includes</h2>
201
<pre class="synopsis">#include <gst/app/gstappsrc.h>
77
204
<div class="refsect1">
78
205
<a name="gst-plugins-base-libs-appsrc.description"></a><h2>Description</h2>
80
The appsrc element can be used by applications to insert data into a
206
<p>The appsrc element can be used by applications to insert data into a
81
207
GStreamer pipeline. Unlike most GStreamer elements, Appsrc provides
82
external API functions.
85
appsrc can be used by linking with the libgstapp library to access the
86
methods directly or by using the appsrc action signals.
89
Before operating appsrc, the caps property must be set to a fixed caps
208
external API functions.</p>
209
<p>appsrc can be used by linking with the libgstapp library to access the
210
methods directly or by using the appsrc action signals.</p>
211
<p>Before operating appsrc, the caps property must be set to a fixed caps
90
212
describing the format of the data that will be pushed with appsrc. An
91
213
exception to this is when pushing buffers with unknown caps, in which case no
92
214
caps should be set. This is typically true of file-like sources that push raw
96
The main way of handing data to the appsrc element is by calling the
97
<a class="link" href="gst-plugins-base-libs-appsrc.html#gst-app-src-push-buffer" title="gst_app_src_push_buffer ()"><code class="function">gst_app_src_push_buffer()</code></a> method or by emitting the push-buffer action signal.
216
<p>The main way of handing data to the appsrc element is by calling the
217
<a class="link" href="gst-plugins-base-libs-appsrc.html#gst-app-src-push-buffer" title="gst_app_src_push_buffer ()"><code class="function">gst_app_src_push_buffer()</code></a> method or by emitting the push-buffer action signal.
98
218
This will put the buffer onto a queue from which appsrc will read from in its
99
219
streaming thread. It is important to note that data transport will not happen
100
from the thread that performed the push-buffer call.
103
The "max-bytes" property controls how much data can be queued in appsrc
220
from the thread that performed the push-buffer call.</p>
221
<p>The "max-bytes" property controls how much data can be queued in appsrc
104
222
before appsrc considers the queue full. A filled internal queue will always
105
223
signal the "enough-data" signal, which signals the application that it should
106
224
stop pushing data into appsrc. The "block" property will cause appsrc to
107
block the push-buffer method until free data becomes available again.
110
When the internal queue is running out of data, the "need-data" signal is
225
block the push-buffer method until free data becomes available again.</p>
226
<p>When the internal queue is running out of data, the "need-data" signal is
111
227
emitted, which signals the application that it should start pushing more data
115
In addition to the "need-data" and "enough-data" signals, appsrc can emit the
229
<p>In addition to the "need-data" and "enough-data" signals, appsrc can emit the
116
230
"seek-data" signal when the "stream-mode" property is set to "seekable" or
117
231
"random-access". The signal argument will contain the new desired position in
118
232
the stream expressed in the unit set with the "format" property. After
119
233
receiving the seek-data signal, the application should push-buffers from the
123
These signals allow the application to operate the appsrc in two different
127
The push model, in which the application repeatedly calls the push-buffer method
235
<p>These signals allow the application to operate the appsrc in two different
237
<p>The push model, in which the application repeatedly calls the push-buffer method
128
238
with a new buffer. Optionally, the queue size in the appsrc can be controlled
129
239
with the enough-data and need-data signals by respectively stopping/starting
130
240
the push-buffer calls. This is a typical mode of operation for the
131
241
stream-type "stream" and "seekable". Use this model when implementing various
132
network protocols or hardware devices.
135
The pull model where the need-data signal triggers the next push-buffer call.
242
network protocols or hardware devices.</p>
243
<p>The pull model where the need-data signal triggers the next push-buffer call.
136
244
This mode is typically used in the "random-access" stream-type. Use this
137
245
model for file access or other randomly accessable sources. In this mode, a
138
246
buffer of exactly the amount of bytes given by the need-data signal should be
142
In all modes, the size property on appsrc should contain the total stream
247
pushed into appsrc.</p>
248
<p>In all modes, the size property on appsrc should contain the total stream
143
249
size in bytes. Setting this property is mandatory in the random-access mode.
144
250
For the stream and seekable modes, setting this property is optional but
148
When the application is finished pushing data into appsrc, it should call
149
<a class="link" href="gst-plugins-base-libs-appsrc.html#gst-app-src-end-of-stream" title="gst_app_src_end_of_stream ()"><code class="function">gst_app_src_end_of_stream()</code></a> or emit the end-of-stream action signal. After
252
<p>When the application is finished pushing data into appsrc, it should call
253
<a class="link" href="gst-plugins-base-libs-appsrc.html#gst-app-src-end-of-stream" title="gst_app_src_end_of_stream ()"><code class="function">gst_app_src_end_of_stream()</code></a> or emit the end-of-stream action signal. After
150
254
this call, no more buffers can be pushed into appsrc until a flushing seek
151
happened or the state of the appsrc has gone through READY.
154
Last reviewed on 2008-12-17 (0.10.10)
255
happened or the state of the appsrc has gone through READY.</p>
256
<p>Last reviewed on 2008-12-17 (0.10.10)</p>
157
258
<div class="refsect1">
158
<a name="gst-plugins-base-libs-appsrc.details"></a><h2>Details</h2>
159
<div class="refsect2">
160
<a name="GstAppStreamType"></a><h3>enum GstAppStreamType</h3>
161
<pre class="programlisting">typedef enum {
162
GST_APP_STREAM_TYPE_STREAM,
163
GST_APP_STREAM_TYPE_SEEKABLE,
164
GST_APP_STREAM_TYPE_RANDOM_ACCESS
170
<div class="variablelist"><table border="0" class="variablelist">
172
<col align="left" valign="top">
177
<td><p><a name="GST-APP-STREAM-TYPE-STREAM:CAPS"></a><span class="term"><code class="literal">GST_APP_STREAM_TYPE_STREAM</code></span></p></td>
178
<td>No seeking is supported in the stream, such as a
183
<td><p><a name="GST-APP-STREAM-TYPE-SEEKABLE:CAPS"></a><span class="term"><code class="literal">GST_APP_STREAM_TYPE_SEEKABLE</code></span></p></td>
184
<td>The stream is seekable but seeking might not
185
be very fast, such as data from a webserver.
189
<td><p><a name="GST-APP-STREAM-TYPE-RANDOM-ACCESS:CAPS"></a><span class="term"><code class="literal">GST_APP_STREAM_TYPE_RANDOM_ACCESS</code></span></p></td>
190
<td>The stream is seekable and seeking is fast,
191
such as in a local file.
198
<div class="refsect2">
199
<a name="gst-app-src-set-caps"></a><h3>gst_app_src_set_caps ()</h3>
200
<pre class="programlisting"><span class="returnvalue">void</span> gst_app_src_set_caps (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a> *appsrc</code></em>,
201
<em class="parameter"><code>const <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstCaps.html#GstCaps"><span class="type">GstCaps</span></a> *caps</code></em>);</pre>
203
Set the capabilities on the appsrc element. This function takes
259
<a name="gst-plugins-base-libs-appsrc.functions_details"></a><h2>Functions</h2>
260
<div class="refsect2">
261
<a name="gst-app-src-set-caps"></a><h3>gst_app_src_set_caps ()</h3>
262
<pre class="programlisting"><span class="returnvalue">void</span>
263
gst_app_src_set_caps (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a> *appsrc</code></em>,
264
<em class="parameter"><code>const <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstCaps.html#GstCaps"><span class="type">GstCaps</span></a> *caps</code></em>);</pre>
265
<p>Set the capabilities on the appsrc element. This function takes
204
266
a copy of the caps structure. After calling this method, the source will
205
only produce caps that match <em class="parameter"><code>caps</code></em>. <em class="parameter"><code>caps</code></em> must be fixed and the caps on the
206
buffers must match the caps or left NULL.
208
<div class="variablelist"><table border="0" class="variablelist">
210
<col align="left" valign="top">
215
<td><p><span class="term"><em class="parameter"><code>appsrc</code></em> :</span></p></td>
216
<td>a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a>
220
<td><p><span class="term"><em class="parameter"><code>caps</code></em> :</span></p></td>
227
<div class="refsect2">
228
<a name="gst-app-src-get-caps"></a><h3>gst_app_src_get_caps ()</h3>
229
<pre class="programlisting"><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstCaps.html#GstCaps"><span class="returnvalue">GstCaps</span></a> * gst_app_src_get_caps (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a> *appsrc</code></em>);</pre>
231
Get the configured caps on <em class="parameter"><code>appsrc</code></em>.
233
<div class="variablelist"><table border="0" class="variablelist">
235
<col align="left" valign="top">
240
<td><p><span class="term"><em class="parameter"><code>appsrc</code></em> :</span></p></td>
241
<td>a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a>
245
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
246
<td>the <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstCaps.html#GstCaps"><span class="type">GstCaps</span></a> produced by the source. <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstCaps.html#gst-caps-unref"><code class="function">gst_caps_unref()</code></a> after usage.</td>
252
<div class="refsect2">
253
<a name="gst-app-src-get-latency"></a><h3>gst_app_src_get_latency ()</h3>
254
<pre class="programlisting"><span class="returnvalue">void</span> gst_app_src_get_latency (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a> *appsrc</code></em>,
255
<em class="parameter"><code><span class="type">guint64</span> *min</code></em>,
256
<em class="parameter"><code><span class="type">guint64</span> *max</code></em>);</pre>
258
Retrieve the min and max latencies in <em class="parameter"><code>min</code></em> and <em class="parameter"><code>max</code></em> respectively.
260
<div class="variablelist"><table border="0" class="variablelist">
262
<col align="left" valign="top">
267
<td><p><span class="term"><em class="parameter"><code>appsrc</code></em> :</span></p></td>
268
<td>a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a>
272
<td><p><span class="term"><em class="parameter"><code>min</code></em> :</span></p></td>
273
<td>the min latency</td>
276
<td><p><span class="term"><em class="parameter"><code>max</code></em> :</span></p></td>
277
<td>the min latency</td>
283
<div class="refsect2">
284
<a name="gst-app-src-set-latency"></a><h3>gst_app_src_set_latency ()</h3>
285
<pre class="programlisting"><span class="returnvalue">void</span> gst_app_src_set_latency (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a> *appsrc</code></em>,
286
<em class="parameter"><code><span class="type">guint64</span> min</code></em>,
287
<em class="parameter"><code><span class="type">guint64</span> max</code></em>);</pre>
289
Configure the <em class="parameter"><code>min</code></em> and <em class="parameter"><code>max</code></em> latency in <em class="parameter"><code>src</code></em>. If <em class="parameter"><code>min</code></em> is set to -1, the
290
default latency calculations for pseudo-live sources will be used.
292
<div class="variablelist"><table border="0" class="variablelist">
294
<col align="left" valign="top">
299
<td><p><span class="term"><em class="parameter"><code>appsrc</code></em> :</span></p></td>
300
<td>a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a>
304
<td><p><span class="term"><em class="parameter"><code>min</code></em> :</span></p></td>
305
<td>the min latency</td>
308
<td><p><span class="term"><em class="parameter"><code>max</code></em> :</span></p></td>
309
<td>the min latency</td>
315
<div class="refsect2">
316
<a name="gst-app-src-set-size"></a><h3>gst_app_src_set_size ()</h3>
317
<pre class="programlisting"><span class="returnvalue">void</span> gst_app_src_set_size (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a> *appsrc</code></em>,
318
<em class="parameter"><code><span class="type">gint64</span> size</code></em>);</pre>
320
Set the size of the stream in bytes. A value of -1 means that the size is
323
<div class="variablelist"><table border="0" class="variablelist">
325
<col align="left" valign="top">
330
<td><p><span class="term"><em class="parameter"><code>appsrc</code></em> :</span></p></td>
331
<td>a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a>
335
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
336
<td>the size to set</td>
342
<div class="refsect2">
343
<a name="gst-app-src-get-size"></a><h3>gst_app_src_get_size ()</h3>
344
<pre class="programlisting"><span class="returnvalue">gint64</span> gst_app_src_get_size (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a> *appsrc</code></em>);</pre>
346
Get the size of the stream in bytes. A value of -1 means that the size is
349
<div class="variablelist"><table border="0" class="variablelist">
351
<col align="left" valign="top">
356
<td><p><span class="term"><em class="parameter"><code>appsrc</code></em> :</span></p></td>
357
<td>a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a>
361
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
362
<td>the size of the stream previously set with <a class="link" href="gst-plugins-base-libs-appsrc.html#gst-app-src-set-size" title="gst_app_src_set_size ()"><code class="function">gst_app_src_set_size()</code></a>;</td>
368
<div class="refsect2">
369
<a name="gst-app-src-set-stream-type"></a><h3>gst_app_src_set_stream_type ()</h3>
370
<pre class="programlisting"><span class="returnvalue">void</span> gst_app_src_set_stream_type (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a> *appsrc</code></em>,
371
<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-appsrc.html#GstAppStreamType" title="enum GstAppStreamType"><span class="type">GstAppStreamType</span></a> type</code></em>);</pre>
373
Set the stream type on <em class="parameter"><code>appsrc</code></em>. For seekable streams, the "seek" signal must
379
<div class="variablelist"><table border="0" class="variablelist">
381
<col align="left" valign="top">
386
<td><p><span class="term"><em class="parameter"><code>appsrc</code></em> :</span></p></td>
387
<td>a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a>
391
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
392
<td>the new state</td>
398
<div class="refsect2">
399
<a name="gst-app-src-get-stream-type"></a><h3>gst_app_src_get_stream_type ()</h3>
400
<pre class="programlisting"><a class="link" href="gst-plugins-base-libs-appsrc.html#GstAppStreamType" title="enum GstAppStreamType"><span class="returnvalue">GstAppStreamType</span></a> gst_app_src_get_stream_type (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a> *appsrc</code></em>);</pre>
402
Get the stream type. Control the stream type of <em class="parameter"><code>appsrc</code></em>
403
with <a class="link" href="gst-plugins-base-libs-appsrc.html#gst-app-src-set-stream-type" title="gst_app_src_set_stream_type ()"><code class="function">gst_app_src_set_stream_type()</code></a>.
405
<div class="variablelist"><table border="0" class="variablelist">
407
<col align="left" valign="top">
412
<td><p><span class="term"><em class="parameter"><code>appsrc</code></em> :</span></p></td>
413
<td>a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a>
417
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
418
<td>the stream type.</td>
424
<div class="refsect2">
425
<a name="gst-app-src-set-max-bytes"></a><h3>gst_app_src_set_max_bytes ()</h3>
426
<pre class="programlisting"><span class="returnvalue">void</span> gst_app_src_set_max_bytes (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a> *appsrc</code></em>,
427
<em class="parameter"><code><span class="type">guint64</span> max</code></em>);</pre>
429
Set the maximum amount of bytes that can be queued in <em class="parameter"><code>appsrc</code></em>.
430
After the maximum amount of bytes are queued, <em class="parameter"><code>appsrc</code></em> will emit the
431
"enough-data" signal.
433
<div class="variablelist"><table border="0" class="variablelist">
435
<col align="left" valign="top">
440
<td><p><span class="term"><em class="parameter"><code>appsrc</code></em> :</span></p></td>
441
<td>a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a>
445
<td><p><span class="term"><em class="parameter"><code>max</code></em> :</span></p></td>
446
<td>the maximum number of bytes to queue</td>
452
<div class="refsect2">
453
<a name="gst-app-src-get-max-bytes"></a><h3>gst_app_src_get_max_bytes ()</h3>
454
<pre class="programlisting"><span class="returnvalue">guint64</span> gst_app_src_get_max_bytes (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a> *appsrc</code></em>);</pre>
456
Get the maximum amount of bytes that can be queued in <em class="parameter"><code>appsrc</code></em>.
458
<div class="variablelist"><table border="0" class="variablelist">
460
<col align="left" valign="top">
465
<td><p><span class="term"><em class="parameter"><code>appsrc</code></em> :</span></p></td>
466
<td>a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a>
470
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
471
<td>The maximum amount of bytes that can be queued.</td>
477
<div class="refsect2">
478
<a name="gst-app-src-get-current-level-bytes"></a><h3>gst_app_src_get_current_level_bytes ()</h3>
479
<pre class="programlisting"><span class="returnvalue">guint64</span> gst_app_src_get_current_level_bytes (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a> *appsrc</code></em>);</pre>
481
Get the number of currently queued bytes inside <em class="parameter"><code>appsrc</code></em>.
483
<div class="variablelist"><table border="0" class="variablelist">
485
<col align="left" valign="top">
490
<td><p><span class="term"><em class="parameter"><code>appsrc</code></em> :</span></p></td>
491
<td>a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a>
495
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
496
<td>The number of currently queued bytes.</td>
267
only produce caps that match <em class="parameter"><code>caps</code></em>
268
. <em class="parameter"><code>caps</code></em>
269
must be fixed and the caps on the
270
buffers must match the caps or left NULL.</p>
271
<div class="refsect3">
272
<a name="id-1.2.5.4.8.2.5"></a><h4>Parameters</h4>
273
<div class="informaltable"><table width="100%" border="0">
275
<col width="150px" class="parameters_name">
276
<col class="parameters_description">
277
<col width="200px" class="parameters_annotations">
281
<td class="parameter_name"><p>appsrc</p></td>
282
<td class="parameter_description"><p>a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a></p></td>
283
<td class="parameter_annotations"> </td>
286
<td class="parameter_name"><p>caps</p></td>
287
<td class="parameter_description"><p>caps to set</p></td>
288
<td class="parameter_annotations"> </td>
295
<div class="refsect2">
296
<a name="gst-app-src-get-caps"></a><h3>gst_app_src_get_caps ()</h3>
297
<pre class="programlisting"><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstCaps.html#GstCaps"><span class="returnvalue">GstCaps</span></a> *
298
gst_app_src_get_caps (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a> *appsrc</code></em>);</pre>
299
<p>Get the configured caps on <em class="parameter"><code>appsrc</code></em>
301
<div class="refsect3">
302
<a name="id-1.2.5.4.8.3.5"></a><h4>Parameters</h4>
303
<div class="informaltable"><table width="100%" border="0">
305
<col width="150px" class="parameters_name">
306
<col class="parameters_description">
307
<col width="200px" class="parameters_annotations">
310
<td class="parameter_name"><p>appsrc</p></td>
311
<td class="parameter_description"><p>a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a></p></td>
312
<td class="parameter_annotations"> </td>
316
<div class="refsect3">
317
<a name="id-1.2.5.4.8.3.6"></a><h4>Returns</h4>
318
<p> the <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstCaps.html#GstCaps"><span class="type">GstCaps</span></a> produced by the source. <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstCaps.html#gst-caps-unref"><code class="function">gst_caps_unref()</code></a> after usage.</p>
323
<div class="refsect2">
324
<a name="gst-app-src-get-latency"></a><h3>gst_app_src_get_latency ()</h3>
325
<pre class="programlisting"><span class="returnvalue">void</span>
326
gst_app_src_get_latency (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a> *appsrc</code></em>,
327
<em class="parameter"><code><span class="type">guint64</span> *min</code></em>,
328
<em class="parameter"><code><span class="type">guint64</span> *max</code></em>);</pre>
329
<p>Retrieve the min and max latencies in <em class="parameter"><code>min</code></em>
330
and <em class="parameter"><code>max</code></em>
332
<div class="refsect3">
333
<a name="id-1.2.5.4.8.4.5"></a><h4>Parameters</h4>
334
<div class="informaltable"><table width="100%" border="0">
336
<col width="150px" class="parameters_name">
337
<col class="parameters_description">
338
<col width="200px" class="parameters_annotations">
342
<td class="parameter_name"><p>appsrc</p></td>
343
<td class="parameter_description"><p>a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a></p></td>
344
<td class="parameter_annotations"> </td>
347
<td class="parameter_name"><p>min</p></td>
348
<td class="parameter_description"><p>the min latency</p></td>
349
<td class="parameter_annotations"> </td>
352
<td class="parameter_name"><p>max</p></td>
353
<td class="parameter_description"><p>the min latency</p></td>
354
<td class="parameter_annotations"> </td>
361
<div class="refsect2">
362
<a name="gst-app-src-set-latency"></a><h3>gst_app_src_set_latency ()</h3>
363
<pre class="programlisting"><span class="returnvalue">void</span>
364
gst_app_src_set_latency (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a> *appsrc</code></em>,
365
<em class="parameter"><code><span class="type">guint64</span> min</code></em>,
366
<em class="parameter"><code><span class="type">guint64</span> max</code></em>);</pre>
367
<p>Configure the <em class="parameter"><code>min</code></em>
368
and <em class="parameter"><code>max</code></em>
369
latency in <em class="parameter"><code>src</code></em>
370
. If <em class="parameter"><code>min</code></em>
372
default latency calculations for pseudo-live sources will be used.</p>
373
<div class="refsect3">
374
<a name="id-1.2.5.4.8.5.5"></a><h4>Parameters</h4>
375
<div class="informaltable"><table width="100%" border="0">
377
<col width="150px" class="parameters_name">
378
<col class="parameters_description">
379
<col width="200px" class="parameters_annotations">
383
<td class="parameter_name"><p>appsrc</p></td>
384
<td class="parameter_description"><p>a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a></p></td>
385
<td class="parameter_annotations"> </td>
388
<td class="parameter_name"><p>min</p></td>
389
<td class="parameter_description"><p>the min latency</p></td>
390
<td class="parameter_annotations"> </td>
393
<td class="parameter_name"><p>max</p></td>
394
<td class="parameter_description"><p>the min latency</p></td>
395
<td class="parameter_annotations"> </td>
402
<div class="refsect2">
403
<a name="gst-app-src-set-size"></a><h3>gst_app_src_set_size ()</h3>
404
<pre class="programlisting"><span class="returnvalue">void</span>
405
gst_app_src_set_size (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a> *appsrc</code></em>,
406
<em class="parameter"><code><span class="type">gint64</span> size</code></em>);</pre>
407
<p>Set the size of the stream in bytes. A value of -1 means that the size is
409
<div class="refsect3">
410
<a name="id-1.2.5.4.8.6.5"></a><h4>Parameters</h4>
411
<div class="informaltable"><table width="100%" border="0">
413
<col width="150px" class="parameters_name">
414
<col class="parameters_description">
415
<col width="200px" class="parameters_annotations">
419
<td class="parameter_name"><p>appsrc</p></td>
420
<td class="parameter_description"><p>a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a></p></td>
421
<td class="parameter_annotations"> </td>
424
<td class="parameter_name"><p>size</p></td>
425
<td class="parameter_description"><p>the size to set</p></td>
426
<td class="parameter_annotations"> </td>
433
<div class="refsect2">
434
<a name="gst-app-src-get-size"></a><h3>gst_app_src_get_size ()</h3>
435
<pre class="programlisting"><span class="returnvalue">gint64</span>
436
gst_app_src_get_size (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a> *appsrc</code></em>);</pre>
437
<p>Get the size of the stream in bytes. A value of -1 means that the size is
439
<div class="refsect3">
440
<a name="id-1.2.5.4.8.7.5"></a><h4>Parameters</h4>
441
<div class="informaltable"><table width="100%" border="0">
443
<col width="150px" class="parameters_name">
444
<col class="parameters_description">
445
<col width="200px" class="parameters_annotations">
448
<td class="parameter_name"><p>appsrc</p></td>
449
<td class="parameter_description"><p>a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a></p></td>
450
<td class="parameter_annotations"> </td>
454
<div class="refsect3">
455
<a name="id-1.2.5.4.8.7.6"></a><h4>Returns</h4>
456
<p> the size of the stream previously set with <a class="link" href="gst-plugins-base-libs-appsrc.html#gst-app-src-set-size" title="gst_app_src_set_size ()"><code class="function">gst_app_src_set_size()</code></a>;</p>
461
<div class="refsect2">
462
<a name="gst-app-src-set-stream-type"></a><h3>gst_app_src_set_stream_type ()</h3>
463
<pre class="programlisting"><span class="returnvalue">void</span>
464
gst_app_src_set_stream_type (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a> *appsrc</code></em>,
465
<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-appsrc.html#GstAppStreamType" title="enum GstAppStreamType"><span class="type">GstAppStreamType</span></a> type</code></em>);</pre>
466
<p>Set the stream type on <em class="parameter"><code>appsrc</code></em>
467
. For seekable streams, the "seek" signal must
469
<p>A stream_type stream</p>
470
<div class="refsect3">
471
<a name="id-1.2.5.4.8.8.6"></a><h4>Parameters</h4>
472
<div class="informaltable"><table width="100%" border="0">
474
<col width="150px" class="parameters_name">
475
<col class="parameters_description">
476
<col width="200px" class="parameters_annotations">
480
<td class="parameter_name"><p>appsrc</p></td>
481
<td class="parameter_description"><p>a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a></p></td>
482
<td class="parameter_annotations"> </td>
485
<td class="parameter_name"><p>type</p></td>
486
<td class="parameter_description"><p>the new state</p></td>
487
<td class="parameter_annotations"> </td>
494
<div class="refsect2">
495
<a name="gst-app-src-get-stream-type"></a><h3>gst_app_src_get_stream_type ()</h3>
496
<pre class="programlisting"><a class="link" href="gst-plugins-base-libs-appsrc.html#GstAppStreamType" title="enum GstAppStreamType"><span class="returnvalue">GstAppStreamType</span></a>
497
gst_app_src_get_stream_type (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a> *appsrc</code></em>);</pre>
498
<p>Get the stream type. Control the stream type of <em class="parameter"><code>appsrc</code></em>
500
with <a class="link" href="gst-plugins-base-libs-appsrc.html#gst-app-src-set-stream-type" title="gst_app_src_set_stream_type ()"><code class="function">gst_app_src_set_stream_type()</code></a>.</p>
501
<div class="refsect3">
502
<a name="id-1.2.5.4.8.9.5"></a><h4>Parameters</h4>
503
<div class="informaltable"><table width="100%" border="0">
505
<col width="150px" class="parameters_name">
506
<col class="parameters_description">
507
<col width="200px" class="parameters_annotations">
510
<td class="parameter_name"><p>appsrc</p></td>
511
<td class="parameter_description"><p>a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a></p></td>
512
<td class="parameter_annotations"> </td>
516
<div class="refsect3">
517
<a name="id-1.2.5.4.8.9.6"></a><h4>Returns</h4>
518
<p> the stream type.</p>
523
<div class="refsect2">
524
<a name="gst-app-src-set-max-bytes"></a><h3>gst_app_src_set_max_bytes ()</h3>
525
<pre class="programlisting"><span class="returnvalue">void</span>
526
gst_app_src_set_max_bytes (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a> *appsrc</code></em>,
527
<em class="parameter"><code><span class="type">guint64</span> max</code></em>);</pre>
528
<p>Set the maximum amount of bytes that can be queued in <em class="parameter"><code>appsrc</code></em>
530
After the maximum amount of bytes are queued, <em class="parameter"><code>appsrc</code></em>
532
"enough-data" signal.</p>
533
<div class="refsect3">
534
<a name="id-1.2.5.4.8.10.5"></a><h4>Parameters</h4>
535
<div class="informaltable"><table width="100%" border="0">
537
<col width="150px" class="parameters_name">
538
<col class="parameters_description">
539
<col width="200px" class="parameters_annotations">
543
<td class="parameter_name"><p>appsrc</p></td>
544
<td class="parameter_description"><p>a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a></p></td>
545
<td class="parameter_annotations"> </td>
548
<td class="parameter_name"><p>max</p></td>
549
<td class="parameter_description"><p>the maximum number of bytes to queue</p></td>
550
<td class="parameter_annotations"> </td>
557
<div class="refsect2">
558
<a name="gst-app-src-get-max-bytes"></a><h3>gst_app_src_get_max_bytes ()</h3>
559
<pre class="programlisting"><span class="returnvalue">guint64</span>
560
gst_app_src_get_max_bytes (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a> *appsrc</code></em>);</pre>
561
<p>Get the maximum amount of bytes that can be queued in <em class="parameter"><code>appsrc</code></em>
563
<div class="refsect3">
564
<a name="id-1.2.5.4.8.11.5"></a><h4>Parameters</h4>
565
<div class="informaltable"><table width="100%" border="0">
567
<col width="150px" class="parameters_name">
568
<col class="parameters_description">
569
<col width="200px" class="parameters_annotations">
572
<td class="parameter_name"><p>appsrc</p></td>
573
<td class="parameter_description"><p>a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a></p></td>
574
<td class="parameter_annotations"> </td>
578
<div class="refsect3">
579
<a name="id-1.2.5.4.8.11.6"></a><h4>Returns</h4>
580
<p> The maximum amount of bytes that can be queued.</p>
585
<div class="refsect2">
586
<a name="gst-app-src-get-current-level-bytes"></a><h3>gst_app_src_get_current_level_bytes ()</h3>
587
<pre class="programlisting"><span class="returnvalue">guint64</span>
588
gst_app_src_get_current_level_bytes (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a> *appsrc</code></em>);</pre>
589
<p>Get the number of currently queued bytes inside <em class="parameter"><code>appsrc</code></em>
591
<div class="refsect3">
592
<a name="id-1.2.5.4.8.12.5"></a><h4>Parameters</h4>
593
<div class="informaltable"><table width="100%" border="0">
595
<col width="150px" class="parameters_name">
596
<col class="parameters_description">
597
<col width="200px" class="parameters_annotations">
600
<td class="parameter_name"><p>appsrc</p></td>
601
<td class="parameter_description"><p>a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a></p></td>
602
<td class="parameter_annotations"> </td>
606
<div class="refsect3">
607
<a name="id-1.2.5.4.8.12.6"></a><h4>Returns</h4>
608
<p> The number of currently queued bytes.</p>
500
611
<p class="since">Since 1.2</p>
503
614
<div class="refsect2">
504
<a name="gst-app-src-get-emit-signals"></a><h3>gst_app_src_get_emit_signals ()</h3>
505
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gst_app_src_get_emit_signals (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a> *appsrc</code></em>);</pre>
507
Check if appsrc will emit the "new-preroll" and "new-buffer" signals.
509
<div class="variablelist"><table border="0" class="variablelist">
615
<a name="gst-app-src-get-emit-signals"></a><h3>gst_app_src_get_emit_signals ()</h3>
616
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
617
gst_app_src_get_emit_signals (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a> *appsrc</code></em>);</pre>
618
<p>Check if appsrc will emit the "new-preroll" and "new-buffer" signals.</p>
619
<div class="refsect3">
620
<a name="id-1.2.5.4.8.13.5"></a><h4>Parameters</h4>
621
<div class="informaltable"><table width="100%" border="0">
511
<col align="left" valign="top">
623
<col width="150px" class="parameters_name">
624
<col class="parameters_description">
625
<col width="200px" class="parameters_annotations">
516
<td><p><span class="term"><em class="parameter"><code>appsrc</code></em> :</span></p></td>
517
<td>a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a>
521
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
523
<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>appsrc</code></em> is emitting the "new-preroll" and "new-buffer"
628
<td class="parameter_name"><p>appsrc</p></td>
629
<td class="parameter_description"><p>a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a></p></td>
630
<td class="parameter_annotations"> </td>
634
<div class="refsect3">
635
<a name="id-1.2.5.4.8.13.6"></a><h4>Returns</h4>
636
<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>appsrc</code></em>
637
is emitting the "new-preroll" and "new-buffer"
530
643
<div class="refsect2">
531
<a name="gst-app-src-set-emit-signals"></a><h3>gst_app_src_set_emit_signals ()</h3>
532
<pre class="programlisting"><span class="returnvalue">void</span> gst_app_src_set_emit_signals (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a> *appsrc</code></em>,
533
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> emit</code></em>);</pre>
535
Make appsrc emit the "new-preroll" and "new-buffer" signals. This option is
644
<a name="gst-app-src-set-emit-signals"></a><h3>gst_app_src_set_emit_signals ()</h3>
645
<pre class="programlisting"><span class="returnvalue">void</span>
646
gst_app_src_set_emit_signals (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a> *appsrc</code></em>,
647
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> emit</code></em>);</pre>
648
<p>Make appsrc emit the "new-preroll" and "new-buffer" signals. This option is
536
649
by default disabled because signal emission is expensive and unneeded when
537
the application prefers to operate in pull mode.
539
<div class="variablelist"><table border="0" class="variablelist">
541
<col align="left" valign="top">
546
<td><p><span class="term"><em class="parameter"><code>appsrc</code></em> :</span></p></td>
547
<td>a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a>
551
<td><p><span class="term"><em class="parameter"><code>emit</code></em> :</span></p></td>
552
<td>the new state</td>
650
the application prefers to operate in pull mode.</p>
651
<div class="refsect3">
652
<a name="id-1.2.5.4.8.14.5"></a><h4>Parameters</h4>
653
<div class="informaltable"><table width="100%" border="0">
655
<col width="150px" class="parameters_name">
656
<col class="parameters_description">
657
<col width="200px" class="parameters_annotations">
661
<td class="parameter_name"><p>appsrc</p></td>
662
<td class="parameter_description"><p>a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a></p></td>
663
<td class="parameter_annotations"> </td>
666
<td class="parameter_name"><p>emit</p></td>
667
<td class="parameter_description"><p>the new state</p></td>
668
<td class="parameter_annotations"> </td>
675
<div class="refsect2">
676
<a name="gst-app-src-set-callbacks"></a><h3>gst_app_src_set_callbacks ()</h3>
677
<pre class="programlisting"><span class="returnvalue">void</span>
678
gst_app_src_set_callbacks (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a> *appsrc</code></em>,
679
<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-appsrc.html#GstAppSrcCallbacks" title="GstAppSrcCallbacks"><span class="type">GstAppSrcCallbacks</span></a> *callbacks</code></em>,
680
<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>,
681
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> notify</code></em>);</pre>
682
<p>Set callbacks which will be executed when data is needed, enough data has
683
been collected or when a seek should be performed.
684
This is an alternative to using the signals, it has lower overhead and is thus
685
less expensive, but also less flexible.</p>
686
<p>If callbacks are installed, no signals will be emitted for performance
688
<div class="refsect3">
689
<a name="id-1.2.5.4.8.15.6"></a><h4>Parameters</h4>
690
<div class="informaltable"><table width="100%" border="0">
692
<col width="150px" class="parameters_name">
693
<col class="parameters_description">
694
<col width="200px" class="parameters_annotations">
698
<td class="parameter_name"><p>appsrc</p></td>
699
<td class="parameter_description"><p>a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a></p></td>
700
<td class="parameter_annotations"> </td>
703
<td class="parameter_name"><p>callbacks</p></td>
704
<td class="parameter_description"><p>the callbacks</p></td>
705
<td class="parameter_annotations"> </td>
708
<td class="parameter_name"><p>user_data</p></td>
709
<td class="parameter_description"><p>a user_data argument for the callbacks</p></td>
710
<td class="parameter_annotations"> </td>
713
<td class="parameter_name"><p>notify</p></td>
714
<td class="parameter_description"><p>a destroy notify function</p></td>
715
<td class="parameter_annotations"> </td>
722
<div class="refsect2">
723
<a name="gst-app-src-push-buffer"></a><h3>gst_app_src_push_buffer ()</h3>
724
<pre class="programlisting"><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstPad.html#GstFlowReturn"><span class="returnvalue">GstFlowReturn</span></a>
725
gst_app_src_push_buffer (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a> *appsrc</code></em>,
726
<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> *buffer</code></em>);</pre>
727
<p>Adds a buffer to the queue of buffers that the appsrc element will
728
push to its source pad. This function takes ownership of the buffer.</p>
729
<p>When the block property is TRUE, this function can block until free
730
space becomes available in the queue.</p>
731
<div class="refsect3">
732
<a name="id-1.2.5.4.8.16.6"></a><h4>Parameters</h4>
733
<div class="informaltable"><table width="100%" border="0">
735
<col width="150px" class="parameters_name">
736
<col class="parameters_description">
737
<col width="200px" class="parameters_annotations">
741
<td class="parameter_name"><p>appsrc</p></td>
742
<td class="parameter_description"><p>a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a></p></td>
743
<td class="parameter_annotations"> </td>
746
<td class="parameter_name"><p>buffer</p></td>
747
<td class="parameter_description"><p> a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBuffer"><span class="type">GstBuffer</span></a> to push. </p></td>
748
<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>
753
<div class="refsect3">
754
<a name="id-1.2.5.4.8.16.7"></a><h4>Returns</h4>
755
<p> <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstPad.html#GST-FLOW-OK:CAPS"><span class="type">GST_FLOW_OK</span></a> when the buffer was successfuly queued.
756
<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstPad.html#GST-FLOW-FLUSHING:CAPS"><span class="type">GST_FLOW_FLUSHING</span></a> when <em class="parameter"><code>appsrc</code></em>
757
is not PAUSED or PLAYING.
758
<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstPad.html#GST-FLOW-EOS:CAPS"><span class="type">GST_FLOW_EOS</span></a> when EOS occured.</p>
763
<div class="refsect2">
764
<a name="gst-app-src-end-of-stream"></a><h3>gst_app_src_end_of_stream ()</h3>
765
<pre class="programlisting"><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstPad.html#GstFlowReturn"><span class="returnvalue">GstFlowReturn</span></a>
766
gst_app_src_end_of_stream (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a> *appsrc</code></em>);</pre>
767
<p>Indicates to the appsrc element that the last buffer queued in the
768
element is the last buffer of the stream.</p>
769
<div class="refsect3">
770
<a name="id-1.2.5.4.8.17.5"></a><h4>Parameters</h4>
771
<div class="informaltable"><table width="100%" border="0">
773
<col width="150px" class="parameters_name">
774
<col class="parameters_description">
775
<col width="200px" class="parameters_annotations">
778
<td class="parameter_name"><p>appsrc</p></td>
779
<td class="parameter_description"><p>a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base/html/gst-plugins-base-plugins-appsrc.html#GstAppSrc"><span class="type">GstAppSrc</span></a></p></td>
780
<td class="parameter_annotations"> </td>
784
<div class="refsect3">
785
<a name="id-1.2.5.4.8.17.6"></a><h4>Returns</h4>
786
<p> <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstPad.html#GST-FLOW-OK:CAPS"><span class="type">GST_FLOW_OK</span></a> when the EOS was successfuly queued.
787
<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstPad.html#GST-FLOW-FLUSHING:CAPS"><span class="type">GST_FLOW_FLUSHING</span></a> when <em class="parameter"><code>appsrc</code></em>
788
is not PAUSED or PLAYING.</p>
793
<div class="refsect1">
794
<a name="gst-plugins-base-libs-appsrc.other_details"></a><h2>Types and Values</h2>
795
<div class="refsect2">
796
<a name="GstAppStreamType"></a><h3>enum GstAppStreamType</h3>
797
<p>The stream type.</p>
798
<div class="refsect3">
799
<a name="id-1.2.5.4.9.2.4"></a><h4>Members</h4>
800
<div class="informaltable"><table width="100%" border="0">
802
<col width="300px" class="enum_members_name">
803
<col class="enum_members_description">
804
<col width="200px" class="enum_members_annotations">
808
<td class="enum_member_name"><p><a name="GST-APP-STREAM-TYPE-STREAM:CAPS"></a>GST_APP_STREAM_TYPE_STREAM</p></td>
809
<td class="enum_member_description">
810
<p>No seeking is supported in the stream, such as a
813
<td class="enum_member_annotations"> </td>
816
<td class="enum_member_name"><p><a name="GST-APP-STREAM-TYPE-SEEKABLE:CAPS"></a>GST_APP_STREAM_TYPE_SEEKABLE</p></td>
817
<td class="enum_member_description">
818
<p>The stream is seekable but seeking might not
819
be very fast, such as data from a webserver.</p>
821
<td class="enum_member_annotations"> </td>
824
<td class="enum_member_name"><p><a name="GST-APP-STREAM-TYPE-RANDOM-ACCESS:CAPS"></a>GST_APP_STREAM_TYPE_RANDOM_ACCESS</p></td>
825
<td class="enum_member_description">
826
<p>The stream is seekable and seeking is fast,
827
such as in a local file.</p>
829
<td class="enum_member_annotations"> </td>
558
836
<div class="refsect2">