diff options
author | VaL Doroshchuk <valentyn.doroshchuk@qt.io> | 2019-07-12 13:45:05 +0200 |
---|---|---|
committer | VaL Doroshchuk <valentyn.doroshchuk@qt.io> | 2019-08-14 09:49:49 +0200 |
commit | 9fba45e999f7c65f3cecf8fc914befd3d8b6db80 (patch) | |
tree | 49cd4ee1ddc4837905ae252c450d0946030cd593 /src/multimedia/playback | |
parent | 075fa6203856bdf9f58e737ee2f5d2a843a85cad (diff) |
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 <timur.pocheptsov@qt.io>
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'src/multimedia/playback')
-rw-r--r-- | src/multimedia/playback/qmediaplayer.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
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) |