installPluginsAsync
gstpbutils.types.InstallPluginsReturn installPluginsAsync(string[] details, gstpbutils.install_plugins_context.InstallPluginsContext ctx, gstpbutils.types.InstallPluginsResultFunc func)Requests plugin installation without blocking. Once the plugins have been installed or installation has failed, func will be called with the result of the installation and your provided user_data pointer.
This function requires a running GLib/Gtk main loop. If you are not running a GLib/Gtk main loop, make sure to regularly call g_main_context_iteration(NULL,FALSE).
The installer strings that make up detail are typically obtained by calling [gstpbutils.global.missingPluginMessageGetInstallerDetail] on missing-plugin messages that have been caught on a pipeline's bus or created by the application via the provided API, such as [gstpbutils.global.missingElementMessageNew].
It is possible to request the installation of multiple missing plugins in one go (as might be required if there is a demuxer for a certain format installed but no suitable video decoder and no suitable audio decoder).
Parameters
details | NULL-terminated array of installer string details (see below) |
ctx | a #GstInstallPluginsContext, or NULL |
func | the function to call when the installer program returns |