Qt Multimedia GStreamer on Android

This page covers the availability of GStreamer on Android.

Limitations

Since GStreamer is licensed under LGPL and distributed in archives (and should be statically linked), Qt Multimedia does not provide support of GStreamer on Android by default.

Therefore GStreamer support must be explicitly enabled by configuring Qt with the -gstreamer option.

Setup

The GStreamer project provides prebuilt binaries which you can download and unzip into any location of your choice.

The environment variable GSTREAMER_ROOT_ANDROID should be set to the location where you unzipped the downloaded package.

Application

Qt Multimedia does not contain any plugins and all needed plugins must be included and registered in applications manually by GST_PLUGIN_STATIC_DECLARE and GST_PLUGIN_STATIC_REGISTER after gst_init().

Please refer to the official manual on how to statically link plugins to an application.

https://gstreamer.freedesktop.org/documentation/gstreamer/gstplugin.html?gi-language=c#GST_PLUGIN_STATIC_REGISTER

© 2021 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.