Add a new sub payload to payload.
a GstSdp.MIKEYPayload to add
true on success.
Get the number of sub payloads of payload. payload should be of type
GstSdp.MIKEYPayloadType.KEMAC.
the number of sub payloads in payload
Get the sub payload of payload at idx. payload should be of type
GstSdp.MIKEYPayloadType.KEMAC.
an index
the GstSdp.MIKEYPayload at idx.
Remove the sub payload at idx in payload.
the index to remove
true on success.
Set the KEMAC parameters. payload should point to a GstSdp.MIKEYPayloadType.KEMAC
payload.
true on success
Set the key validity period in the GstSdp.MIKEYPayloadType.KEY_DATA payload.
the Valid From data
the Valid To data
true on success
Set key_len bytes of key_data of type key_type as the key for the
GstSdp.MIKEYPayloadType.KEY_DATA payload.
the key of type key_type
true on success
Set the salt key data. If salt_len is 0 and salt_data is null, the
salt data will be removed.
Optionalsalt_data: Uint8Array<ArrayBufferLike>the salt
true on success
Set the SPI/MKI validity in the GstSdp.MIKEYPayloadType.KEY_DATA payload.
the SPI/MKI data
true on success
Set the PKE values in payload. payload must be of type
GstSdp.MIKEYPayloadType.PKE.
envelope key cache indicator
the encrypted envelope key
true on success
Set the random values in a GstSdp.MIKEYPayloadType.RAND payload.
random values
true on success
Add a new parameter to the GstSdp.MIKEYPayloadType.SP payload with type, len
and val.
a type
len bytes of data
true on success
Get the number of security policy parameters in a GstSdp.MIKEYPayloadType.SP
payload.
the number of parameters in payload
Get the Security Policy parameter in a GstSdp.MIKEYPayloadType.SP payload
at idx.
an index
the GstSdp.MIKEYPayloadSPParam at idx in payload
Remove the Security Policy parameters from a GstSdp.MIKEYPayloadType.SP
payload at idx.
an index
true on success
Set the Security Policy parameters for payload.
the policy number
true on success
Set the timestamp in a GstSdp.MIKEYPayloadType.T payload.
the timestamp value
true on success
Staticnew
Hold the common fields for all payloads