:right-sidebar: True TypeFindFactory =================================================================== .. currentmodule:: gi.repository.Gst .. class:: TypeFindFactory(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.Gst.PluginFeature`, :class:`~gi.repository.Gst.Object`, :class:`~gi.repository.GObject.InitiallyUnowned`, :class:`~gi.repository.GObject.Object` :Constructors: :: TypeFindFactory(**properties) Methods ------- .. rst-class:: interim-class .. class:: TypeFindFactory :no-index: .. method:: call_function(find: ~gi.repository.Gst.TypeFind) -> None Calls the :obj:`~gi.repository.Gst.TypeFindFunction` associated with this factory. :param find: a properly setup :obj:`~gi.repository.Gst.TypeFind` entry. The get_data and suggest_type members must be set. .. method:: get_caps() -> ~gi.repository.Gst.Caps | None Gets the :obj:`~gi.repository.Gst.Caps` associated with a typefind factory. .. method:: get_extensions() -> list[str] | None Gets the extensions associated with a :obj:`~gi.repository.Gst.TypeFindFactory`. The returned array should not be changed. If you need to change stuff in it, you should copy it using :func:`~gi.repository.GLib.strdupv`. This function may return :const:`None` to indicate a 0-length list. .. method:: get_list() -> list[~gi.repository.Gst.TypeFindFactory] Gets the list of all registered typefind factories. You must free the list using :func:`~gi.repository.Gst.PluginFeature.list_free`. The returned factories are sorted by highest rank first, and then by factory name. Free-function: gst_plugin_feature_list_free .. method:: has_function() -> bool Check whether the factory has a typefind function. Typefind factories without typefind functions are a last-effort fallback mechanism to e.g. assume a certain media type based on the file extension.