TypeFindFactory

class TypeFindFactory(**properties: Any)

Superclasses: PluginFeature, Object, InitiallyUnowned, Object

Constructors:

TypeFindFactory(**properties)

Methods

class TypeFindFactory
call_function(find: TypeFind) None

Calls the TypeFindFunction associated with this factory.

Parameters:

find – a properly setup TypeFind entry. The get_data and suggest_type members must be set.

get_caps() Caps | None

Gets the Caps associated with a typefind factory.

get_extensions() list[str] | None

Gets the extensions associated with a TypeFindFactory. The returned array should not be changed. If you need to change stuff in it, you should copy it using strdupv(). This function may return None to indicate a 0-length list.

get_list() list[TypeFindFactory]

Gets the list of all registered typefind factories. You must free the list using list_free().

The returned factories are sorted by highest rank first, and then by factory name.

Free-function: gst_plugin_feature_list_free

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.