components is to integrate as closely as possible with a GStreamer
pipeline, but to hide the complexity of media type detection and several
other rather complex topics that have been discussed in [Advanced
-GStreamer concepts](manual-advanced.md).
+GStreamer concepts](manual/advanced/index.md).
We currently recommend people to use either playbin (see
[Playbin](#playbin)) or decodebin (see [Decodebin](#decodebin)),
return 0;
}
-
+
```
Playbin has several features that have been discussed previously:
return 0;
}
-
+
```
Decodebin, similar to playbin, supports the following features:
Uridecodebin will also automatically insert buffering elements when the
uri is a slow network source. The buffering element will post BUFFERING
messages that the application needs to handle as explained in
-[Buffering](manual-buffering.md). The following properties can be used
+[Buffering](manual/advanced/buffering.md). The following properties can be used
to configure the buffering method:
- The buffer-size property allows you to configure a maximum size in
- With the download property you can enable the download buffering
method as described in [Download
- buffering](manual-buffering.md#download-buffering). Setting this
+ buffering](manual/advanced/buffering.md#download-buffering). Setting this
option to TRUE will only enable download buffering for selected
formats such as quicktime, flash video, avi and webm.
/* create audio output */
sink = gst_element_factory_make ("playsink", "sink");
- gst_util_set_object_arg (G_OBJECT (sink), "flags",
+ gst_util_set_object_arg (G_OBJECT (sink), "flags",
"soft-colorbalance+soft-volume+vis+text+audio+video");
gst_bin_add_many (GST_BIN (pipeline), dec, sink, NULL);
}
-
+
```
This example will show audio and video depending on what you give it.
Try this example on an audio file and you will see that it shows
visualizations. You can change the visualization at runtime by changing
the vis-plugin property.
-