From 9fba45e999f7c65f3cecf8fc914befd3d8b6db80 Mon Sep 17 00:00:00 2001 From: VaL Doroshchuk Date: Fri, 12 Jul 2019 13:45:05 +0200 Subject: GStreamer: Add docs for custom pipelines The feature was added in 5.12.2. And it is relevant only for GStreamer backend. Change-Id: I87e22e506158dc61bb7f111e74806e7eb8c28d7a Reviewed-by: Timur Pocheptsov Reviewed-by: Paul Wicking --- src/multimedia/playback/qmediaplayer.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/multimedia/playback') diff --git a/src/multimedia/playback/qmediaplayer.cpp b/src/multimedia/playback/qmediaplayer.cpp index e90035cce..0013b3459 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) -- cgit v1.2.3