diff options
author | Lars Knoll <lars.knoll@qt.io> | 2021-02-14 21:54:37 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2021-03-02 14:50:02 +0000 |
commit | 6d20a812549f312e7a3f6dcc60a2e8c4221dca80 (patch) | |
tree | f5653c6a98cabc61aa7ac3c80d4abe42b64289a3 /examples | |
parent | eb98dd37047de88f8eefcae5c3ef651da1a260df (diff) |
Start rewriting the gstreamer player backend
Use our QGst* wrappers to simplify the code base. Those classes
are significantly easier to use than the Gstreamer C API.
The new implementation doesn't use playbin, but does recreate
a similar pipeline as playbin uses. This simplifies the Qt
integration as we can now deal with a directly defined pipeline
and don't have to insert our own elements into the pre-existing
pipeline at the right moment.
Handling of multiple streams is missing right now, but that had
never been implemented in QMediaPlayer before neither.
Change-Id: I77a2df246e0ab20b307d0c45645f896bf127d756
Reviewed-by: Doris Verria <doris.verria@qt.io>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/multimediawidgets/player/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/multimediawidgets/player/main.cpp b/examples/multimediawidgets/player/main.cpp index 4e2b9b6b3..cc4418a1d 100644 --- a/examples/multimediawidgets/player/main.cpp +++ b/examples/multimediawidgets/player/main.cpp @@ -82,7 +82,7 @@ int main(int argc, char *argv[]) if (!parser.positionalArguments().isEmpty() && player.isPlayerAvailable()) { QList<QUrl> urls; for (auto &a: parser.positionalArguments()) - urls.append(QUrl::fromUserInput(a, QDir::currentPath(), QUrl::AssumeLocalFile)); + urls.append(QUrl::fromUserInput(a, QDir::currentPath())); player.addToPlaylist(urls); } |