Class (GI Struct)

GstSdp-1.0GstSdpMIKEYPayload

Hold the common fields for all payloads

Index

Constructors

Properties

len: number

Methods

  • Remove the sub payload at idx in payload.

    Parameters

    • idx: number

      the index to remove

    Returns boolean

    true on success.

  • Set the key validity period in the GstSdp.MIKEYPayloadType.KEY_DATA payload.

    Parameters

    • vf_data: string | Uint8Array<ArrayBufferLike>

      the Valid From data

    • vt_data: string | Uint8Array<ArrayBufferLike>

      the Valid To data

    Returns boolean

    true on success

  • Set the salt key data. If salt_len is 0 and salt_data is null, the salt data will be removed.

    Parameters

    • Optionalsalt_data: Uint8Array<ArrayBufferLike>

      the salt

    Returns boolean

    true on success

  • Add a new parameter to the GstSdp.MIKEYPayloadType.SP payload with type, len and val.

    Parameters

    • type: number

      a type

    • val: string | Uint8Array<ArrayBufferLike>

      len bytes of data

    Returns boolean

    true on success