Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CodecStats

Codec stats.

Hierarchy

  • BaseStats
    • CodecStats

Index

Constructors

constructor

Properties

Private _channelCount

_channelCount: number
internal

Private _clockRate

_clockRate: number
internal

Private _codecType

_codecType: CodecType
internal

Private _name

_name: string
internal

Private _parameters

_parameters: string
internal

Private _payloadType

_payloadType: number
internal

Methods

Protected deserializeProperties

  • deserializeProperties(key: string, valueJson: string): void
  • Deserializes the properties.

    Parameters

    • key: string

      The key.

    • valueJson: string

      The value in JSON format.

    Returns void

getChannelCount

  • getChannelCount(): number
  • Gets the channel count.

    Returns number

getClockRate

  • getClockRate(): number
  • Gets the clock rate.

    Returns number

getCodecType

  • getCodecType(): CodecType
  • Gets the codec type, "encode" or "decode", depending on whether this object represents a media format that the implementation is prepared to encode or decode.

    Returns CodecType

getId

  • getId(): string
  • Gets the identifier of the object generating these stats.

    Returns string

getName

  • getName(): string
  • Gets the name.

    Returns string

getParameters

  • getParameters(): string
  • Gets the parameters.

    Returns string

getPayloadType

  • getPayloadType(): number
  • Gets the payload type.

    Returns number

getTimestamp

  • getTimestamp(): DateTime
  • Gets the timestamp when these stats were generated.

    Returns DateTime

getTypeString

  • getTypeString(): string

Protected serializeProperties

  • serializeProperties(jsonObject: Hash<string, string>): void
  • Serializes the properties.

    Parameters

    • jsonObject: Hash<string, string>

      The JSON object.

    Returns void

setChannelCount

  • setChannelCount(value: number): void
  • internal

    Parameters

    • value: number

    Returns void

setClockRate

  • setClockRate(value: number): void
  • internal

    Parameters

    • value: number

    Returns void

setCodecType

  • setCodecType(value: CodecType): void
  • internal

    Parameters

    • value: CodecType

    Returns void

setId

  • setId(value: string): void
  • internal

    Parameters

    • value: string

    Returns void

setName

  • setName(value: string): void
  • internal

    Parameters

    • value: string

    Returns void

setParameters

  • setParameters(value: string): void
  • internal

    Parameters

    • value: string

    Returns void

setPayloadType

  • setPayloadType(value: number): void
  • internal

    Parameters

    • value: number

    Returns void

setTimestamp

  • setTimestamp(value: DateTime): void
  • internal

    Parameters

    • value: DateTime

    Returns void

toJson

  • toJson(): string
  • Serializes this to JSON.

    Returns string

Static fromJson

  • fromJson(codecJson: string): CodecStats
  • Derializes codec stats from JSON.

    Parameters

    • codecJson: string

      The codec's stats JSON.

    Returns CodecStats

Static toJson

  • toJson(codec: CodecStats): string
  • Serializes codec stats to JSON.

    Parameters

    • codec: CodecStats

      The codec's stats.

    Returns string