summaryrefslogtreecommitdiff
path: root/sdk-basic-media-player.md
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@gnome.org>2016-06-17 18:41:07 -0400
committerThibault Saunier <tsaunier@gnome.org>2016-06-17 18:42:07 -0400
commit1c926934ab2873ddf909dfa0ae894c34666ea114 (patch)
treeaba4eaea37301e9fec7b88c6ccaaaa8992ea5bfd /sdk-basic-media-player.md
parent208c456f816bb2782cc5c47c5024e88479287c0c (diff)
Avoid having several 'h1' title per page
Each page has one title and it looks better like that
Diffstat (limited to 'sdk-basic-media-player.md')
-rw-r--r--sdk-basic-media-player.md14
1 files changed, 7 insertions, 7 deletions
diff --git a/sdk-basic-media-player.md b/sdk-basic-media-player.md
index 03a492f..59b8d63 100644
--- a/sdk-basic-media-player.md
+++ b/sdk-basic-media-player.md
@@ -1,6 +1,6 @@
# Basic Media Player
-# Goal
+## Goal
This tutorial shows how to create a basic media player with
[Qt](http://qt-project.org/) and
@@ -15,7 +15,7 @@ In particular, you will learn:
- How to create a video output
- Updating the GUI based on playback time
-# A media player with Qt
+## A media player with Qt
These files are located in the qt-gstreamer SDK's `examples/` directory.
@@ -29,7 +29,7 @@ each file to expand.
```
project(qtgst-example-player)
find_package(QtGStreamer REQUIRED)
-# automoc is now a built-in tool since CMake 2.8.6.
+## automoc is now a built-in tool since CMake 2.8.6.
if (${CMAKE_VERSION} VERSION_LESS "2.8.6")
find_package(Automoc4 REQUIRED)
else()
@@ -545,9 +545,9 @@ void Player::handlePipelineStateChange(const QGst::StateChangedMessagePtr & scm)
#include "moc_player.cpp"
```
-# Walkthrough
+## Walkthrough
-## Setting up GStreamer
+### Setting up GStreamer
We begin by looking at `main()`:
@@ -710,7 +710,7 @@ Finally, we tell `playbin` what to play by setting the `uri` property:
m_pipeline->setProperty("uri", realUri);
```
-## Starting Playback
+### Starting Playback
After `Player::setUri()` is called, `MediaApp::openFile()` calls
`play()` on the `Player` object:
@@ -861,7 +861,7 @@ Due to the way Qt handles signals that cross threads, there is no need
to worry about calling UI functions from outside the UI thread in this
example.
-# Conclusion
+## Conclusion
This tutorial has shown: