Gst.TypeFind¶
Fields¶
| Name | Type | Access | Description | 
|---|---|---|---|
| data | object | r/w | The data used by the caller of the typefinding function. | 
| get_length | object | r | |
| peek | object | r | |
| suggest | object | r | 
Details¶
- 
class Gst.TypeFind¶
- The following functions allow you to detect the media type of an unknown stream. - 
classmethod register(plugin, name, rank, func, extensions, possible_caps, *data)[source]¶
- Parameters: - plugin (Gst.PluginorNone) – AGst.Plugin, orNonefor a static typefind function
- name (str) – The name for registering
- rank (int) – The rank (or importance) of this typefind function
- func (Gst.TypeFindFunction) – TheGst.TypeFindFunctionto use
- extensions (strorNone) – Optional comma-separated list of extensions that could belong to this type
- possible_caps (Gst.CapsorNone) – Optionally the caps that could be returned when typefinding succeeds
- data (objectorNone) – Optional user data. This user data must be available until the plugin is unloaded.
 - Returns: - Return type: - Registers a new typefind function to be used for typefinding. After registering this function will be available for typefinding. This function is typically called during an element’s plugin initialization. 
- plugin (
 
- 
classmethod