Optionalproperties: Partial<{ data: any }>Get the length of the data stream.
The length of the data stream, or 0 if it is not available.
Returns the size bytes of the stream to identify beginning at offset. If
offset is a positive number, the offset is relative to the beginning of the
stream, if offset is a negative number the offset is relative to the end of
the stream. The returned memory is valid until the typefinding function
returns and must not be freed.
The offset
The number of bytes to return
the requested data, or null if that data is not available.
If a Gst.TypeFindFunction calls this function it suggests the caps with the given probability. A Gst.TypeFindFunction may supply different suggestions in one call. It is up to the caller of the Gst.TypeFindFunction to interpret these values.
If a Gst.TypeFindFunction calls this function it suggests caps of the
given media_type with the given probability.
This function is similar to gst_type_find_suggest_simple(), but uses
a Gst.Caps with no fields.
The probability in percent that the suggestion is right
the media type of the suggested caps
StaticregisterRegisters 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.
A Gst.Plugin, or null for a static typefind function
The name for registering
The rank (or importance) of this typefind function
The Gst.TypeFindFunction to use
Optionalextensions: stringOptional comma-separated list of extensions that could belong to this type
Optionalpossible_caps: Gst.CapsOptionally the caps that could be returned when typefinding succeeds
The following functions allow you to detect the media type of an unknown stream.