Class (GI Struct)

GstSdp-1.0GstSdpMIKEYMessage

Structure holding the information of the MIKEY message

Index

Constructors

  • Parameters

    • Optionalproperties: Partial<
          {
              CSB_id: number;
              map_info: any[];
              map_type: MIKEYMapType;
              payloads: any[];
              prf_func: MIKEYPRFFunc;
              type: MIKEYType;
              V: boolean;
              version: number;
          },
      >

    Returns MIKEYMessage

Properties

CSB_id: number
map_info: any[]
payloads: any[]
type: MIKEYType
V: boolean
version: number

Methods

  • Add a Crypto policy for SRTP to msg.

    Parameters

    • policy: number

      The security policy applied for the stream with ssrc

    • ssrc: number

      the SSRC that must be used for the stream

    • roc: number

      current rollover counter

    Returns boolean

    true on success

  • Add a new PKE payload to msg with the given parameters.

    Parameters

    • C: MIKEYCacheType

      envelope key cache indicator

    • data: string | Uint8Array<ArrayBufferLike>

      the encrypted envelope key

    Returns boolean

    true on success

  • Add a new RAND payload to msg with the given parameters.

    Parameters

    • rand: string | Uint8Array<ArrayBufferLike>

      random data

    Returns boolean

    true on success

  • Add a new RAND payload to msg with len random bytes.

    Parameters

    • len: number

      length

    Returns boolean

    true on success

  • Add a new T payload to msg with the given parameters.

    Parameters

    • type: MIKEYTSType

      specifies the timestamp type used

    • ts_value: string | Uint8Array<ArrayBufferLike>

      The timestamp value of the specified type

    Returns boolean

    true on success

  • Add a new T payload to msg that contains the current time in NTP-UTC format.

    Returns boolean

    true on success

  • Insert a Crypto Session map for SRTP in msg at idx

    When idx is -1, the policy will be appended.

    Parameters

    • idx: number

      the index to insert at

    • map: MIKEYMapSRTP

      the map info

    Returns boolean

    true on success

  • Remove the SRTP policy at idx.

    Parameters

    • idx: number

      the index to remove

    Returns boolean

    true on success

  • Remove the payload in msg at idx

    Parameters

    • idx: number

      an index

    Returns boolean

    true on success