mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
gst/playback/gstplaybin.c: Improve docs: add section about BUFFERING messages sent by playbin.
Original commit message from CVS: * gst/playback/gstplaybin.c: Improve docs: add section about BUFFERING messages sent by playbin.
This commit is contained in:
parent
dbf7690ce4
commit
8332201367
2 changed files with 26 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2006-08-29 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* gst/playback/gstplaybin.c:
|
||||
Improve docs: add section about BUFFERING messages sent by playbin.
|
||||
|
||||
2006-08-29 Michael Smith <msmith@fluendo.com>
|
||||
|
||||
* ext/vorbis/vorbisenc.c: (gst_vorbis_enc_push_buffer),
|
||||
|
|
|
@ -161,6 +161,27 @@
|
|||
* new_state=PAUSED), since before that the list might not be complete yet or
|
||||
* not contain all available information (like language-codes).
|
||||
* </para>
|
||||
* <title>Buffering status</title>
|
||||
* <para>
|
||||
* Playbin handles buffering automatically. When playbin is buffering, it
|
||||
* will post BUFFERING messages on the bus with a percentage value that
|
||||
* shows the progress of the buffering. Applications may want to show this
|
||||
* information to the user in some form or another. Here is how to extract
|
||||
* the percentage information from the message:
|
||||
* </para>
|
||||
* <para>
|
||||
* <programlisting>
|
||||
* switch (GST_MESSAGE_TYPE (msg)) {
|
||||
* case GST_MESSAGE_BUFFERING: {
|
||||
* gint percent = 0;
|
||||
* gst_structure_get_int (msg->structure, "buffer-percent", &percent);
|
||||
* g_print ("Buffering (%%u percent done)", percent);
|
||||
* break;
|
||||
* }
|
||||
* ...
|
||||
* }
|
||||
* </programlisting>
|
||||
* </para>
|
||||
* <title>Embedding the video window in your application</title>
|
||||
* <para>
|
||||
* By default, playbin (or rather the video sinks used) will create their own
|
||||
|
|
Loading…
Reference in a new issue