mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-01 22:21:13 +00:00
docs: tutorials: playback-3: flesh out build instructions
Add information about how to compile this file. The code in this tutorial also requires `gstreamer-audio-1.0`, so we cannot use the commands from the previous tutorial. Closes https://gitlab.freedesktop.org/gstreamer/gst-docs/-/merge_requests/164/ Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1324>
This commit is contained in:
parent
bcff6abafd
commit
5c9fe1dc3c
1 changed files with 23 additions and 0 deletions
|
@ -180,6 +180,29 @@ int main(int argc, char *argv[]) {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
> ![information] If you need help to compile this code, refer to the
|
||||||
|
> **Building the tutorials** section for your platform: [Mac] or
|
||||||
|
> [Windows] or use this specific command on Linux:
|
||||||
|
>
|
||||||
|
> `` gcc playback-tutorial-3.c -o playback-tutorial-3 `pkg-config --cflags --libs gstreamer-1.0 gstreamer-audio-1.0` ``
|
||||||
|
>
|
||||||
|
> If you need help to run this code, refer to the **Running the
|
||||||
|
> tutorials** section for your platform: [Mac OS X], [Windows][1], for
|
||||||
|
> [iOS] or for [android].
|
||||||
|
>
|
||||||
|
> This tutorial opens a window and displays a movie, with accompanying
|
||||||
|
> audio. The media is fetched from the Internet, so the window might
|
||||||
|
> take a few seconds to appear, depending on your connection
|
||||||
|
> speed. In the console window, you should see a message indicating
|
||||||
|
> where the media is being stored, and a text graph representing the
|
||||||
|
> downloaded portions and the current position. A buffering message
|
||||||
|
> appears whenever buffering is required, which might never happen is
|
||||||
|
> your network connection is fast enough
|
||||||
|
>
|
||||||
|
> Required libraries: `gstreamer-1.0` `gstreamer-audio-1.0`
|
||||||
|
|
||||||
|
|
||||||
To use an `appsrc` as the source for the pipeline, simply instantiate a
|
To use an `appsrc` as the source for the pipeline, simply instantiate a
|
||||||
`playbin` and set its URI to `appsrc://`
|
`playbin` and set its URI to `appsrc://`
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue