Gjsify LogoGjsify Logo

The contents of the SDP "m=" field with all related fields.

record

Hierarchy

  • SDPMedia

Index

Constructors

Properties

attributes: object[]

array of #GstSDPAttribute with the additional media attributes

field
bandwidths: object[]

array of #GstSDPBandwidth with media bandwidth information

field
connections: object[]

array of #GstSDPConnection with media connection information

field
fmts: object[]

an array of #gchar formats

field
information: string

the media title

field
key: SDPKey

the encryption key

field
media: string

the media type

field
num_ports: number

the number of ports or -1 if only one port was specified

field
port: number

the transport port to which the media stream will be sent

field
proto: string

the transport protocol

field
name: string

Methods

  • add_attribute(key: string, value: string): SDPResult
  • add_bandwidth(bwtype: string, bandwidth: number): SDPResult
  • Add the bandwidth information with bwtype and bandwidth to media.

    Parameters

    • bwtype: string

      the bandwidth modifier type

    • bandwidth: number

      the bandwidth in kilobits per second

    Returns SDPResult

  • add_connection(nettype: string, addrtype: string, address: string, ttl: number, addr_number: number): SDPResult
  • Add the given connection parameters to media.

    Parameters

    • nettype: string

      the type of network. "IN" is defined to have the meaning "Internet".

    • addrtype: string

      the type of address.

    • address: string

      the address

    • ttl: number

      the time to live of the address

    • addr_number: number

      the number of layers

    Returns SDPResult

  • as_text(): string
  • attributes_len(): number
  • bandwidths_len(): number
  • connections_len(): number
  • formats_len(): number
  • Free all resources allocated by media. media should not be used anymore after this function. This function should be used when media was dynamically allocated with gst_sdp_media_new().

    Returns SDPResult

  • get_attribute_val(key: string): string
  • get_attribute_val_n(key: string, nth: number): string
  • get_caps_from_media(pt: number): Gst.Caps
  • Mapping of caps from SDP fields:

    a=rtpmap:(payload) (encoding_name)/(clock_rate)[/(encoding_params)]

    a=framesize:(payload) (width)-(height)

    a=fmtp:(payload) (param)[=(value)];...

    Note that the extmap attribute is set only by gst_sdp_media_attributes_to_caps().

    Parameters

    • pt: number

      a payload type

    Returns Gst.Caps

  • get_format(idx: number): string
  • get_information(): string
  • get_media(): string
  • get_num_ports(): number
  • get_port(): number
  • get_proto(): string
  • Initialize media so that its contents are as if it was freshly allocated with gst_sdp_media_new(). This function is mostly used to initialize a media allocated on the stack. gst_sdp_media_uninit() undoes this operation.

    When this function is invoked on newly allocated data (with malloc or on the stack), its contents should be set to 0 before calling this function.

    Returns SDPResult

  • insert_format(idx: number, format: string): SDPResult
  • Insert the format information to media at idx. When idx is -1, the format is appended.

    Parameters

    • idx: number

      an index

    • format: string

      the format

    Returns SDPResult

  • replace_format(idx: number, format: string): SDPResult
  • set_information(information: string): SDPResult
  • set_key(type: string, data: string): SDPResult
  • set_port_info(port: number, num_ports: number): SDPResult
  • Free all resources allocated in media. media should not be used anymore after this function. This function should be used when media was allocated on the stack and initialized with gst_sdp_media_init().

    Returns SDPResult

  • Mapping of caps to SDP fields:

    a=rtpmap:(payload) (encoding_name) or (clock_rate)[or (encoding_params)]

    a=framesize:(payload) (width)-(height)

    a=fmtp:(payload) (param)[=(value)];...

    a=rtcp-fb:(payload) (param1) [param2]...

    a=extmap:(id)[/direction] (extensionname) (extensionattributes)

    Parameters

    Returns SDPResult

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