Class (GI Struct)

GstSdp-1.0GstSdpMIKEYPayload

Hold the common fields for all payloads

Index
len: number
  • Remove the sub payload at idx in payload.

    Parameters

    • idx: number

      the index to remove

    Returns boolean

    true on success.

    1.4

  • 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

    1.4

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

    Parameters

    • salt_data: string | Uint8Array<ArrayBufferLike>

      the salt

    Returns boolean

    true on success

    1.4

  • 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

    1.4