Gjsify LogoGjsify Logo

The following functions allow you to detect the media type of an unknown stream.

record

Hierarchy

  • TypeFind

Index

Constructors

Properties

data: object

The data used by the caller of the typefinding function.

field
name: string

Methods

  • get_length(data: object): number
  • peek(data: object, offset: number, size: number): number
  • suggest(data: object, probability: number, caps: Gst.Caps): void
  • suggest_empty_simple(probability: number, media_type: string): void
  • If a #GstTypeFindFunction 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 #GstCaps with no fields.

    Parameters

    • probability: number

      The probability in percent that the suggestion is right

    • media_type: string

      the media type of the suggested caps

    Returns void

  • 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.

    Parameters

    • plugin: Gst.Plugin

      A #GstPlugin, or %NULL for a static typefind function

    • name: string

      The name for registering

    • rank: number

      The rank (or importance) of this typefind function

    • func: Gst.TypeFindFunction

      The #GstTypeFindFunction to use

    • extensions: string

      Optional comma-separated list of extensions that could belong to this type

    • possible_caps: Gst.Caps

      Optionally the caps that could be returned when typefinding succeeds

    Returns boolean

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method