Skip to content

Type Alias: EnsureEncryptedInitOptions ​

ts
type EnsureEncryptedInitOptions = object;

Defined in: ensureEncryptedInit.ts:65

Options for the ensureEncryptedInit function.

Properties ​

defaultKid ​

ts
defaultKid: 
  | Uint8Array
  | number[];

Defined in: ensureEncryptedInit.ts:94

The default KID to use for the encryption: 16 bytes, each from 0 to 255. Another value throws a RangeError.

Default Value ​

16 bytes of 0


includeOriginal ​

ts
includeOriginal: boolean;

Defined in: ensureEncryptedInit.ts:78

Whether to include the original init segment in the result.

Default Value ​

true


prepend ​

ts
prepend: boolean;

Defined in: ensureEncryptedInit.ts:71

Whether to prepend the encrypted entries to the sample table.

Default Value ​

true


schemeType ​

ts
schemeType: string | number;

Defined in: ensureEncryptedInit.ts:86

The scheme type to use for the encryption, as a four-character code such as cbcs. A number is the code as a 32-bit integer, such as 0x63626373 for cbcs.

Default Value ​

'cenc'

A Streaming Video Technology Alliance project.