Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CryptoAttribute

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
    • CryptoAttribute

Index

Constructors

constructor

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

    Parameters

    • tag: number

      The tag.

    • cryptoSuite: string

      The crypto suite.

    Returns CryptoAttribute

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

    Returns CryptoAttribute

Properties

Private _cryptoSuite

_cryptoSuite: string
internal

Private _keyParams

_keyParams: Hash<string, string>
internal

Private _sessionParams

_sessionParams: Array<string>
internal

Private _tag

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

getCryptoSuite

  • getCryptoSuite(): string
  • Gets the crypto suite. See fm.icelink.sdp.cryptoAttribute.cryptoSuite for possible values.

    Returns string

getKey

  • getKey(): DataBuffer
  • Gets the key from the "inline" key parameter.

    Returns DataBuffer

getKeyParams

  • getKeyParams(): Hash<string, string>
  • Gets the key parameters.

    Returns Hash<string, string>

getSalt

  • getSalt(): DataBuffer
  • Gets the salt from the "inline" key parameter.

    Returns DataBuffer

getSessionParams

  • getSessionParams(): Array<string>
  • Gets the session parameters.

    Returns Array<string>

getTag

  • getTag(): number
  • Gets the tag.

    Returns number

getTypeString

  • getTypeString(): string
  • Returns string

setAttributeType

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

    Parameters

    • value: AttributeType

    Returns void

Private setCryptoSuite

  • setCryptoSuite(value: string): void
  • internal

    Parameters

    • value: string

    Returns void

Private setKeyParams

  • setKeyParams(value: Hash<string, string>): void
  • internal

    Parameters

    • value: Hash<string, string>

    Returns void

setKeySalt

  • setKeySalt(key: Uint8Array, salt: Uint8Array): CryptoAttribute
  • Sets the key and salt for the "inline" key parameter.

    Parameters

    • key: Uint8Array

      The key.

    • salt: Uint8Array

      The salt.

    Returns CryptoAttribute

Private setSessionParams

  • setSessionParams(value: Array<string>): void
  • internal

    Parameters

    • value: Array<string>

    Returns void

setTag

  • setTag(value: number): void
  • Sets the tag.

    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): CryptoAttribute
  • Initializes a new instance of the fm.icelink.sdp.cryptoAttribute class.

    Parameters

    • value: string

      The attribute value.

    Returns CryptoAttribute

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