Gjsify LogoGjsify Logo

Index

Enumerations

Classes

Interfaces

Functions

Functions

  • 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

  • descriptorFromCustomWithExtension(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

  • descriptorFromDvbSubtitling(lang: string, type: number, composition: number, ancillary: number): GstMpegts.Descriptor
  • descriptorFromRegistration(formatIdentifier: string, additionalInfo: Uint8Array): 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

  • Finds the first descriptor of type tag in the array.

    Note: To look for descriptors that can be present more than once in an array of descriptors, iterate the #GArray manually.

    Parameters

    • descriptors: GstMpegts.Descriptor[]

      an array of #GstMpegtsDescriptor

    • tag: number

      the tag to look for

    Returns GstMpegts.Descriptor

  • Finds the first descriptor of type tag with tag_extension in the array.

    Note: To look for descriptors that can be present more than once in an array of descriptors, iterate the #GArray manually.

    Parameters

    • descriptors: GstMpegts.Descriptor[]

      an array of #GstMpegtsDescriptor

    • tag: number

      the tag to look for

    • tagExtension: number

    Returns GstMpegts.Descriptor

  • initialize(): void
  • Initializes the MPEG-TS helper library. Must be called before any usage.

    Returns void

  • Parses the descriptors present in buffer and returns them as an array.

    Note: The data provided in buffer will not be copied.

    Parameters

    • buffer: number

      descriptors to parse

    • bufLen: number

      Size of buffer

    Returns GstMpegts.Descriptor[]

  • Allocates a new #GPtrArray for #GstMpegtsPatProgram. The array can be filled and then converted to a PAT section with gst_mpegts_section_from_pat().

    Returns PatProgram[]

  • scteCancelNew(eventId: number): SCTESIT
  • Allocates and initializes a new INSERT command #GstMpegtsSCTESIT setup to cancel the specified event_id.

    Parameters

    • eventId: number

      The event ID to cancel.

    Returns SCTESIT

  • scteSpliceInNew(eventId: number, spliceTime: number): SCTESIT
  • Allocates and initializes a new "Splice In" INSERT command #GstMpegtsSCTESIT for the given event_id and splice_time.

    If the splice_time is #G_MAXUINT64 then the event will be immediate as opposed to for the target splice_time.

    Parameters

    • eventId: number

      The event ID.

    • spliceTime: number

      The running time for the splice event

    Returns SCTESIT

  • scteSpliceOutNew(eventId: number, spliceTime: number, duration: number): SCTESIT
  • Allocates and initializes a new "Splice Out" INSERT command #GstMpegtsSCTESIT for the given event_id, splice_time and duration.

    If the splice_time is #G_MAXUINT64 then the event will be immediate as opposed to for the target splice_time.

    If the duration is 0 it won't be specified in the event.

    Parameters

    • eventId: number

      The event ID.

    • spliceTime: number

      The running time for the splice event

    • duration: number

      The optional duration.

    Returns SCTESIT

  • Ownership of nit is taken. The data in nit is managed by the #GstMpegtsSection

    Parameters

    • nit: NIT

      a #GstMpegtsNIT to create the #GstMpegtsSection from

    Returns Section

  • Creates a PAT #GstMpegtsSection from the programs array of #GstMpegtsPatPrograms

    Parameters

    • programs: PatProgram[]

      an array of #GstMpegtsPatProgram

    • tsId: number

      Transport stream ID of the PAT

    Returns Section

  • Creates a #GstMpegtsSection from pmt that is bound to pid

    Parameters

    • pmt: PMT

      a #GstMpegtsPMT to create a #GstMpegtsSection from

    • pid: number

      The PID that the #GstMpegtsPMT belongs to

    Returns Section

  • Ownership of sit is taken. The data in sit is managed by the #GstMpegtsSection

    Parameters

    • sit: SCTESIT

      a #GstMpegtsSCTESIT to create the #GstMpegtsSection from

    • pid: number

    Returns Section

  • Ownership of sdt is taken. The data in sdt is managed by the #GstMpegtsSection

    Parameters

    • sdt: SDT

      a #GstMpegtsSDT to create the #GstMpegtsSection from

    Returns Section

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