Gjsify LogoGjsify Logo

These are the base descriptor types and methods.

For more details, refer to the ITU H.222.0 or ISO/IEC 13818-1 specifications and other specifications mentioned in the documentation.

record

Hierarchy

  • Descriptor

Index

Constructors

Properties

data: number

the full descriptor data (including tag, extension, length). The first two bytes are the tag and length.

field
length: number

the length of the descriptor content (excluding tag/length field)

field
tag: number

the type of descriptor

field
tagExtension: number

the extended type (if descriptor_tag is 0x7f)

field
name: string

Methods

  • free(): void
  • parseCa(): [boolean, number, number, Uint8Array]
  • Extracts the Conditional Access information from descriptor.

    Returns [boolean, number, number, Uint8Array]

  • parseDvbBouquetName(): [boolean, string]
  • parseDvbCaIdentifier(): [boolean, number[]]
  • parseDvbDataBroadcastId(): [boolean, number, Uint8Array]
  • Parses out the data broadcast id from the descriptor.

    Returns [boolean, number, Uint8Array]

  • parseDvbFrequencyList(): [boolean, boolean, number[]]
  • Parses out a list of frequencies from the descriptor.

    Returns [boolean, boolean, number[]]

  • parseDvbNetworkName(): [boolean, string]
  • parseDvbPrivateDataSpecifier(): [boolean, number, Uint8Array]
  • Parses out the private data specifier from the descriptor.

    Returns [boolean, number, Uint8Array]

  • parseDvbShortEvent(): [boolean, string, string, string]
  • Extracts the DVB short event information from descriptor.

    Returns [boolean, string, string, string]

  • parseDvbStreamIdentifier(): [boolean, number]
  • parseDvbStuffing(): [boolean, number]
  • parseDvbSubtitlingIdx(idx: number): [boolean, string, number, number, number]
  • Extracts the DVB subtitling informatio from specific table id in descriptor.

    Note: Use #gst_tag_get_language_code if you want to get the the ISO 639-1 language code from the returned ISO 639-2 one.

    Parameters

    • idx: number

      Table id of the entry to parse

    Returns [boolean, string, number, number, number]

  • parseDvbSubtitlingNb(): number
  • parseDvbTeletextIdx(idx: number): [boolean, string, DVBTeletextType, number, number]
  • Parses teletext number idx in the descriptor. The language is in ISO639 format.

    Parameters

    • idx: number

      The id of the teletext to get

    Returns [boolean, string, DVBTeletextType, number, number]

  • parseDvbTeletextNb(): number
  • Extracts the iso 639-2 language information from descriptor.

    Note: Use #gst_tag_get_language_code if you want to get the the ISO 639-1 language code from the returned ISO 639-2 one.

    Returns [boolean, ISO639LanguageDescriptor]

  • Extracts the iso 639-2 language information from specific table id in descriptor.

    Note: Use #gst_tag_get_language_code if you want to get the the ISO 639-1 language code from the returned ISO 639-2 one.

    Parameters

    • idx: number

      Table id of the language to parse

    Returns [boolean, string, Iso639AudioType]

  • parseIso639LanguageNb(): number
  • parseRegistration(): [boolean, number, Uint8Array]
  • Extracts the Registration information from descriptor.

    Returns [boolean, number, Uint8Array]

  • Creates a #GstMpegtsDescriptor with custom tag and data

    Parameters

    • tag: number

      descriptor tag

    • data: Uint8Array

      descriptor data (after tag and length field)

    Returns GstMpegts.Descriptor

  • fromCustomWithExtension(tag: number, tagExtension: number, data: Uint8Array): GstMpegts.Descriptor
  • Creates a #GstMpegtsDescriptor with custom tag, tag_extension and data

    Parameters

    • tag: number

      descriptor tag

    • tagExtension: number

      descriptor tag extension

    • data: Uint8Array

      descriptor data (after tag and length field)

    Returns GstMpegts.Descriptor

  • Creates a #GstMpegtsDescriptor to be a %GST_MTS_DESC_DVB_NETWORK_NAME, with the network name name. The data field of the #GstMpegtsDescriptor will be allocated, and transferred to the caller.

    Parameters

    • name: string

      the network name to set

    Returns GstMpegts.Descriptor

  • Fills a #GstMpegtsDescriptor to be a %GST_MTS_DESC_DVB_SERVICE. The data field of the #GstMpegtsDescriptor will be allocated, and transferred to the caller.

    Parameters

    • serviceType: DVBServiceType

      Service type defined as a #GstMpegtsDVBServiceType

    • serviceName: string

      Name of the service

    • serviceProvider: string

      Name of the service provider

    Returns GstMpegts.Descriptor

  • fromDvbSubtitling(lang: string, type: number, composition: number, ancillary: number): GstMpegts.Descriptor
  • Creates a %GST_MTS_DESC_REGISTRATION #GstMpegtsDescriptor

    Parameters

    • formatIdentifier: string

      a 4 character format identifier string

    • additionalInfo: Uint8Array

      pointer to optional additional info

    Returns GstMpegts.Descriptor

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