- Qt 5.15
- Qt Multimedia
- Qt Multimedia GStreamer on Android
- Qt 5.15.11 Reference Documentation

# 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