Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PacketTimeAttribute

This gives the length of time in milliseconds represented by the media in a packet. This is probably only meaningful for audio data, but may be used with other media types if it makes sense. It should not be necessary to know ptime to decode RTP or vat audio, and it is intended as a recommendation for the encoding/packetisation of audio. It is a media-level attribute, and it is not dependent on charset.

Hierarchy

  • Attribute
    • PacketTimeAttribute

Index

Constructors

constructor

  • Initializes a new instance of the fm.icelink.sdp.packetTimeAttribute class.

    Parameters

    • packetTime: number

      The length of time in milliseconds represented by the media in a packet.

    Returns PacketTimeAttribute

  • Initializes a new instance of the fm.icelink.sdp.packetTimeAttribute class.

    Returns PacketTimeAttribute

Properties

Private _packetTime

_packetTime: number
internal

Methods

getAttributeType

  • getAttributeType(): AttributeType
  • Gets this Attribute's Type.

    Returns AttributeType

Protected getAttributeValue

  • getAttributeValue(): string
  • Gets the internal value of the attribute.

    Returns string

getPacketTime

  • getPacketTime(): number
  • Gets the length of time in milliseconds represented by the media in a packet.

    Returns number

getTypeString

  • getTypeString(): string
  • Returns string

setAttributeType

  • setAttributeType(value: AttributeType): void
  • Sets this Attribute's Type.

    Parameters

    • value: AttributeType

    Returns void

Private setPacketTime

  • setPacketTime(value: number): void
  • internal

    Parameters

    • value: number

    Returns void

toString

  • toString(): string
  • Converts this instance to a string.

    Returns string

Static createAttribute

  • createAttribute(name: string, value: string): Attribute
  • Creates an attribute.

    Parameters

    • name: string

      The name.

    • value: string

      The value.

    Returns Attribute

Static fromAttributeValue

  • fromAttributeValue(value: string): PacketTimeAttribute
  • Initializes a new instance of the fm.icelink.sdp.packetTimeAttribute class.

    Parameters

    • value: string

      The attribute value.

    Returns PacketTimeAttribute

Static getTypeName

  • getTypeName(type: Type): string
  • Gets the name of the attribute type.

    Parameters

    • type: Type

      The attribute type.

    Returns string

Static isMediaLevel

  • isMediaLevel(type: Type): boolean
  • Determines whether the type applies to media streams.

    Parameters

    • type: Type

      The type.

    Returns boolean

Static isSessionLevel

  • isSessionLevel(type: Type): boolean
  • Determines whether the type applies to sessions.

    Parameters

    • type: Type

      The type.

    Returns boolean

Static parse

  • parse(s: string): Attribute
  • Creates an fm.icelink.sdp.connectionData instance from a string.

    Parameters

    • s: string

      The string to parse.

    Returns Attribute