Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MaxPacketTimeAttribute

This gives the maximum amount of media that can be encapsulated in each packet, expressed as time in milliseconds. The time SHALL be calculated as the sum of the time the media present in the packet represents. For frame-based codecs, the time SHOULD be an integer multiple of the frame size. This attribute is probably only meaningful for audio data, but may be used with other media types if it makes sense. It is a media-level attribute, and it is not dependent on charset. Note that this attribute was introduced after RFC 2327, and non-updated implementations will ignore this attribute.

Hierarchy

  • Attribute
    • MaxPacketTimeAttribute

Index

Constructors

constructor

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

    Parameters

    • maxPacketTime: number

      The maximum amount of media that can be encapsulated, in each packet, expressed as time in milliseconds.

    Returns MaxPacketTimeAttribute

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

    Returns MaxPacketTimeAttribute

Properties

Private _maxPacketTime

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

getMaxPacketTime

  • getMaxPacketTime(): number
  • Gets the maximum amount of media that can be encapsulated, in each packet, expressed as time in milliseconds.

    Returns number

getTypeString

  • getTypeString(): string
  • Returns string

setAttributeType

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

    Parameters

    • value: AttributeType

    Returns void

Private setMaxPacketTime

  • setMaxPacketTime(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): MaxPacketTimeAttribute
  • Initializes a new instance of the fm.icelink.sdp.maxPacketTimeAttribute class.

    Parameters

    • value: string

      The attribute value.

    Returns MaxPacketTimeAttribute

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