summaryrefslogtreecommitdiffstats
path: root/src/multimedia/playback
diff options
context:
space:
mode:
authorQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2019-08-20 03:01:23 +0200
committerQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2019-08-20 03:01:24 +0200
commitc796fffc8d727c2eb469cdb183b7b1d4ddab0a68 (patch)
treef68385bcae10575566bb1039cdeada618e39b4ac /src/multimedia/playback
parent7b1bb300166aa19dc0f4c6838eb6d284af73236c (diff)
parent9fba45e999f7c65f3cecf8fc914befd3d8b6db80 (diff)
Merge remote-tracking branch 'origin/5.12' into 5.13
Diffstat (limited to 'src/multimedia/playback')
-rw-r--r--src/multimedia/playback/qmediaplayer.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/multimedia/playback/qmediaplayer.cpp b/src/multimedia/playback/qmediaplayer.cpp
index 81d525ea8..c4d574d4e 100644
--- a/src/multimedia/playback/qmediaplayer.cpp
+++ b/src/multimedia/playback/qmediaplayer.cpp
@@ -1005,6 +1005,18 @@ void QMediaPlayer::setPlaybackRate(qreal rate)
It does not wait for the media to finish loading and does not check for errors. Listen for
the mediaStatusChanged() and error() signals to be notified when the media is loaded and
when an error occurs during loading.
+
+ Since Qt 5.12.2, the url scheme \c gst-pipeline provides custom pipelines
+ for the GStreamer backend.
+
+ \snippet multimedia-snippets/media.cpp Pipeline
+
+ If the pipeline contains a video sink element named \c qtvideosink,
+ current QVideoWidget can be used to render the video.
+
+ If the pipeline contains appsrc element, it will be used to push data from \a stream.
+
+ \snippet multimedia-snippets/media.cpp Pipeline appsrc
*/
void QMediaPlayer::setMedia(const QMediaContent &media, QIODevice *stream)