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
numPorts: 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

  • addAttribute(key: string, value: string): SDPResult
  • Add the attribute with key and value to media.

    Parameters

    • key: string

      a key

    • value: string

      a value

    Returns SDPResult

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

  • addConnection(nettype: string, addrtype: string, address: string, ttl: number, addrNumber: 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

    • addrNumber: number

      the number of layers

    Returns SDPResult

  • asText(): string
  • attributesLen(): number
  • bandwidthsLen(): number
  • connectionsLen(): number
  • Allocate a new copy of media and store the result in copy. The value in copy should be release with gst_sdp_media_free function.

    Returns [SDPResult, SDPMedia]

  • formatsLen(): 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

  • getAttributeVal(key: string): string
  • Get the first attribute value for key in media.

    Parameters

    • key: string

      a key

    Returns string

  • getAttributeValN(key: string, nth: number): string
  • Get the nth attribute value for key in media.

    Parameters

    • key: string

      a key

    • nth: number

      an index

    Returns string

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

  • getFormat(idx: number): string
  • Get the format information at position idx in media.

    Parameters

    • idx: number

      an index

    Returns string

  • getInformation(): string
  • getMedia(): string
  • getNumPorts(): number
  • getPort(): number
  • getProto(): 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 the bandwidth information to media at idx. When idx is -1, the bandwidth is appended.

    Parameters

    Returns SDPResult

  • Insert the connection information to media at idx. When idx is -1, the connection is appended.

    Parameters

    Returns SDPResult

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

  • replaceFormat(idx: number, format: string): SDPResult
  • Replace the format information in media at idx with format.

    Parameters

    • idx: number

      an index

    • format: string

      the format

    Returns SDPResult

  • setInformation(information: string): SDPResult
  • Set the media information of media to information.

    Parameters

    • information: string

      the media information

    Returns SDPResult

  • setKey(type: string, data: string): SDPResult
  • Adds the encryption information to media.

    Parameters

    • type: string

      the encryption type

    • data: string

      the encryption data

    Returns SDPResult

  • setPortInfo(port: number, numPorts: number): SDPResult
  • Set the port information in media.

    Parameters

    • port: number

      the port number

    • numPorts: number

      the number of ports

    Returns SDPResult

  • Set the media transport protocol of media to proto.

    Parameters

    • proto: string

      the media transport protocol

    Returns 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