Skip to content
Type

IsobmffInputFormatOptions

Additional ISOBMFF input configuration.

ts
type IsobmffInputFormatOptions = {
	resolveKeyId?: (options: {
		keyId: string;
		psshBoxes: PsshBox[];
	}) => MaybePromise<Uint8Array | string>;
};

See PsshBox and MaybePromise.

Used by

Properties

resolveKeyId

ts
resolveKeyId?: (options: {
	/** The key ID that is to be resolved to a key. This is a 32-character lowercase hexadecimal string. */
	keyId: string;
	/**
	 * Protection System Specific Header (pssh) boxes that apply to this key ID. Can be used to obtain a
	 * description key from a DRM license server.
	 */
	psshBoxes: PsshBox[];
}) => MaybePromise<Uint8Array | string>;

A callback that gets invoked for each key ID required for sample content decryption. The key ID is provided as a 32-character lowercase hexadecimal string.

Must return or resolve to a 32-character hexadecimal string or a 16-byte Uint8Array.

See PsshBox and MaybePromise.

Released under the Mozilla Public License 2.0.